Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

[Dependency Cache] Remove Restore Cache CI Hook #3125

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Jan 10, 2025

Project Thread: paaHJt-7CE-p2
(Softly) Required By: a8c-ci-toolkit#135

Description

This PR removes the CI pre-command hook that was responsible to trigger restore_gradle_dependency_cache.

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).


Testing information

Just verify that all the CI checks are successful.

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).
@ParaskP7 ParaskP7 merged commit f11ad0f into trunk Jan 13, 2025
14 checks passed
@ParaskP7 ParaskP7 deleted the ci/remove-restore-cache-hook branch January 13, 2025 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants