Closed
Bug 751066
Opened 12 years ago
Closed 11 years ago
Pending and running builds not shown on Thunderbird Try (Build API doesn't correctly distinguish between try and try-comm-central branches)
Categories
(Release Engineering :: General, defect, P3)
Release Engineering
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Keywords: buildapi, Whiteboard: [thunderbird][try])
Attachments
(1 file, 1 obsolete file)
861 bytes,
patch
|
standard8
:
review+
nthomas
:
checked-in-
|
Details | Diff | Splinter Review |
I noticed that we weren't getting pending & running notifications on: https://tbpl.mozilla.org/?tree=Thunderbird-Try Digging deeper, http://builddata.pub.build.mozilla.org/buildjson/builds-pending.js http://builddata.pub.build.mozilla.org/buildjson/builds-running.js https://secure.pub.build.mozilla.org/buildapi/pending https://secure.pub.build.mozilla.org/buildapi/running all show the pending/running builds for Thunderbird under the "try" branch rather than the "try-comm-central" branch. Looking at https://secure.pub.build.mozilla.org/buildapi/self-serve/try https://secure.pub.build.mozilla.org/buildapi/self-serve/try-comm-central the builds are listed correctly under the right branches. Could this be a sql query or something that's not restrictive enough on the branch name?
Updated•12 years ago
|
Component: Release Engineering → Release Engineering: Automation (General)
QA Contact: release → catlee
Comment 1•12 years ago
|
||
Not really sure what's going on here...
Priority: -- → P3
Whiteboard: [buildapi]
Assignee | ||
Comment 2•12 years ago
|
||
I could be wrong, but I suspect there's code that is matching branch name within a field, hence "try" matches "try" and "try-comm-central". I think this could be one location, but really I'm guessing: http://hg.mozilla.org/build/buildapi/annotate/226d1165769e/buildapi/model/pushes.py#l46 It may be we need to audit where the branch names are compared/obtained to ensure there is only exact matches going on.
Comment 3•12 years ago
|
||
That was my first thought too, but I don't think the pending/running reports you referred to filter by branch.
Comment 4•12 years ago
|
||
I suspect http://hg.mozilla.org/build/buildapi/file/default/buildapi/model/query.py#l27 is the issue.
Assignee | ||
Comment 5•12 years ago
|
||
This adjusts the function so that it effectively uses equals rather than startswith. I've not tested it though, I don't know if you guys have a staging server for this.
Attachment #651662 -
Flags: review?(nrthomas)
Comment 6•12 years ago
|
||
Comment on attachment 651662 [details] [diff] [review] Possible fix >diff --git a/buildapi/model/query.py b/buildapi/model/query.py >+ if shortname not in allBranches >+ return 'Unknown' Missing a trailing : on the if line. There are some release specific 'branches' like 'release-mozilla-beta-post_signing' which change, but these seem to be unused now so that's OK. Otherwise this checks out for some quick testing. Please land when catlee or myself are around; it'll auto deploy itself within 5 minutes.
Attachment #651662 -
Flags: review?(nrthomas) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Updated the patch, this is ready to land but there was bustage today. I'm not around tomorrow, so feel free to land for me, or if not I'll look at getting it landed on Thursday.
Assignee: nobody → mbanner
Attachment #651662 -
Attachment is obsolete: true
Attachment #651868 -
Flags: review+
Comment 8•12 years ago
|
||
Comment on attachment 651868 [details] [diff] [review] Possible fix v2 http://hg.mozilla.org/build/buildapi/rev/1dcdf4322301
Attachment #651868 -
Flags: checked-in+
Comment 9•12 years ago
|
||
That's fixed the issue with compile jobs, but there's something else causing issues with tests.
Comment 10•12 years ago
|
||
Comment on attachment 651868 [details] [diff] [review] Possible fix v2 Unfortunately this regressed Firefox tests, setting branches as things like mozilla-aurora-linux-pgo-talos. http://hg.mozilla.org/build/buildapi/rev/6a71c42d0895 eg, from https://secure.pub.build.mozilla.org/buildapi/pending Branch Revision Builder name mozilla-aurora-android-talos c236df02c24f Android Tegra 250 mozilla-aurora talos remote-tdhtml mozilla-beta-android-talos 2df27b18881c Android Tegra 250 mozilla-beta talos remote-tdhtml mozilla-esr10-win32-pgo-talos 3011c94976a1 Rev3 WINNT 5.1 mozilla-esr10 pgo talos chrome
Attachment #651868 -
Flags: checked-in+ → checked-in-
Assignee | ||
Updated•12 years ago
|
Whiteboard: [buildapi] → [buildapi][thunderbird][try]
Assignee | ||
Updated•12 years ago
|
Summary: Build API doesn't correctly distinguish between try and try-comm-central branches → Pending and running builds not shown on Thunderbird Try (Build API doesn't correctly distinguish between try and try-comm-central branches)
Assignee | ||
Comment 11•12 years ago
|
||
So how would we feel about changing the try-comm-central branch name to something like cc-try or tb-try-comm-central to avoid the duplication? I know that's different from the repository name, I don't think that would cause issues, I think it was just for consistency wasn't it?
Comment 12•12 years ago
|
||
Hmm, I've completely lost context on this. Two other options spring to mind, getting you a list of the branches in order to craft a patch that doesn't regress anything, swapping over to use whatever self-serve uses given that works.
Assignee | ||
Comment 13•12 years ago
|
||
(In reply to Nick Thomas [:nthomas] from comment #9) > That's fixed the issue with compile jobs, but there's something else causing > issues with tests. Unit tests wouldn't have worked because of the exact same reason as this breaking Firefox tests (comment 10). (In reply to Nick Thomas [:nthomas] from comment #12) > Hmm, I've completely lost context on this. Two other options spring to mind, > getting you a list of the branches in order to craft a patch that doesn't > regress anything, swapping over to use whatever self-serve uses given that > works. I think the only way we could avoid breaking tests etc, would be to work up a special case for try-comm-central versus try. I haven't been able to find what self-serve uses, but I'm actually wondering if that's mainly relying on finding the cset rather than the branch.
Updated•12 years ago
|
Whiteboard: [buildapi][thunderbird][try] → [thunderbird][try]
Comment 14•11 years ago
|
||
Fixed by bug 835089.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•11 years ago
|
||
Verified as working on Thunderbird Try. Thanks folks.
Status: RESOLVED → VERIFIED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•