-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Do not create unused testCluster #77581
Do not create unused testCluster #77581
Conversation
e6120e2
to
11b90e2
Compare
Pinging @elastic/es-delivery (Team:Delivery) |
8e127c4
to
eca88f7
Compare
8bf6eaf
to
354687b
Compare
@@ -20,8 +20,8 @@ dependencies { | |||
} | |||
|
|||
for (Version bwcVersion : BuildParams.bwcVersions.wireCompatible) { | |||
String baseName = "v${bwcVersion}" |
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 solves a problem with for loops and lazy evaluated strings that causes late resolved GStrings to only contain the last bwcVersion of the for loop
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.
Ug, I've been bitten by that so many times.
@elasticmachine run elasticsearch-ci/part-2 |
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.
LGTM, although I wish using lazy configured domain objects didn't introduce so much awkwardness in our build scripts.
This avoids creating test clusters that are not required during the build. We use lazy configuration here on testClusters and only instantiate them as theyre
provide useCluster(Provider) method to TestClusterAware Ideally we take this a step further and realize those test clusters only on use. But out of scope of this PR.
65d79aa
to
f7dab15
Compare
* Do not create unused testCluster This avoids creating test clusters that are not required during the build. We use lazy configuration here on testClusters and only instantiate them as theyre * Do not fail on run task (debug) * Create more test cluster lazy * Make more test cluster lazy * Avoid creating unused testcluster * Fix PluginBuildPlugin * Fix disabling geo db download * Fix cluster setup in repository-multi-version * Polishing * Fix issue with irretic groovy ogic * Fix bwc tests * Fix more bwcTests * Fix more bwc tests * Fix more bwc tests * Fix more bwc tests * Fix typo * Minor polishing * Fix rolling upgrade tests * Fix cluster config in sql qa mixedcluster project * Fix more bwc tests * Clean up before review * Document test cluster usage * Api polising after Review provide useCluster(Provider) method to TestClusterAware Ideally we take this a step further and realize those test clusters only on use. But out of scope of this PR. * Allow gradle provider as value for nonSystemProperties * Some simplification on test configuration * Fix typo in rest test config * Fix more typos * Fix another typo * Fix more typos
* Do not create unused testCluster (#77581) * Do not create unused testCluster This avoids creating test clusters that are not required during the build. We use lazy configuration here on testClusters and only instantiate them as theyre * Do not fail on run task (debug) * Create more test cluster lazy * Make more test cluster lazy * Avoid creating unused testcluster * Fix PluginBuildPlugin * Fix disabling geo db download * Fix cluster setup in repository-multi-version * Polishing * Fix issue with irretic groovy ogic * Fix bwc tests * Fix more bwcTests * Fix more bwc tests * Fix more bwc tests * Fix more bwc tests * Fix typo * Minor polishing * Fix rolling upgrade tests * Fix cluster config in sql qa mixedcluster project * Fix more bwc tests * Clean up before review * Document test cluster usage * Api polising after Review provide useCluster(Provider) method to TestClusterAware Ideally we take this a step further and realize those test clusters only on use. But out of scope of this PR. * Allow gradle provider as value for nonSystemProperties * Some simplification on test configuration * Fix typo in rest test config * Fix more typos * Fix another typo * Fix more typos * Fix runEqlCorrectnessNode run task and cluster configuration (#78249) * Fix merge issue * Fix bwc tests after backporting
This avoids creating test clusters that are not required during the build.
We use lazy configuration here on testClusters and only instantiate them as required.
Also updated BUILDING.MD giving hints on using test cluster plugin properly