-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add easier configuration cache test support in build logic tests #88047
Add easier configuration cache test support in build logic tests #88047
Conversation
Pinging @elastic/es-delivery (Team:Delivery) |
def setup() { | ||
projectDir = testProjectDir.root | ||
settingsFile = testProjectDir.newFile('settings.gradle') | ||
settingsFile << "rootProject.name = 'hello-world'\n" | ||
buildFile = testProjectDir.newFile('build.gradle') | ||
propertiesFile = testProjectDir.newFile('gradle.properties') | ||
propertiesFile << | ||
"org.gradle.java.installations.fromEnv=JAVA_HOME,RUNTIME_JAVA_HOME,JAVA15_HOME,JAVA14_HOME,JAVA13_HOME,JAVA12_HOME,JAVA11_HOME,JAVA8_HOME" | ||
"org.gradle.java.installations.fromEnv=JAVA_HOME,RUNTIME_JAVA_HOME,JAVA15_HOME,JAVA14_HOME,JAVA13_HOME,JAVA12_HOME,JAVA11_HOME,JAVA8_HOME" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some indents in this file seem have to have gone from 4 to 8.
...va/org/elasticsearch/gradle/internal/test/ConfigurationCacheCompatibleAwareGradleRunner.java
Outdated
Show resolved
Hide resolved
...va/org/elasticsearch/gradle/internal/test/ConfigurationCacheCompatibleAwareGradleRunner.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments but LGTM.
dataStreamAliasDiff != null | ||
? dataStreamAliasDiff.apply(((DataStreamMetadata) part).dataStreamAliases) | ||
: ImmutableOpenMap.of() | ||
dataStreamDiff.apply(((DataStreamMetadata) part).dataStreams), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks unrelated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cleaned that up
This is intended to help us getting closer to elastic#57918 by implicitly testing our build logic configuration-cache support. Plugin and Task tests can be marked as configuration cache compatible now and we will always run then with configuration cache enabled. By default, gradle will fail the build if configuration cache problems have been detected during build execution. That should be in general better then adding explicit tests for testing configuration cache compatibility per Test class
…ernal/test/ConfigurationCacheCompatibleAwareGradleRunner.java +1 Co-authored-by: Rory Hunter <[email protected]>
…ernal/test/ConfigurationCacheCompatibleAwareGradleRunner.java Co-authored-by: Rory Hunter <[email protected]>
e71407c
to
fa105ef
Compare
…stic#88047) This is intended to help us getting closer to elastic#57918 by implicitly testing our build logic configuration-cache support. Plugin and Task tests can be marked as configuration cache compatible now and we will always run then with configuration cache enabled. By default, gradle will fail the build if configuration cache problems have been detected during build execution. That should be in general better then adding explicit tests for testing configuration cache compatibility per Test class # Conflicts: # build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleInternalPluginFuncTest.groovy # build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/LicenseHeadersPrecommitPluginFuncTest.groovy # build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/TestingConventionsPrecommitPluginFuncTest.groovy
) (#88569) This is intended to help us getting closer to #57918 by implicitly testing our build logic configuration-cache support. Plugin and Task tests can be marked as configuration cache compatible now and we will always run then with configuration cache enabled. By default, gradle will fail the build if configuration cache problems have been detected during build execution. That should be in general better then adding explicit tests for testing configuration cache compatibility per Test class
This is intended to help us getting closer to #57918 by implicitly testing our build logic
configuration-cache support. Plugin and Task tests can be marked as configuration cache compatible
now and we will always run then with configuration cache enabled.
By default, gradle will fail the build if configuration cache problems have been detected during
build execution. That should be in general better then adding explicit tests for testing configuration
cache compatibility per Test class