Bug 1376550 - Wire the unsigned 'build' task as a dependency on the repackage job for l10n repackage jobs, to support the complete.mar generation. r=dustin
Support OSX Signed nightlies (in the complete.mar too)
MozReview-Commit-ID: 8krBMVOIuld
--- a/taskcluster/taskgraph/transforms/repackage.py
+++ b/taskcluster/taskgraph/transforms/repackage.py
@@ -93,16 +93,24 @@ def make_job_description(config, jobs):
treeherder.setdefault('kind', 'build')
build_task = None
signing_task = None
for dependency in dependencies.keys():
if 'signing' in dependency:
signing_task = dependency
else:
build_task = dependency
+ if job.get('locale'):
+ # XXXCallek: todo: rewrite dependency finding
+ # Use string splice to strip out 'nightly-l10n-' .. '-<chunk>/opt'
+ # We need this additional dependency to support finding the mar binary
+ # Which is needed in order to generate a new complete.mar
+ dependencies['build'] = "build-{}/opt".format(
+ dependencies[build_task][13:dependencies[build_task].rfind('-')])
+ build_task = 'build'
signing_task_ref = "<{}>".format(signing_task)
build_task_ref = "<{}>".format(build_task)
attributes = {
'nightly': dep_job.attributes.get('nightly', False),
'build_platform': dep_job.attributes.get('build_platform'),
'build_type': dep_job.attributes.get('build_type'),
}