Bug 1318659 - Don't call SETA for build jobs; r?jmaher draft
authorRob Wood <rwood@mozilla.com>
Fri, 24 Feb 2017 10:16:35 -0500
changeset 489257 7d477690fcf3502d77f3e88d32aa5311c7a385f9
parent 489256 f065c4ec4ac679d4c80c891592bcbaafa576e6af
child 546957 d5dd6fb277cbaf42ccc0d412a2eae35461486c5e
push id46775
push userrwood@mozilla.com
push dateFri, 24 Feb 2017 15:17:01 +0000
reviewersjmaher
bugs1318659
milestone54.0a1
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'),