Bug 1360609 - Only run toolchain jobs on trunk and try. r?dustin draft
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 15 Jun 2017 17:47:02 +0900
changeset 594651 7df24620bcb1484bfa6cbb92b43530dba4374d29
parent 594168 a1d75baa49d3ec21256550985b79e41b68abe514
child 594652 c1d7d4dd3e22a53e5f1e874739f122b72c46e482
push id64104
push userbmo:mh+mozilla@glandium.org
push dateThu, 15 Jun 2017 08:52:44 +0000
reviewersdustin
bugs1360609, 1313111
milestone56.0a1
Bug 1360609 - Only run toolchain jobs on trunk and try. r?dustin Until bug 1313111, no job depends on them, so it's still necessary to run them on trunk and try, but we want to avoid running them on release branches on every push. After bug 1313111, we'll be able to empty the `run-on-projects` list and let them be pulled as dependencies of other jobs.
taskcluster/taskgraph/transforms/job/toolchain.py
--- a/taskcluster/taskgraph/transforms/job/toolchain.py
+++ b/taskcluster/taskgraph/transforms/job/toolchain.py
@@ -66,16 +66,18 @@ def add_optimizations(config, run, taskd
     # ... and cache at the lowest level.
     taskdesc.setdefault('routes', []).append(
         'index.{}'.format(TOOLCHAIN_INDEX.format(**subs)))
 
 
 @run_job_using("docker-worker", "toolchain-script", schema=toolchain_run_schema)
 def docker_worker_toolchain(config, job, taskdesc):
     run = job['run']
+    taskdesc['run-on-projects'] = ['autoland', 'mozilla-inbound',
+                                   'mozilla-central', 'try']
 
     worker = taskdesc['worker']
     worker['artifacts'] = []
     worker['caches'] = []
 
     worker['artifacts'].append({
         'name': 'public',
         'path': '/home/worker/workspace/artifacts/',
@@ -130,16 +132,18 @@ def docker_worker_toolchain(config, job,
     ]
 
     add_optimizations(config, run, taskdesc)
 
 
 @run_job_using("generic-worker", "toolchain-script", schema=toolchain_run_schema)
 def windows_toolchain(config, job, taskdesc):
     run = job['run']
+    taskdesc['run-on-projects'] = ['autoland', 'mozilla-inbound',
+                                   'mozilla-central', 'try']
 
     worker = taskdesc['worker']
 
     worker['artifacts'] = [{
         'path': r'public\build',
         'type': 'directory',
     }]