Rename integTest to bwcTestSample for bwc test projects (#38433)
* Rename integTest to bwcTestSample for bwc test projects This change renames the `integTest` task to `bwcTestSample` for projects testing bwc to make it possible to run all the bwc tests that check would run without running on bwc tests. This change makes it possible to add a new PR check on backports to make sure these don't break BWC tests in master. * Rename task as per PR
This commit is contained in:
parent
fe8bd757b2
commit
bd4ca4c702
|
@ -95,7 +95,7 @@ for (Version version : bwcVersions.indexCompatible) {
|
||||||
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
||||||
|
|
||||||
// basic integ tests includes testing bwc against the most recent version
|
// basic integ tests includes testing bwc against the most recent version
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
for (final def version : bwcVersions.unreleasedIndexCompatible) {
|
for (final def version : bwcVersions.unreleasedIndexCompatible) {
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
|
@ -103,5 +103,5 @@ task integTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check.dependsOn(integTest)
|
check.dependsOn(bwcTestSnapshots)
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ for (Version version : bwcVersions.wireCompatible) {
|
||||||
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
||||||
|
|
||||||
// basic integ tests includes testing bwc against the most recent version
|
// basic integ tests includes testing bwc against the most recent version
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
|
@ -71,4 +71,4 @@ task integTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check.dependsOn(integTest)
|
check.dependsOn(bwcTestSnapshots)
|
||||||
|
|
|
@ -142,7 +142,7 @@ for (Version version : bwcVersions.wireCompatible) {
|
||||||
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
||||||
|
|
||||||
// basic integ tests includes testing bwc against the most recent version
|
// basic integ tests includes testing bwc against the most recent version
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
|
@ -150,4 +150,4 @@ task integTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check.dependsOn(integTest)
|
check.dependsOn(bwcTestSnapshots)
|
||||||
|
|
|
@ -54,7 +54,7 @@ for (Version version : bwcVersions.indexCompatible) {
|
||||||
|
|
||||||
unitTest.enabled = false
|
unitTest.enabled = false
|
||||||
|
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
final def version = bwcVersions.unreleasedIndexCompatible.first()
|
final def version = bwcVersions.unreleasedIndexCompatible.first()
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
|
@ -83,4 +83,4 @@ task verifyDocsLuceneVersion {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check.dependsOn integTest, verifyDocsLuceneVersion
|
check.dependsOn bwcTestSnapshots, verifyDocsLuceneVersion
|
||||||
|
|
|
@ -250,7 +250,7 @@ subprojects {
|
||||||
unitTest.enabled = false // no unit tests for full cluster restarts, only the rest integration test
|
unitTest.enabled = false // no unit tests for full cluster restarts, only the rest integration test
|
||||||
|
|
||||||
// basic integ tests includes testing bwc against the most recent version
|
// basic integ tests includes testing bwc against the most recent version
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
for (final def version : bwcVersions.unreleasedIndexCompatible) {
|
for (final def version : bwcVersions.unreleasedIndexCompatible) {
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
|
@ -258,7 +258,7 @@ subprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check.dependsOn(integTest)
|
check.dependsOn(bwcTestSnapshots)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// "org.elasticsearch.plugin:x-pack-core:${version}" doesn't work with idea because the testArtifacts are also here
|
// "org.elasticsearch.plugin:x-pack-core:${version}" doesn't work with idea because the testArtifacts are also here
|
||||||
|
|
|
@ -125,14 +125,14 @@ for (Version version : bwcVersions.wireCompatible) {
|
||||||
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
||||||
|
|
||||||
// basic integ tests includes testing bwc against the most recent version
|
// basic integ tests includes testing bwc against the most recent version
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
check.dependsOn(integTest)
|
check.dependsOn(bwcTestSnapshots)
|
||||||
|
|
||||||
compileTestJava.options.compilerArgs << "-Xlint:-cast,-deprecation,-rawtypes,-try,-unchecked"
|
compileTestJava.options.compilerArgs << "-Xlint:-cast,-deprecation,-rawtypes,-try,-unchecked"
|
||||||
|
|
||||||
|
|
|
@ -331,14 +331,14 @@ subprojects {
|
||||||
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
unitTest.enabled = false // no unit tests for rolling upgrades, only the rest integration test
|
||||||
|
|
||||||
// basic integ tests includes testing bwc against the most recent version
|
// basic integ tests includes testing bwc against the most recent version
|
||||||
task integTest {
|
task bwcTestSnapshots {
|
||||||
if (project.bwc_tests_enabled) {
|
if (project.bwc_tests_enabled) {
|
||||||
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
for (final def version : bwcVersions.unreleasedWireCompatible) {
|
||||||
dependsOn "v${version}#bwcTest"
|
dependsOn "v${version}#bwcTest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
check.dependsOn(integTest)
|
check.dependsOn(bwcTestSnapshots)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// "org.elasticsearch.plugin:x-pack-core:${version}" doesn't work with idea because the testArtifacts are also here
|
// "org.elasticsearch.plugin:x-pack-core:${version}" doesn't work with idea because the testArtifacts are also here
|
||||||
|
|
Loading…
Reference in New Issue