Closed Bug 1293554 Opened 9 years ago Closed 9 years ago

Only run SETA's loadSkipConfig on the test scheduler

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: kmoir)

References

Details

Attachments

(2 files, 3 obsolete files)

See Also: → 1293538
Assignee: nobody → kmoir
I investigated this a bit this morning. To me it seems like the best thing to be would be to set DISABLE_SETA=1 in the puppet configs for the test masters, investigating how to do this.
Thanks for looking at this Kim. I'd hoped we could look at 'role' in master_config.json, but didn't manage to navigate the tangle of imports which make it non-obvious how to do that. If we use the DISABLE_SETA=1 way solution, could we put a comment in mozilla-tests/config.py and mozilla-tests/mobile_config.py (eg where we call loadSkipConfig) explaining it only has an effect on the test scheduler ? Otherwise it would be easy to be debugging and miss the variable, leading to confusion.
Sure, I can do that. Not sure what the best solution is will have to do some testing.
So it doesn't look like puppet is the best solution for setting this since it would only be set when setting up a new server without modifying the user env for cltbld certain masters. I've looked at setting this in the buildbot-configs/mozilla-tests/config.py by conditionally setting imports for config_seta.py but the tangle of imports, is well quite tangled.
I don't think it's worth the time rearranging imports and avoiding bustage from new circular imports. Maybe we should just go for a pragmatic solution like * read master_config.json in mozilla-tests/{config.py,mobile_config.py}, then only import config_seta and call loadSkipConfig if master_config['role'] == 'scheduler' * aki's quick solution from when we were debugging - do a 'if "scheduler" in os.getcwd()' test
Attached patch bug1293554.patch (obsolete) — Splinter Review
Attached patch bug1293554tools.patch (obsolete) — Splinter Review
patch to cleanup config_seta.py file from masters once they don't need it
Attached patch bug1293554.patch (obsolete) — Splinter Review
Attachment #8781140 - Attachment is obsolete: true
Attached patch bug1293554.patchSplinter Review
Attachment #8781144 - Attachment is obsolete: true
Attachment #8781145 - Flags: review?(nthomas)
Attachment #8781143 - Flags: review?(nthomas)
Attachment #8781145 - Attachment is patch: true
Attachment #8781145 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 8781145 [details] [diff] [review] bug1293554.patch Nice catch on the master setup.
Attachment #8781145 - Flags: review?(nthomas) → review+
Comment on attachment 8781143 [details] [diff] [review] bug1293554tools.patch You'll need to change %(bbconfigs_dir)s/mozilla-tests/ to %(master_dir)s/, and suspect you meant 'remove' instead of 'remote'. r+ with those fixed.
Attachment #8781143 - Flags: review?(nthomas) → review+
Attachment #8781145 - Flags: checked-in+
Attachment #8781143 - Attachment is obsolete: true
Attachment #8781591 - Flags: checked-in+
tools file actually looked like this I cleaned config_seta.py symlinks were cleaned from the test masters using the fabric action
Status: NEW → RESOLVED
Closed: 9 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: