Bug 1281004: make fennec debug tier-1 (forward-port of Bug 1282850); r=Callek draft
authorDustin J. Mitchell <dustin@mozilla.com>
Thu, 14 Jul 2016 01:48:08 +0000
changeset 389206 d8e7730649df6303bc2f6783ba3f1095ace73361
parent 389205 03e70902c2d3a297eb9e3ce852f8737c2550d5a6
child 389207 bcef830fb9d729f985449d3a0819f8abd55c3d6c
push id23312
push userdmitchell@mozilla.com
push dateMon, 18 Jul 2016 17:58:50 +0000
reviewersCallek
bugs1281004, 1282850
milestone50.0a1
Bug 1281004: make fennec debug tier-1 (forward-port of Bug 1282850); r=Callek MozReview-Commit-ID: GdiwlxgwZwF
taskcluster/taskgraph/transforms/tests/android_test.py
--- a/taskcluster/taskgraph/transforms/tests/android_test.py
+++ b/taskcluster/taskgraph/transforms/tests/android_test.py
@@ -21,16 +21,28 @@ def set_defaults(config, tests):
         # all Android test tasks download internal objects from tooltool
         test['mozharness']['tooltool-downloads'] = True
         test['mozharness']['build-artifact-name'] = 'public/build/target.apk'
         test['mozharness']['actions'] = ['get-secrets']
         yield test
 
 
 @transforms.add
+def set_tier(config, tests):
+    for test in tests:
+        if 'tier' not in test:
+            # Bug 1282850: android debug is tier 1, but opt is tier 2
+            if test['test-platform'] == 'android-4.3-arm7-api-15/debug':
+                test['tier'] = 1
+            else:
+                test['tier'] = 2
+        yield test
+
+
+@transforms.add
 def set_treeherder_machine_platform(config, tests):
     """Set the appropriate task.extra.treeherder.machine.platform"""
     # The build names for these build platforms have partially evolved over the
     # years..  This is temporary until we can clean up the handling of
     # platforms
     translation = {
         'android-api-15/debug': 'android-4-3-armv7-api15/debug',
         'android-api-15/opt': 'android-4-3-armv7-api15/opt',