bug 1269355 - Enable sccache for taskcluster linux32/64 builds. r=dustin,gps
MozReview-Commit-ID: LGqpNDb7uHN
This commit is contained in:
@@ -140,6 +140,9 @@ task_description_schema = Schema({
|
||||
# {level} -- the scm level of this push
|
||||
'worker-type': basestring,
|
||||
|
||||
# Whether the job should use sccache compiler caching.
|
||||
Required('needs-sccache', default=False): bool,
|
||||
|
||||
# information specific to the worker implementation that will run this task
|
||||
'worker': Any({
|
||||
Required('implementation'): Any('docker-worker', 'docker-engine'),
|
||||
@@ -370,6 +373,14 @@ def build_docker_worker_payload(config, task, task_def):
|
||||
if worker.get('chain-of-trust'):
|
||||
features['chainOfTrust'] = True
|
||||
|
||||
if task.get('needs-sccache'):
|
||||
features['taskclusterProxy'] = True
|
||||
task_def['scopes'].append(
|
||||
'assume:project:taskcluster:level-{level}-sccache-buckets'.format(
|
||||
level=config.params['level'])
|
||||
)
|
||||
worker['env']['USE_SCCACHE'] = '1'
|
||||
|
||||
capabilities = {}
|
||||
|
||||
for lo in 'audio', 'video':
|
||||
@@ -451,6 +462,8 @@ def build_generic_worker_payload(config, task, task_def):
|
||||
'osGroups': worker.get('os-groups', []),
|
||||
}
|
||||
|
||||
# needs-sccache is handled in mozharness_on_windows
|
||||
|
||||
if 'retry-exit-status' in worker:
|
||||
raise Exception("retry-exit-status not supported in generic-worker")
|
||||
|
||||
@@ -472,6 +485,8 @@ def build_macosx_engine_payload(config, task, task_def):
|
||||
'artifacts': artifacts,
|
||||
}
|
||||
|
||||
if task.get('needs-sccache'):
|
||||
raise Exception('needs-sccache not supported in macosx-engine')
|
||||
|
||||
@payload_builder('buildbot-bridge')
|
||||
def build_buildbot_bridge_payload(config, task, task_def):
|
||||
|
||||
Reference in New Issue
Block a user