Bug 1318659 - Don't call SETA for build jobs; r=jmaher
authorRob Wood <rwood@mozilla.com>
Fri, 24 Feb 2017 10:16:35 -0500
changeset 394153 e773a7aa43352b41a063474f1c7dda7206e80b79
parent 394152 3ef4e3e72e1e66240dcbf9bb5466543c0e80b84b
child 394154 7b1716fa9983b0662773fea92eb8847edb65557c
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1318659
milestone54.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 1318659 - Don't call SETA for build jobs; r=jmaher MozReview-Commit-ID: 5O5k0WRorBp
taskcluster/taskgraph/task/transform.py
--- a/taskcluster/taskgraph/task/transform.py
+++ b/taskcluster/taskgraph/task/transform.py
@@ -97,18 +97,22 @@ class TransformTask(base.Task):
         elif 'files-changed' in self.when:
             changed = files_changed.check(
                 params, self.when['files-changed'])
             if not changed:
                 logger.debug('no files found matching a pattern in `when.files-changed` for ' +
                              self.label)
                 return True, None
 
+        # no need to call SETA for build jobs
+        if self.task.get('extra', {}).get('treeherder', {}).get('jobKind', '') == 'build':
+            return False, None
+
         # for bbb tasks we need to send in the buildbot buildername
-        if self.task.get('provisionerId') == 'buildbot-bridge':
+        if self.task.get('provisionerId', '') == 'buildbot-bridge':
             self.label = self.task.get('payload').get('buildername')
             bbb_task = True
 
         # we would like to return 'False, None' while it's high_value_task
         # and we wouldn't optimize it. Otherwise, it will return 'True, None'
         if is_low_value_task(self.label,
                              params.get('project'),
                              params.get('pushlog_id'),