-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cache cleanup does not clean cache entries for versions of gradle >8.9 #417
Comments
Thanks for the report. This is likely an unwanted side-effect of #364, which performs cache-cleanup using the version of Gradle on PATH (at least 8.9) instead of always downloading the latest. This means that cache cleanup won't work for a Gradle version > 8.9 unless that version (or newer) is available on the PATH. Fixing this (without reverting to the old behaviour of always installing the latest Gradle) will involve detecting the newest Gradle version executed for a Job, and ensuring that cleanup is executed with at least that Gradle version. |
The cache-cleanup API has changed, so the init-script that worked with Gradle 8.9 no longer works with 8.11. We now provision and use Gradle 8.11 for cache cleanup. This provides a band-aid fix for #417 but that issue will still impact any build configured to run with Gradle > 8.11
The cache-cleanup API has changed, so the init-script that worked with Gradle 8.9 no longer works with 8.11. We now provision and use Gradle 8.11 for cache cleanup. This provides a band-aid fix for #417 but that issue will still impact any build configured to run with Gradle > 8.11
The cache-cleanup API has changed, so the init-script that worked with Gradle 8.9 no longer works with 8.11. We now provision and use Gradle 8.11 for cache cleanup. This provides a band-aid fix for #417 but that issue will still impact any build configured to run with Gradle > 8.11
Hi @bigdaz
Or just error
worked well on 8.10.2 few days ago (probably before release 8.11) |
Running into the same issue here. I tried manually specifying the used gradle version but it looks like post-cleanup provisions its own gradle instance? Is there an temporary workaround I can use until this is addressed? |
@Su5eD Please, try input |
Changing the flag from |
Thanks for the additional reports. |
The recent release of
There is still an issue with cache-cleanup failing to remove entries written by newer (not-yet-released) versions of Gradle. I've raised #436 for this issue. |
The documentation implies that no further setup is required for the action to cleanup caches after builds.
I was investigating why our CI cache is steadily rising, and the cause seems to be that old transforms are not being cleaned up effectively.
We're building using Gradle 8.10.2 (via the wrapper), but this is the log output from the cache cleanup phase of the action
As the cache cleanup is provisioning Gradle 8.9, it looks like it's not cleaning up any transforms produced by newer versions.
The cache cleanup should either use the wrapper, or provision the latest version of Gradle so that transform caches are cleaned up.
The text was updated successfully, but these errors were encountered: