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

Cache cleanup should not run for cancelled or failed jobs #71

Open
bigdaz opened this issue Mar 14, 2024 · 1 comment
Open

Cache cleanup should not run for cancelled or failed jobs #71

bigdaz opened this issue Mar 14, 2024 · 1 comment
Labels
bug Something isn't working in:cache-cleanup

Comments

@bigdaz
Copy link
Member

bigdaz commented Mar 14, 2024

If the Job execution is failed or cancelled, then it is quite possible that some required downloads and assets in the Gradle User Home will be incorrectly flagged as "unused" and removed during cache cleanup.

We should only run cache cleanup in the case where the build successfully runs to completion.

@bigdaz bigdaz added the bug Something isn't working label Mar 14, 2024
@bigdaz
Copy link
Member Author

bigdaz commented Mar 14, 2024

I suspect that cleanup of one or more transformed jars is one factor resulting #47, although it should not produce the Immutable workspace contents have been modified error, so I think there's likely a bug in Gradle 8.6 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in:cache-cleanup
Projects
None yet
Development

No branches or pull requests

1 participant