-
Notifications
You must be signed in to change notification settings - Fork 174
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
Cannot benefit from Gradle configuration cache due to cache problems #18612
Comments
Gradle's configuration cache seems to be a new feature in latest versions and, thus, I'd consider this as an enhancement in Vaadin, despite current Gradle plugin fails with it. |
@mshabarov Any updates on this? |
@steve-todorov no updates unfortunately, this isn't a priority for Vaadin Flow team at the moment. But seems this ticket gets more votes, thus I'm not loosing a hope that we'd start doing it at some point, though cannot give any promise. |
Thanks for the update @mshabarov. This is very unfortunate considering the latest Gradle 8.10 has additional configuration cache improvements (>=30%) |
Gradle 8.11 came out today with further improvements to configuration cache performance. Sadly we cannot take advantage of it due to this bug. https://docs.gradle.org/8.11/release-notes.html |
@steve-todorov thanks for your comment. |
Tested on the Spring gradle starter: configuration cache is written, but now on the second run (and all other runs) it says
Locally it seems to work fine; I always see After a couple of attempts, it now seems to work. If I get correctly, the missing part was to prevent the GH action to write the cache for the PR, but only write it on the target branch
|
* feat: add support for Gradle configuration cache Part of vaadin/flow#18612 Co-authored-by: Vaadin Bot <[email protected]> Co-authored-by: Zhe Sun <[email protected]>
* chore: bump versions to 24.8 * feat: add support for Gradle configuration cache (#3288) * feat: add support for Gradle configuration cache Part of vaadin/flow#18612 Co-authored-by: Vaadin Bot <[email protected]> Co-authored-by: Zhe Sun <[email protected]> * chore: update package.json with 24.8.0-alpha0 * fix vaadin versions --------- Co-authored-by: Marco Collovati <[email protected]> Co-authored-by: Vaadin Bot <[email protected]> Co-authored-by: Zhe Sun <[email protected]> Co-authored-by: Zhe Sun <[email protected]> Co-authored-by: Marco Collovati <[email protected]>
Support for Gradle cache has been merged also in Hilla and Platform |
* chore: bump vaadin 24.8-SNAPSHOT * feat: add support for Gradle configuration cache (#7376) Part of vaadin/flow#18612 * use hilla 24.8-SNAPSHOT * Update flow to 24.8.0.alpha1 (#7379) Co-authored-by: Zhe Sun <[email protected]> * update hilla to 24.8.0.alpha1 (#7380) Co-authored-by: Zhe Sun <[email protected]> * use hia --------- Co-authored-by: Marco Collovati <[email protected]> Co-authored-by: Vaadin Bot <[email protected]>
This ticket/PR has been released with Vaadin 24.8.0.alpha1 and is also targeting the upcoming stable 24.8.0 version. |
@steve-todorov and all who interested in Gradle configuration cache support, could you please guys try using Vaadin 24.8.0.alpha1 pre-release that has this support and let us know about the result? |
After one week of use, seems to be working. |
Description of the bug
With new Gradle 8.6 and the latest setup-gradle@v3 it is now possible to safely and securely store Gradle configuration cache which should improve the Gradle daemon startup and build times.
Unfortunately when using the Vaadin Gradle Plugin the configuration cache fails with the following error:
The full error log with stacktrace can be found in the attached file:
error.log
Expected behavior
Gradle build should pass successfully with configuration cache enabled.
Minimal reproducible example
projectRoot/gradle.properties
:openssl rand -base64 16
and store it as a secretGRADLE_ENCRYPTION_KEY
Versions
The text was updated successfully, but these errors were encountered: