Bug 1383257 - Do not attempt to schedule win10 hardware testing, unless we're on try. r=grenade
for: Land changes to flip windows nightlies on, and to tier 1 on central
MozReview-Commit-ID: EB0UVV3zQYX
--- a/taskcluster/taskgraph/transforms/tests.py
+++ b/taskcluster/taskgraph/transforms/tests.py
@@ -835,16 +835,28 @@ def set_worker_type(config, tests):
test['worker-type'] = LINUX_WORKER_TYPES[test['instance-size']]
else:
raise Exception("unknown test_platform {}".format(test_platform))
yield test
@transforms.add
+def skip_win10_hardware(config, tests):
+ """Windows 10 hardware isn't ready yet, don't even bother scheduling
+ unless we're on try"""
+ for test in tests:
+ if 'releng-hardware/gecko-t-win10-64-hw' not in test['worker-type']:
+ yield test
+ if config.params == 'try':
+ yield test
+ # Silently drop the test on the floor if its win10 hardware and we're not try
+
+
+@transforms.add
def make_job_description(config, tests):
"""Convert *test* descriptions to *job* descriptions (input to
taskgraph.transforms.job)"""
for test in tests:
label = '{}-{}-{}'.format(config.kind, test['test-platform'], test['test-name'])
if test['chunks'] > 1:
label += '-{}'.format(test['this-chunk'])