-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
fix: remaining configuration cache issues #1245
Conversation
b53fedc
to
9b0dcfd
Compare
aafab6a
to
ba18071
Compare
In Gradle 7.6.3, testcases that perform two consecutive Builds using gradle's testkit, somehow fail if both builds are using config-cache. Deactivating the config-cache for one of these consecutive runs, resolves the problem. This issue is not present in the gradle 8.1 and "current" testcases. |
I'm updating the build from gradle 7.6.3 to 7.6.4. Can you recheck that condition after you see master updated here? |
ba18071
to
8090df6
Compare
@hazendaz
|
This means that the configuration cache cannot restore a lambda stored somewhere in the task state. You need to make the lambda (likely this one) serializable. As of 8.0, Gradle does that for you automatically, so you should only see this failure on 7.x. You only see the failure on the second run because this issue only manifests upon loading from the cache. Starting with 8.0 or 8.1 Gradle loads the cached state even on the first run that saved the state, so there is no strict need to run the builds in tests twice. |
@mlopatkin @hazendaz |
🎉 This PR is included in version 6.0.27 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
resolves #1096