bug 1412690 - add task dependencies. r=rail

This patch adds the `release_deps` transform, which adds every
kind-dependency task that has the same product as a task dependency
(with some exceptions).

This patch made it clear that we need a standard way of defining
product.

MozReview-Commit-ID: 4xOJRQSCTgF
This commit is contained in:
Aki Sasaki
2017-10-29 17:40:50 -07:00
parent 504d0f106f
commit 354b0684f2
13 changed files with 60 additions and 26 deletions

View File

@@ -39,6 +39,7 @@ beetmover_cdns_description_schema = Schema({
job_description_schema['worker-type'],
{'by-project': {basestring: job_description_schema['worker-type']}},
),
Optional('dependencies'): {basestring: taskref_or_string},
})
@@ -70,16 +71,13 @@ def make_beetmover_cdns_description(config, jobs):
bucket_scope = get_beetmover_bucket_scope(config)
action_scope = get_beetmover_action_scope(config)
# TODO
dependencies = {}
task = {
'label': label,
'description': description,
'worker-type': 'scriptworker-prov-v1/beetmoverworker-dev',
'scopes': [bucket_scope, action_scope],
'product': job['product'],
'dependencies': dependencies,
'dependencies': job['dependencies'],
'attributes': job.get('attributes', {}),
'run-on-projects': job.get('run-on-projects'),
'treeherder': treeherder,