Bug 1576707 - Allow "absolute" fetch artifacts to ignore `artifact_prefix`. r=aki
authorNick Alexander <nalexander@mozilla.com>
Tue, 27 Aug 2019 22:21:42 +0000
changeset 554056 b9dbcc4fdabfde2fbbfb60127d690329ccbc1496
parent 554055 137971f64c25356ca3a3a6e37fa879e301a4528f
child 554057 08669f191b51e50f7062c5f1276cb28d3576e212
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
bugs1576707
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576707 - Allow "absolute" fetch artifacts to ignore `artifact_prefix`. r=aki The way that `artifact-prefix` works is that it applies to the _consuming_ task's fetches... meaning that changing the prefix requires working out the new paths for every fetch in the consuming task. This allows to "opt-out" of the artifact prefix mechanism for individual fetches. Differential Revision: https://phabricator.services.mozilla.com/D43535
taskcluster/taskgraph/transforms/job/__init__.py
--- a/taskcluster/taskgraph/transforms/job/__init__.py
+++ b/taskcluster/taskgraph/transforms/job/__init__.py
@@ -233,17 +233,18 @@ def use_fetches(config, jobs):
                         dest = None
                         extract = True
                     else:
                         path = artifact['artifact']
                         dest = artifact.get('dest')
                         extract = artifact.get('extract', True)
 
                     fetch = {
-                        'artifact': '{prefix}/{path}'.format(prefix=prefix, path=path),
+                        'artifact': '{prefix}/{path}'.format(prefix=prefix, path=path)
+                                    if not path.startswith('/') else path[1:],
                         'task': '<{dep}>'.format(dep=kind),
                         'extract': extract,
                     }
                     if dest is not None:
                         fetch['dest'] = dest
                     job_fetches.append(fetch)
 
         env = worker.setdefault('env', {})