Bug 1364887: don't run SETA on try pushes; r?jmaher draft
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 15 May 2017 13:32:15 +0000
changeset 579623 cdee42b4e5261e6537d08573ee08d2d8b28cda14
parent 577831 8ec3c143e890c3122249125b8b4dad189fef8d01
child 629060 51bfbc469d7ebbe3d4641e85454ea1ee2a0d216a
push id59309
push userdmitchell@mozilla.com
push dateWed, 17 May 2017 14:56:41 +0000
reviewersjmaher
bugs1364887
milestone55.0a1
Bug 1364887: don't run SETA on try pushes; r?jmaher MozReview-Commit-ID: 7L2I3WWziSE
taskcluster/taskgraph/transforms/tests.py
--- a/taskcluster/taskgraph/transforms/tests.py
+++ b/taskcluster/taskgraph/transforms/tests.py
@@ -766,33 +766,38 @@ def make_job_description(config, tests):
         jobdesc['when'] = test.get('when', {})
         jobdesc['attributes'] = attributes
         jobdesc['dependencies'] = {'build': build_label}
         jobdesc['expires-after'] = test['expires-after']
         jobdesc['routes'] = []
         jobdesc['run-on-projects'] = test['run-on-projects']
         jobdesc['scopes'] = []
         jobdesc['tags'] = test.get('tags', {})
-        jobdesc['optimizations'] = [['seta']]  # always run SETA for tests
         jobdesc['extra'] = {
             'chunks': {
                 'current': test['this-chunk'],
                 'total': test['chunks'],
             },
             'suite': {
                 'name': suite,
                 'flavor': flavor,
             },
         }
         jobdesc['treeherder'] = {
             'symbol': test['treeherder-symbol'],
             'kind': 'test',
             'tier': test['tier'],
             'platform': test.get('treeherder-machine-platform', test['build-platform']),
         }
+
+        # run SETA unless this is a try push
+        jobdesc['optimizations'] = optimizations = []
+        if config.params['project'] != 'try':
+            optimizations.append(['seta'])
+
         run = jobdesc['run'] = {}
         run['using'] = 'mozharness-test'
         run['test'] = test
         worker = jobdesc['worker'] = {}
         implementation = worker['implementation'] = test['worker-implementation']
 
         if implementation == 'buildbot-bridge':
             jobdesc['worker-type'] = 'buildbot-bridge/buildbot-bridge'