Closed Bug 586420 Opened 14 years ago Closed 14 years ago

Move tinderbox print of revision up higher in the Try steps so that the results are easier to find on Tinderbox

Categories

(Release Engineering :: General, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lsblakk, Assigned: lsblakk)

Details

(Whiteboard: [tryserver])

Attachments

(1 file, 1 obsolete file)

When a build fails during hg_update for example, the revision has not yet been printed and results in a log searching wild goose chase for the developer.  If we can move the tinderbox print step of the revision to just after the buildername print then this information would be easier to obtain.
Could of sworn this was a dupe but I can only find the Talos version, bug 560236.
Comment on attachment 464933 [details] [diff] [review]
[needs testing] move the tinderbox print of revision into TryBuildFactory init

This won't work, 'got_revision' won't be set yet.  But 'revision' should work.
Can we do this for builds on all branches rather than diverge try ?
(In reply to comment #4)
> Can we do this for builds on all branches rather than diverge try ?

Not sure......Nightlies don't have 'revision' set (yet), so this wouldn't work for them.
It would also be an issue for anything that uses MercurialBuildFactory.buildRevision because that will set it to something that isn't revision or got_revision, not sure if that matters.

It seems like an issue to print out what we asked for (revision) instead of what the actual code that was built is (got_revision).

From what i remember 'hg parent' is run only on try.  i wonder if the revision in the change is going to be the same as 'hg parent --template={node}'
Ran this in staging - this way we can add other branches if they also have a revision at this point or develop it further somehow.  This works for now, for try.
Attachment #464933 - Attachment is obsolete: true
Attachment #464964 - Flags: review?(catlee)
Comment on attachment 464964 [details] [diff] [review]
[tested] print revision in the first few steps of try build

>diff --git a/process/factory.py b/process/factory.py
>--- a/process/factory.py
>+++ b/process/factory.py
>@@ -207,16 +207,21 @@ class MozillaBuildFactory(BuildFactory):
>         self.addStep(OutputStep(
>          name='tinderboxprint_buildername',
>          data=WithProperties('TinderboxPrint: s: %(slavename)s'),
>         ))
>         self.addStep(OutputStep(
>          name='tinderboxsummarymessage_buildername',
>          data=WithProperties('TinderboxSummaryMessage: s: %(slavename)s'),
>         ))
>+        if self.branchName in ('tryserver'):

Tiny nit: this should be ('tryserver',) I think

The rest looks good...I don't really like hardcoding the branch name here, but don't have any better ideas right now.
Attachment #464964 - Flags: review?(catlee) → review+
Comment on attachment 464964 [details] [diff] [review]
[tested] print revision in the first few steps of try build

http://hg.mozilla.org/build/buildbotcustom/rev/7f84d13025d1
Attachment #464964 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: