Skip to content

Commit

Permalink
Bug 1403342 - use try_job transform for source tests too; r=ahal
Browse files Browse the repository at this point in the history
Just a minor refactor

MozReview-Commit-ID: 2YdOtO2sGEc

--HG--
extra : rebase_source : 04aa7cecf9de2e7bac01744f9c8b25805e77a013
  • Loading branch information
djmitche committed Oct 3, 2017
1 parent 301ac65 commit 43bb5cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions taskcluster/ci/source-test/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.try_job:transforms
- taskgraph.transforms.source_test:transforms
- taskgraph.transforms.job:transforms
- taskgraph.transforms.task:transforms
Expand Down
2 changes: 0 additions & 2 deletions taskcluster/taskgraph/transforms/source_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ def validate(config, jobs):
@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'])
Expand Down

0 comments on commit 43bb5cb

Please sign in to comment.