Skip to content

Commit 75726eb

Browse files
ldemattemridula-s109
authored andcommitted
Mute testSnapshotRestore in bcUpgradeTest (elastic#129767)
1 parent 64c7b9b commit 75726eb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

qa/full-cluster-restart/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ tasks.register("luceneBwcTest", StandaloneRestIntegTestTask) {
2929
onlyIf("tests.bwc.main.version system property exists") { System.getProperty("tests.bwc.main.version") != null }
3030
}
3131

32+
tasks.named("bcUpgradeTest").configure {
33+
filter {
34+
// Mute testSnapshotRestore: it uses string compare of Version (from the cluster, saved in the snapshot) with tests.bwc.main.version,
35+
// which does not work for SNAPSHOT builds
36+
excludeTestsMatching("org.elasticsearch.upgrades.FullClusterRestartIT.testSnapshotRestore")
37+
excludeTestsMatching("org.elasticsearch.upgrades.FullClusterRestartIT.testSnapshotRestore *")
38+
}
39+
}
40+
3241
tasks.withType(Test).configureEach {
3342
// CI doesn't like it when there's multiple clusters running at once
3443
maxParallelForks = 1

x-pack/qa/full-cluster-restart/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ buildParams.bwcVersions.withIndexCompatible { bwcVersion, baseName ->
2929
maxParallelForks = 1
3030
}
3131
}
32+
33+
tasks.named("bcUpgradeTest").configure {
34+
filter {
35+
// Mute testSnapshotRestore: it uses string compare of Version (from the cluster, saved in the snapshot) with tests.bwc.main.version,
36+
// which does not work for SNAPSHOT builds
37+
excludeTestsMatching("org.elasticsearch.xpack.restart.CoreFullClusterRestartIT.testSnapshotRestore")
38+
excludeTestsMatching("org.elasticsearch.xpack.restart.CoreFullClusterRestartIT.testSnapshotRestore *")
39+
}
40+
}

0 commit comments

Comments
 (0)