Bug 1573435 - Followup not to drop sccache usage from the switch to fetches. r=me
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 15 Aug 2019 15:07:57 +0900
changeset 488152 c7e3536e6002bad931fda47d22a95571e51eac43
parent 488151 bbef4cd14f581113d70904a6d25321bbaf155ce9
child 488153 0db07ff50ab5c9b655ba7e23788f68a2b9d66e71
push id36435
push usercbrindusan@mozilla.com
push dateThu, 15 Aug 2019 09:46:49 +0000
treeherdermozilla-central@0db07ff50ab5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1573435
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 1573435 - Followup not to drop sccache usage from the switch to fetches. r=me This is a straightforward translation of the code formerly in use_toolchains.py. MANUAL PUSH: Followup a landing on inbound.
taskcluster/taskgraph/transforms/job/__init__.py
--- a/taskcluster/taskgraph/transforms/job/__init__.py
+++ b/taskcluster/taskgraph/transforms/job/__init__.py
@@ -213,16 +213,19 @@ def use_fetches(config, jobs):
                             job['scopes'].append(scope)
 
                     dependencies[label] = label
                     job_fetches.append({
                         'artifact': path,
                         'task': '<{label}>'.format(label=label),
                         'extract': True,
                     })
+
+                    if kind == 'toolchain' and fetch_name.endswith('-sccache'):
+                        job['needs-sccache'] = True
             else:
                 if kind not in dependencies:
                     raise Exception("{name} can't fetch {kind} artifacts because "
                                     "it has no {kind} dependencies!".format(name=name, kind=kind))
 
                 for artifact in artifacts:
                     if isinstance(artifact, basestring):
                         path = artifact