Bug 1472610 - Disable sccache idle shutdown. r?build
--- a/taskcluster/ci/build/android.yml
+++ b/taskcluster/ci/build/android.yml
@@ -57,21 +57,16 @@ android-x86/opt:
symbol: B
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
GRADLE_USER_HOME: "/builds/worker/workspace/build/src/mobile/android/gradle/dotgradle-offline"
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android-x86/releng.manifest"
- # Increase the timeout because nsContentUtils.o takes a ridiculously
- # long time to compile for x86 when using the current NDKs. This
- # will eventually get fixed, but for now we have to live with this.
- # See https://github.com/android-ndk/ndk/issues/522 for more context.
- SCCACHE_IDLE_TIMEOUT: "1500"
artifacts:
- name: public/android/R
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/app/R
type: directory
- name: public/android/maven
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/maven/
type: directory
- name: public/build/geckoview-androidTest.apk
@@ -116,21 +111,16 @@ android-x86-nightly/opt:
symbol: N
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
GRADLE_USER_HOME: "/builds/worker/workspace/build/src/mobile/android/gradle/dotgradle-offline"
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android-x86/releng.manifest"
- # Increase the timeout because nsContentUtils.o takes a ridiculously
- # long time to compile for x86 when using the current NDKs. This
- # will eventually get fixed, but for now we have to live with this.
- # See https://github.com/android-ndk/ndk/issues/522 for more context.
- SCCACHE_IDLE_TIMEOUT: "1500"
artifacts:
- name: public/android/R
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/app/R
type: directory
- name: public/android/maven
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/maven/
type: directory
- name: public/build/geckoview-androidTest.apk
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -789,16 +789,18 @@ def build_docker_worker_payload(config,
if task.get('needs-sccache'):
features['taskclusterProxy'] = True
task_def['scopes'].append(
'assume:project:taskcluster:{trust_domain}:level-{level}-sccache-buckets'.format(
trust_domain=config.graph_config['trust-domain'],
level=config.params['level'])
)
worker['env']['USE_SCCACHE'] = '1'
+ # Disable sccache idle shutdown.
+ worker['env']['SCCACHE_IDLE_TIMEOUT'] = '0'
else:
worker['env']['SCCACHE_DISABLE'] = '1'
capabilities = {}
for lo in 'audio', 'video':
if worker.get('loopback-' + lo):
capitalized = 'loopback' + lo.capitalize()