Skip to content

Commit

Permalink
Bug 1788606 - Decision task: let docker-worker cache the gradle cache
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo authored and mergify[bot] committed Nov 24, 2022
1 parent a2dfa59 commit de10e3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .taskcluster.yml
Expand Up @@ -234,6 +234,8 @@ tasks:
retries: 5

payload:
cache:
"${trustDomain}-level-${level}-gradle-decision-cache": /builds/worker/.gradle
env:
# run-task uses these to check out the source; the inputs
# to `mach taskgraph decision` are all on the command line.
Expand All @@ -248,6 +250,7 @@ tasks:
MOBILE_REPOSITORY_TYPE: git
MOZ_AUTOMATION: "1"
REPOSITORIES: {$json: {mobile: "firefox-android"}}
TASKCLUSTER_CACHES: /builds/worker/.gradle
- $if: 'isPullRequest'
then:
MOBILE_PULL_REQUEST_NUMBER: '${event.pull_request.number}'
Expand All @@ -263,7 +266,7 @@ tasks:
# Note: This task is built server side without the context or tooling that
# exist in tree so we must hard code the hash
image:
mozillareleases/taskgraph:decision-mobile-0f66ff9a7aef437051e84d1202c1ac341b23a5cdd797a0989ccd4ea3fd93c1d5@sha256:71a50e8c6de8ac394093cda3815ea2d19c0e67b025053b5c47c2364bd895903f
mozillareleases/taskgraph:decision-mobile-c0fca789e58f5458999ac9780a45897340f96f2a273c3c5ea1d2be438ab5223b@sha256:e9f387c9049db80281eaed73c7173b653be195423cdd58300f71d9796d8f1ac7

maxRunTime: 1800

Expand Down
2 changes: 1 addition & 1 deletion taskcluster/ac_taskgraph/loader/build_config.py
Expand Up @@ -49,7 +49,7 @@ def get_upstream_deps_for_components(components):
for configuration in CONFIGURATIONS_WITH_DEPENDENCIES:
logger.info("Looking for dependencies in '%s' configuration" % configuration)

cmd = ["./gradlew"]
cmd = ["./gradlew", "--console=plain", "--parallel"]
# This is eventually going to fail if there's ever enough components to make the command line
# too long. If that happens, we'll need to split this list up and run gradle more than once.
for c in sorted(components):
Expand Down

0 comments on commit de10e3f

Please sign in to comment.