Closed Bug 975072 Opened 11 years ago Closed 10 years ago

[mcMerge] mcMerge should tag its comments

Categories

(Tree Management :: Bugherder, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: graememcc, Assigned: KWierso)

References

Details

(Whiteboard: [bugherderq4want])

Attachments

(1 file)

Per a suggestion from mats, mcMerge should tag the comments it makes, to allow Bugzilla users to filter out such comments when required. Due to bug 969630 comment 7, this will be gated on migration to the native REST API from the BzAPI proxy. Mats suggested the tag "landing", which is certainly a convention that seems to be gathering steam elsewhere in Bugzilla. My gut instinct is to make the tags configurable by tree, to allow some flexibility, for example tagging merges separately from individual landings.
Product: Webtools → Tree Management
Component: TBPL → mcMerge
[13:27] KWierso can you pre-tag a comment that you are creating via the rest api? [13:30] KWierso or do I need to get the comment ID returned and then update the tags on that comment? [13:56] dkl KWierso: good question. let me look [13:59] dkl KWierso: unfortunately you cannot. You need to create the comment and using the comment id, make a new call to update the comment tags So, given the above, would it be worth doubling the number of submissions (and run time) per run to: 1) Make the comments as mc-merge currently does, but grab and store the comment ids returned by the api. 2) Take those comment ids, and cycle through them all, updating the tags field to add the desired tags to each.
Flags: needinfo?(emorley)
I don't think it would double the time, since mcMerge already makes many requests per bug iirc, so this would be more like N+1. That said, another way of 'solving' this problem would be for the sheriffs to use a shared bot bugzilla account with it, and get the bugzilla template to mark based on that (bit like it does for tbplbot iirc).
Flags: needinfo?(emorley)
Mark: Can we get a BMO API that allows us to create a comment + tag with a single API call? (I'd also like this for bzpost.)
Flags: needinfo?(mcote)
Fine by me. Can you file a bug under Bugzilla :: WebService?
Flags: needinfo?(mcote)
(In reply to Mark Côté [:mcote] from comment #5) > Fine by me. Can you file a bug under Bugzilla :: WebService? Repurposed bug 975339 for that.
Whiteboard: [bugherderq3want]
All of the pre-requisites for this should now be landed, so it should be pretty easy to do this now. Do we have a preference for which tag(s) we should use for this? It also wouldn't be too hard to have a different (or extra) tags for handling different trees differently. (Integration branches could be different than the merges to m-c, which can be different than branch uplifts.) Maybe we could have one tag always present ("bugherder") that Bugzilla could then handle specially, and then have additional tags for each of the individual cases to make it clearer what happened?
Flags: needinfo?(ryanvm)
Flags: needinfo?(emorley)
Flags: needinfo?(cbook)
I don't have a preference - glob might?
Flags: needinfo?(emorley)
Whiteboard: [bugherderq3want] → [bugherderq4want]
I think the branch-specific tags suggested in comment 9 make sense. I could see value in all the various distinctions mentioned. I don't have any strong opinions about a bugherder-specific tag, though. The only thought I have is that we should probably try to make sure that pulsebot does similar tagging when it comments in a bug.
Flags: needinfo?(ryanvm)
ni?glob for comment 10
Flags: needinfo?(glob)
(In reply to Wes Kocher (:KWierso) from comment #9) > Do we have a preference for which tag(s) we should use for this? > > Maybe we could have one tag always present ("bugherder") that Bugzilla could > then handle specially, and then have additional tags for each of the > individual cases to make it clearer what happened? i don't want bugzilla to perform any special handling for user provided tags, so you're free to use any tags you want that best suits your requirements.
Flags: needinfo?(glob)
Attached file PR 34
I think these should work. Haven't really tested it with a larger push to make sure everything works together, but each individual tag seems to work in a push on its own (a push with only a single uplift to aurora adds the "uplift" tag, a single backout adds "backout", a single trunk landing adds "landing").
Assignee: nobody → wkocher
Status: NEW → ASSIGNED
Attachment #8666278 - Flags: feedback?(graeme.mccutcheon)
Comment on attachment 8666278 [details] [review] PR 34 Actually, lets switch this to an actual review.
Attachment #8666278 - Flags: feedback?(graeme.mccutcheon) → review?(graeme.mccutcheon)
nice tags :)
Flags: needinfo?(cbook)
There were some issues with the previous patch (if any push was marked as a backout, it seemed to mark every push as a backout). I think I've fixed that problem with the latest patch in the PR. I'm going to run today's merges with this patch applied and if everything goes smoothly, I'll probably just merge the PR. Happy to get a post-landing review still when you get a chance. :)
Hope to clear review backlog this weekend - apologies for delay (have recently moved, and started a new job, spare time has been in short supply. I'll get quicker soon, I promise!).
Attachment #8666278 - Flags: review?(graeme.mccutcheon) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: