Closed Bug 981825 Opened 10 years ago Closed 10 years ago

Handle reverting fake branch values in build-{running, pending}.js and builds-4hr.js.gz

Categories

(Release Engineering :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zeller, Unassigned)

References

Details

Attachments

(1 file)

Fake branches are used to allow the triggering of arbitrary builds and tests (Bug 793989), because if a real value, like "mozilla-central", or "mozilla-central-opt-linux", is chosen then we risk triggering the regular schedulers and having a full suite of test runs scheduled instead of just the builder we're interested in. However, this causes tbpl not to show these jobs running because the first thing it does is look for jobs on-this-branch, and then on-this-rev. TBPL however does show the finished jobs because it picks them out of getRevisionBuilds.php.

Adjusting build-{running, pending}.js and builds-4hr.js.gz to revert the fake branch values should fix this issue. Fake branch values are simply branch names appended with -selfserve as shown here http://hg.mozilla.org/build/buildapi/file/0ab4da5551a8/buildapi/controllers/selfserve.py#l525
Blocks: 793989
It's new rows in the changes table that are problematic. I think we should be able to use the real branch in the sourcestamp without ill effect.
(In reply to Chris AtLee [:catlee] from comment #1)
> It's new rows in the changes table that are problematic. I think we should
> be able to use the real branch in the sourcestamp without ill effect.

If I understand this correctly, are you saying that removing the fake branch names should be fine then?
Attached patch bug981825.patchSplinter Review
This should fix the problem as per catlee's advice from comment 1
Attachment #8392463 - Flags: review?(catlee)
Attachment #8392463 - Flags: review?(catlee) → review+
Attachment #8392463 - Flags: checked-in?
The fix in bug 1009565 seems to have resolved anymore issues with this. TBPL is now showing pending and running arbitrary builds. Patch that seems to have fixed this issue is https://bug1009565.bugzilla.mozilla.org/attachment.cgi?id=8422070
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: