Closed Bug 1392488 Opened 7 years ago Closed 11 months ago

Title of email for try push should ignore commit of try fuzzy

Categories

(Release Engineering :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: xidorn, Unassigned)

Details

Attachments

(1 file)

When a try push is done with traditional try syntax, the email notification sent for the try push would be the commit message before the try syntax commit.

However, with try fuzzy, the emails are now all titled
> Pushed via 'mach try fuzzy', see diff for scheduled tasks
which is not quite useful when browsing email list.
I think that's controlled in https://hg.mozilla.org/build/buildbotcustom/file/tip/status/generators.py#l47
Component: Treeherder → General Automation
Product: Tree Management → Release Engineering
QA Contact: catlee
I have a patch that's going to change this to include the query used to something like:
Pushed via 'mach try fuzzy' with query: 'stylo

With that change would you be ok WONTFIXING this?
No, that doesn't help. The commit message is still much more useful than what task am I running. Majority of people usually run the same set of tasks in most of time, so what is in the query doesn't really provide much information.
Ah, I misunderstood what you meant. Yeah this bug makes sense, thanks for filing! (I never noticed as I redirect try e-mails to trash).
Comment on attachment 8904085 [details]
Bug 1392488 - Skip commit created by try fuzzy for sensible commit title.

https://reviewboard.mozilla.org/r/175836/#review181304

::: status/generators.py:54
(Diff revision 1)
>      """
>      Returns the first non-trychooser title with unnecessary cruft removed.
>      """
>      for title in titles:
> +        # Skip try fuzzy commit.
> +        if title.startswith('Pushed via '):

can we make this more specific to the try fuzzy commit message?
Just in case this informs the approach taken here, in the future there will be more than one try_task_config.json based try selector, e.g we might have: ./mach try path

It might be a good idea to standardize on some sort of token in the commit message for all of these. I don't know if we want to make it 'Pushed via' or not though. This could also be left for follow-up when we actually do have more than one selector.
Patch updated.
Comment on attachment 8904085 [details]
Bug 1392488 - Skip commit created by try fuzzy for sensible commit title.

https://reviewboard.mozilla.org/r/175836/#review183292
Attachment #8904085 - Flags: review?(catlee) → review+
It seems I don't have permission to checkin code into this repo.
Keywords: checkin-needed
Chris, could you help checking this in?
Flags: needinfo?(catlee)
Sure thing.

I checked it in here: https://hg.mozilla.org/build/buildbotcustom/rev/45e90cfbfd5e

It should be deployed later in the week.
Flags: needinfo?(catlee)
Thanks.
Assignee: nobody → xidorn+moz
This is going to be regressed by bug 1400429 which moves the "Pushed via" to the second line (since this patch uses startswith). Note the quote is also being changed to a backtick. Also, there will now be:

Pushed via `mach try syntax`
Pushed via `mach try empty`

messages that we also want to catch. So I'd suggest not making this 'fuzzy' specific. Maybe we could change the condition to:

if "Pushed via `mach" in line:
Assignee: xidorn+moz → nobody
Actually, it looks like "titles" only contains the first line of the commit message, in which case we can't use this to detect the "Pushed via" anymore since it's no longer on the first line.

Also worth noting this would be broken by bug 1400469 which will allow arbitrary descriptions in a |mach try| push.
Component: General Automation → General

The email no longer includes commit descriptions.

Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: