Bug 1403342 - use try_job transform for source tests too; r=ahal
authorDustin J. Mitchell <dustin@mozilla.com>
Tue, 03 Oct 2017 21:09:22 +0000
changeset 679128 5c8014361629ca5734aaa42afce360bc48411a39
parent 679127 58baa3acd72d011c104f9edef7d07cbb74e25305
child 679129 911bafc2b6858b1ef0c2b98c3e1f9ed714caa41b
push id84141
push userbmo:schien@mozilla.com
push dateThu, 12 Oct 2017 11:13:04 +0000
reviewersahal
bugs1403342
milestone58.0a1
Bug 1403342 - use try_job transform for source tests too; r=ahal Just a minor refactor MozReview-Commit-ID: 2YdOtO2sGEc
taskcluster/ci/source-test/kind.yml
taskcluster/taskgraph/transforms/source_test.py
--- a/taskcluster/ci/source-test/kind.yml
+++ b/taskcluster/ci/source-test/kind.yml
@@ -1,15 +1,16 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 ---
 loader: taskgraph.loader.transform:loader
 
 transforms:
+   - taskgraph.transforms.try_job:transforms
    - taskgraph.transforms.source_test:transforms
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms
 
 jobs-from:
    - cram.yml
    - doc.yml
    - mocha.yml
--- a/taskcluster/taskgraph/transforms/source_test.py
+++ b/taskcluster/taskgraph/transforms/source_test.py
@@ -66,18 +66,16 @@ def validate(config, jobs):
     for job in jobs:
         yield validate_schema(source_test_description_schema, job,
                               "In job {!r}:".format(job['name']))
 
 
 @transforms.add
 def set_job_name(config, jobs):
     for job in jobs:
-        job.setdefault('attributes', {}).setdefault('job_try_name', job['name'])
-
         if 'job-from' in job and job['job-from'] != 'kind.yml':
             from_name = os.path.splitext(job['job-from'])[0]
             job['name'] = '{}-{}'.format(from_name, job['name'])
         yield job
 
 
 @transforms.add
 def expand_platforms(config, jobs):