Bug 1360609 - Only run toolchain jobs on trunk and try. r=dustin
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 15 Jun 2017 17:47:02 +0900
changeset 365107 3902fad6bd1d898a23dd5e3ef4e6cc59976a17a1
parent 365106 9933a2e58516314b080b2f3d1e8b587d6c0c4b69
child 365108 421f186724e93262cdc008a11bf5dd7a7008d226
push id91680
push userkwierso@gmail.com
push dateWed, 21 Jun 2017 01:32:01 +0000
treeherdermozilla-inbound@f7b9dc31956c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1360609, 1313111
milestone56.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 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',
     }]