Bug 1338871 - Enable Talos tests for linux64-stylo builds r=dustin
authorKim Moir <kmoir@mozilla.com>
Mon, 13 Mar 2017 17:28:54 -0400
changeset 395597 b463b127b85a2c5202299449edf80794a81cb2fb
parent 395596 22874b29ac930217a734d5adcb61d34011328124
child 395598 252c03880423b12f9fa7dbccaff423abaa96f7f9
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1338871
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1338871 - Enable Talos tests for linux64-stylo builds r=dustin
.cron.yml
taskcluster/ci/test/test-platforms.yml
taskcluster/ci/test/tests.yml
taskcluster/taskgraph/target_tasks.py
--- a/.cron.yml
+++ b/.cron.yml
@@ -54,8 +54,19 @@ jobs:
       job:
           type: decision-task
           treeherder-symbol: Nc
           target-tasks-method: nightly_code_coverage
       run-on-projects:
           - mozilla-central
       when:
           - {hour: 18, minute: 0}
+
+    - name: nightly-stylo-talos
+      job:
+          type: decision-task
+          treeherder-symbol: T 
+          target-tasks-method: stylo_talos
+      run-on-projects:
+          - mozilla-central
+      when:
+          - {hour: 4, minute: 0}
+
--- a/taskcluster/ci/test/test-platforms.yml
+++ b/taskcluster/ci/test/test-platforms.yml
@@ -81,16 +81,17 @@ linux64-asan/opt:
 linux64-stylo/debug:
     build-platform: linux64-stylo/debug
     test-sets:
         - stylo-tests
 linux64-stylo/opt:
     build-platform: linux64-stylo/opt
     test-sets:
         - stylo-tests
+        - talos
 
 # QR builds just run a subset right now. Note that the tests in this
 # test set are further restricted in tests.yml to run on certain projects
 # only, to avoid adding too much infra load.
 linux64-qr/opt:
     build-platform: linux64-qr/opt
     test-sets:
         - qr-tests
--- a/taskcluster/ci/test/tests.yml
+++ b/taskcluster/ci/test/tests.yml
@@ -1096,17 +1096,20 @@ robocop:
         extra-options:
             - --test-suite=robocop
 
 talos-chrome:
     description: "Talos chrome"
     suite: talos
     talos-try-name: chromez
     treeherder-symbol: tc-T(c)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1114,17 +1117,20 @@ talos-chrome:
         extra-options:
             - --suite=chromez
 
 talos-dromaeojs:
     description: "Talos dromaeojs"
     suite: talos
     talos-try-name: dromaeojs
     treeherder-symbol: tc-T(d)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1132,17 +1138,20 @@ talos-dromaeojs:
         extra-options:
             - --suite=dromaeojs
 
 talos-g1:
     description: "Talos g1"
     suite: talos
     talos-try-name: g1
     treeherder-symbol: tc-T(g1)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1150,35 +1159,41 @@ talos-g1:
         extra-options:
             - --suite=g1
 
 talos-g2:
     description: "Talos g2"
     suite: talos
     talos-try-name: g2
     treeherder-symbol: tc-T(g2)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
                     - remove_executables.py
         extra-options:
             - --suite=g2
 
 talos-g3:
     description: "Talos g3"
     suite: talos
     talos-try-name: g3
     treeherder-symbol: tc-T(g3)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1186,17 +1201,20 @@ talos-g3:
         extra-options:
             - --suite=g3
 
 talos-g4:
     description: "Talos g4"
     suite: talos
     talos-try-name: g4
     treeherder-symbol: tc-T(g4)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1204,17 +1222,20 @@ talos-g4:
         extra-options:
             - --suite=g4
 
 talos-other:
     description: "Talos other"
     suite: talos
     talos-try-name: other
     treeherder-symbol: tc-T(o)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] 
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1222,17 +1243,20 @@ talos-other:
         extra-options:
             - --suite=other
 
 talos-svgr:
     description: "Talos svgr"
     suite: talos
     talos-try-name: svgr
     treeherder-symbol: tc-T(s)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
@@ -1240,17 +1264,20 @@ talos-svgr:
         extra-options:
             - --suite=svgr
 
 talos-tp5o:
     description: "Talos tp5o"
     suite: talos
     talos-try-name: tp5o
     treeherder-symbol: tc-T(tp)
-    run-on-projects: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
+    run-on-projects:
+        by-test-platform:
+            linux64-stylo/.*: []
+            default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try']
     max-run-time: 3600
     mozharness:
         script: talos_script.py
         no-read-buildbot-config: true
         config:
             by-test-platform:
                 default:
                     - talos/linux_config.py
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -273,8 +273,26 @@ def target_tasks_stylo(full_task_graph, 
     """Target stylotasks that only run on the m-c branch."""
     def filter(task):
         platform = task.attributes.get('build_platform')
         # only select platforms
         if platform not in ('linux64-stylo'):
             return False
         return True
     return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
+
+
+@_target_task('stylo_talos')
+def target_tasks_stylo(full_task_graph, parameters):
+    """Target stylotasks that only run on the m-c branch."""
+    def filter(task):
+        platform = task.attributes.get('build_platform')
+        # only stylo platforms
+        if platform != ('linux64-stylo'):
+            return False
+        # no non-e10s tests
+        if task.attributes.get('unittest_suite'):
+            if not task.attributes.get('e10s'):
+                return False
+            # only run talos
+            if task.attributes.get('unittest_suite') == 'talos':
+                return True
+    return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]