Closed Bug 739486 Opened 13 years ago Closed 13 years ago

test-masters.sh should run ./setup_master.py -t

Categories

(Release Engineering :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhford, Assigned: jhford)

Details

Attachments

(1 file)

There is a specific failure mode that ./setup_master.py -t catches that test_master.sh cannot catch at all. The failure is having a builder name in a scheduler's builder list but not being added to the buildbot master config. test-masters.sh does not test for this because it only runs multi-master mode, which explicitly skips this buildbot config test. Setup-master.py -t runs both mutli and single master mode checkconfigs which means that this test is run everywhere. We've also had setup_master.py -t for quite some time. I haven't heard of any bugs or major issues with it. setup_master.py -t is a reimplementation of test-masters.sh in python with enhancements. Lets change test-masters.sh into a script that runs ./setup_master.py -t instead of doing the test itself. Leaving the script in place means that we don't need to change preproduction-master or existing workflows. I just had to debug a failure because of this issue a second time and would really like to not have to do it a third. An example failure message is: The check in buildbot is 811 for s in schedulers: 812 for b in s.listBuilderNames(): 813 # Skip checks for builders in multimaster mode 814 if not multiMaster: 815 assert b in buildernames, \ 816 "%s uses unknown builder %s" % (s, b)
Attachment #609562 - Flags: review?(catlee)
Assignee: nobody → jhford
FYI, preproduction runs the following instead of test-masters.sh: python setup-master.py --test --masters-json ../tools/buildfarm/maintenance/production-masters.json
Attachment #609562 - Attachment is patch: true
Comment on attachment 609562 [details] [diff] [review] buildbot-configs v1 Review of attachment 609562 [details] [diff] [review]: ----------------------------------------------------------------- lesscode++
Attachment #609562 - Flags: review?(catlee) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
These changes went live around 11:55AM PDT.
This patch tries to run the wrong script, setup_master.py vs. setup-master.py. I fixed it in this commit: http://hg.mozilla.org/build/buildbot-configs/rev/e5fbe20c3d29
Product: mozilla.org → Release Engineering
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: