Skip to content

Conversation

adammurdoch
Copy link
Contributor

Fixes #?

Context

Add an internal flag that causes Gradle to attempt to load and run the work graph from cache in the same Gradle invocation that it is stored in. This behaviour is currently behind a flag because there are several things broken when enabled, which will be fixed over several PRs. The basic behaviour seems to work, however.

Contributor Checklist

  • Review Contribution Guidelines
  • Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
  • Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
  • Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
  • Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
  • Provide unit tests (under <subproject>/src/test) to verify logic
  • Update User Guide, DSL Reference, and Javadoc for public-facing changes
  • Ensure that tests pass sanity check: ./gradlew sanityCheck
  • Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest

Gradle Core Team Checklist

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation
  • Recognize contributor in release notes

…n the same build where it is stored.

Enabling the flag currently causes the build to fail. Later commits will make this work.
This allows the projects and tasks to be recreated when loading from the cache and allows configuration time state to be garbage collected.
@bot-gradle bot-gradle added this to the 8.0 RC1 milestone Sep 27, 2022
@adammurdoch adammurdoch self-assigned this Sep 27, 2022
@adammurdoch
Copy link
Contributor Author

@bot-gradle test and merge

@bot-gradle
Copy link
Collaborator

OK, I've already triggered a build for you.

@bot-gradle bot-gradle merged commit 19fae79 into master Sep 27, 2022
@blindpirate blindpirate deleted the am/cc/load-after-store branch September 27, 2022 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants