Skip to content

Commit

Permalink
CI: Remove pre command hook to ignore restore gradle dependency cache
Browse files Browse the repository at this point in the history
With this hook present, every build and its within jobs are all
restoring the dependency cache, even when this is not really needed, and
as such, potentially, unnecessarily delaying some jobs, while also
consuming unnecessary resources (downloading from s3, (un)compressing,
etc).

FYI: It is better to use 'restore_gradle_dependency_cache' only on those
jobs that could really benefit from it.

PS: Also, based on the current state of things, with the dependency
cache save/restore mechanism being stale, this
'restore_gradle_dependency_cache' command is not working as expected.
No cache entry is found for 'GRADLE_DEPENDENCY_CACHE' is being output on
every build/job that runs on an 'android' agent, plus an this
'GRADLE_RO_DEP_CACHE: unbound variable' is being output on every
build/job that runs on another agent (like the 'linter' agent).
  • Loading branch information
ParaskP7 committed Jan 10, 2025
1 parent 8555e9e commit a1e184a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .buildkite/hooks/pre-command

This file was deleted.

0 comments on commit a1e184a

Please sign in to comment.