Skip to content

Commit 28f884d

Browse files
committed
Add initial bcUpgradeTask (#128588)
1 parent 80ca891 commit 28f884d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

qa/rolling-upgrade/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
99

10+
import org.elasticsearch.gradle.Version
1011
import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask
1112

1213
apply plugin: 'elasticsearch.internal-java-rest-test'
@@ -25,6 +26,18 @@ buildParams.bwcVersions.withWireCompatible { bwcVersion, baseName ->
2526
}
2627
}
2728

29+
tasks.register("bcUpgradeTest", StandaloneRestIntegTestTask) {
30+
// We use a phony version here as the real version is provided via `tests.bwc.main.version` system property
31+
usesBwcDistribution(Version.fromString("0.0.0"))
32+
systemProperty("tests.old_cluster_version", "0.0.0")
33+
onlyIf("tests.bwc.main.version system property exists") { System.getProperty("tests.bwc.main.version") != null }
34+
filter {
35+
// filter tests initially for quicker iterations
36+
// TODO remove once expanding the test set to other modules
37+
includeTestsMatching("org.elasticsearch.upgrades.IndexingIT")
38+
}
39+
}
40+
2841
tasks.withType(Test).configureEach {
2942
// CI doesn't like it when there's multiple clusters running at once
3043
maxParallelForks = 1

0 commit comments

Comments
 (0)