Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependency Cache] Remove Restore Cache CI Hook #13288

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.


  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: N/A

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 added category: tooling Anything that involves building & maintaining the project, including scripts, `Fastfile`, etc. Core labels Jan 10, 2025
@ParaskP7 ParaskP7 added this to the 21.5 milestone Jan 10, 2025
@ParaskP7 ParaskP7 requested a review from wzieba January 10, 2025 15:41
@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit3427b8b
Direct Downloadwoocommerce-wear-prototype-build-pr13288-3427b8b.apk

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit3427b8b
Direct Downloadwoocommerce-prototype-build-pr13288-3427b8b.apk

@ParaskP7 ParaskP7 merged commit 3a1eec1 into trunk Jan 13, 2025
18 of 21 checks passed
@ParaskP7 ParaskP7 deleted the ci/remove-restore-cache-hook branch January 13, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: tooling Anything that involves building & maintaining the project, including scripts, `Fastfile`, etc. Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants