Closed Bug 674357 Opened 14 years ago Closed 14 years ago

Write a test to make sure slaves can't be allocated to both try and prod

Categories

(Release Engineering :: General, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: rail)

Details

Attachments

(2 files)

Slaves swapping between prod and try is a source of upload errors (wrong ssh keys), so lets ensure that the slaves lists for both have no overlap. This would be run on preproduction.
mw32-ix-slave12 switch to try recently, but is still allowed to connect to prod. We'll have non-empty TRY_WIN64_IXS eventually, for now it's just to make the test pass.
Attachment #548580 - Flags: review?(rail)
FWIW this is run with trial like the buildbotcustom tests, from mozilla/.
Attachment #548580 - Flags: review?(rail) → review+
Comment on attachment 548580 [details] [diff] [review] Add test and fix current dupe-age hg.mozilla.org/build/buildbot-configs/rev/ff8d867b07da hg.mozilla.org/build/buildbot-configs/rev/116b52cf9017
Attachment #548580 - Flags: checked-in+
Rail gracefully volunteered to hook this up to preproduction.
Assignee: nrthomas → rail
I added 2 tests: * test_all_prod_vs_try: compare all try slaves vs prod slaves and make sure that there is no intersection. This required some changes in prod.XSERVES * test_prod_is_subset_of_stag: make sure that production slaves are subset of staging slaves.
Attachment #548828 - Flags: review?(nrthomas)
Comment on attachment 548828 [details] [diff] [review] check staging slaves >diff --git a/mozilla/staging_config.py b/mozilla/staging_config.py >+TRY_WIN32 = ['try-w32-slave%02i' % x for x in range (1,37)] This (and probably other lines) will go back down again when bug 673174 finalizes, but that's OK. >diff --git a/mozilla/test/test_slave_allocation.py b/mozilla/test/test_slave_allocation.py The tests I added have less coverage than what you're adding here, so go ahead and remove mine.
Attachment #548828 - Flags: review?(nrthomas) → review+
The tests are enabled in preproduction now.
Status: ASSIGNED → 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: