Bug 1542707 - Don't replace 'nightly' jobs with artifact builds on try. r=glandium
authorChris Manchester <cmanchester@mozilla.com>
Tue, 09 Apr 2019 09:16:15 +0000
changeset 468600 17b96c33164ec887ae256a7e5501dd365af8911d
parent 468599 83e7324dc00b7cfcf4e3f05ebe9523bbbac6d6eb
child 468601 89c293eaf78e37edc34917370ee62a6c2a83d172
push id35843
push usernbeleuzu@mozilla.com
push dateTue, 09 Apr 2019 22:08:13 +0000
treeherdermozilla-central@a31032a16330 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1542707
milestone68.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 1542707 - Don't replace 'nightly' jobs with artifact builds on try. r=glandium Differential Revision: https://phabricator.services.mozilla.com/D26658
taskcluster/taskgraph/transforms/build.py
--- a/taskcluster/taskgraph/transforms/build.py
+++ b/taskcluster/taskgraph/transforms/build.py
@@ -148,13 +148,14 @@ def use_artifact(config, jobs):
     if config.params['try_mode'] == 'try_task_config':
         use_artifact = config.params['try_task_config'] \
             .get('templates', {}).get('artifact', {}).get('enabled')
     elif config.params['try_mode'] == 'try_option_syntax':
         use_artifact = config.params['try_options'].get('artifact')
     else:
         use_artifact = False
     for job in jobs:
-        if config.kind == 'build' and use_artifact and \
-                job.get('index', {}).get('job-name') in ARTIFACT_JOBS:
+        if (config.kind == 'build' and use_artifact and
+            not job.get('attributes', {}).get('nightly', False) and
+            job.get('index', {}).get('job-name') in ARTIFACT_JOBS):
             job['treeherder']['symbol'] += 'a'
             job['worker']['env']['USE_ARTIFACT'] = '1'
         yield job