Bug 1383257 - Do not attempt to schedule win10 hardware testing, unless we're on try. r=grenade
authorJustin Wood <Callek@gmail.com>
Tue, 25 Jul 2017 15:56:32 -0400
changeset 615924 fd77c8ca32b7f72b57eb19a3b566725fee533c9a
parent 615923 638d48362a5708acdffd8dc17992ac9d1cac1ab5
child 615925 c0c8ca528392649e0b2c32196e176fca9b65067d
child 615935 388d81ed93fa640f91d155f36254667c734157cf
push id70526
push userCallek@gmail.com
push dateWed, 26 Jul 2017 14:50:52 +0000
reviewersgrenade
bugs1383257
milestone56.0a1
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
taskcluster/taskgraph/transforms/tests.py
--- 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'])