Closed
Bug 567478
Opened 15 years ago
Closed 15 years ago
try-as-branch sends email containing urls and text that doesn't fit the results
Categories
(Release Engineering :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: lsblakk, Assigned: lsblakk)
References
Details
(Whiteboard: tryserver)
Attachments
(1 file, 3 obsolete files)
1.97 KB,
patch
|
nthomas
:
review+
lsblakk
:
checked-in+
|
Details | Diff | Splinter Review |
This was brought up in #developers. It would be good to set where the pusher wants the email notification to be sent. I think this can be added in to the parser that will be created for commit comments to select certain build/platform combos as per bug 473184
Comment 1•15 years ago
|
||
To be clear, I think it is FAR more useful to have e-mail go to pusher rather than patch author BY DEFAULT.
For two main reasons:
1) Its how try _used to_ work. And how people expect it.
2) 9 times out of 10, the person who wants the e-mail is the pusher, whether it be from checkin-needed work (Hey, I want to push this for user bob, but I don't want to be breaking the tree on everyone when I didn't write or test the patch).
3) The other common case is someone who wrote the patch is doing the push-to-try for themselves, in this case they are the pusher && patch author, so defaulting to pusher will make sense here.
The far rarer case is when someone that does not have commit [level 1] rights wants to monitor the try build of their own patch[set]. In the try results you also are expected to be able to decipher random orange from patch-caused orange, etc. So even in this case, the chances of someone non-pusher having the best read of results is slim. The person pushing in most cases should be more than willing to forward the e-mail to the person if needed anyway.
Long Story Short, lets make the default case the common [and expected] case and not the other way around [please].
Assignee | ||
Comment 2•15 years ago
|
||
Running this through staging right now, have already checked that it sets the who and revision properly for a build - will continue to watch the packaged unittests to make sure there's no issues there.
Putting it in the MozillaBuildFactory's initialSteps allowed me to take out the lines I added to UnittestPackagedBuildFactory last week.
Attachment #447127 -
Flags: review?(nrthomas)
Assignee | ||
Comment 3•15 years ago
|
||
confirmed that this patch sets who and revision for all packagedUnittests - which will help close bug 567376
Assignee | ||
Comment 4•15 years ago
|
||
Same as the last patch, but now with a few extra tweaks to the email text to make more sense based on results - for some reason all the emails said "successfully" even if not so successful.
Attachment #447127 -
Attachment is obsolete: true
Attachment #447148 -
Flags: review?(nrthomas)
Attachment #447127 -
Flags: review?(nrthomas)
Assignee | ||
Comment 5•15 years ago
|
||
Caught one more email text issue - builds completing with warnings were sending the url twice.
Attachment #447148 -
Attachment is obsolete: true
Attachment #447151 -
Flags: review?(nrthomas)
Attachment #447148 -
Flags: review?(nrthomas)
Assignee | ||
Updated•15 years ago
|
Summary: try-as-branch sends email to hg changeset author, not push address → try-as-branch sends email containing urls and text that doesn't fit the results
Assignee | ||
Comment 7•15 years ago
|
||
Attachment #447151 -
Attachment is obsolete: true
Attachment #447208 -
Flags: review?(nrthomas)
Attachment #447151 -
Flags: review?(nrthomas)
Comment 8•15 years ago
|
||
Comment on attachment 447208 [details] [diff] [review]
cleans up the try emails output and adds more checks to results
>diff --git a/status/generators.py b/status/generators.py
>+ elif attrs['result'] == 'exception':
>+ text = """\
>+Your Try Server %(task)s (%(got_revision)s) completed with exception on \
>+%(platform)s on builder: %(builder)s.\n\n""" % locals()
I would've guessed that most builds which hit an exception will have not really completed. For example, all the disconnects we had recently with the Castro link tended to be during a compilation, rather than at the very end. So I'd suggest rewording this to be more like the failure case.
> else:
>+ text = ""
This is crying out for something to handle other results being added in the future. Even if it's just 'go ask RelEng'.
>+ if attrs['result'] in ('failure', 'exception') and 'who-not-set' not in who:
> text += "While some of the build steps haven't succeeded, your build package might have been \
> successfully created and could be available for download at %(url)s\n\n" % locals()
Please remove the spaces before 'successfully' so they don't show up in mails.
r+ with those changes.
Attachment #447208 -
Flags: review?(nrthomas) → review+
Assignee | ||
Comment 10•15 years ago
|
||
Comment on attachment 447208 [details] [diff] [review]
cleans up the try emails output and adds more checks to results
http://hg.mozilla.org/build/buildbotcustom/rev/a2c1e641534b
reconfig'd the try-master.
Attachment #447208 -
Flags: checked-in+
Assignee | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•