Skip to content

Mute testSnapshotRestore in bcUpgradeTest #129767

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

Merged

Conversation

ldematte
Copy link
Contributor

No description provided.

@ldematte ldematte requested a review from a team as a code owner June 20, 2025 12:15
@ldematte ldematte added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged v9.1.0 v9.0.4 labels Jun 20, 2025
@ldematte ldematte requested a review from a team June 20, 2025 12:15
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Jun 20, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ldematte. LGTM

@@ -15,4 +15,11 @@ tasks.register("bcUpgradeTest", StandaloneRestIntegTestTask) {
usesBwcDistribution(Version.fromString("0.0.0"))
systemProperty("tests.old_cluster_version", "0.0.0")
onlyIf("tests.bwc.main.version system property exists") { System.getProperty("tests.bwc.main.version") != null }
filter {
// Mute problematic tests
excludeTestsMatching("org.elasticsearch.upgrades.FullClusterRestartIT.testSnapshotRestore")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those class specific filters should be defined on the specific task not within the plugin in general IMO. That makes it easier to detect those filters for other engineers directly in the according build script without the need to dig into the plugin logic.

@@ -15,4 +15,11 @@ tasks.register("bcUpgradeTest", StandaloneRestIntegTestTask) {
usesBwcDistribution(Version.fromString("0.0.0"))
systemProperty("tests.old_cluster_version", "0.0.0")
onlyIf("tests.bwc.main.version system property exists") { System.getProperty("tests.bwc.main.version") != null }
filter {
// Mute problematic tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add two words why those are problematic?

Copy link
Contributor Author

@ldematte ldematte Jun 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests use string compare of version (from the cluster, saved in the snapshot) with tests.bwc.main.version , which is far from ideal.
But I've investigated this a bit more, and I think we can fix this another way. See #129769
(ignore the IndexVersion change, it's there to test the change is working and will be reverted).

Still, in any case, this test assertion is.. not ideal. I'll contact distributed and see if they can do better.
@breskeby wdyt? Better to go with #129769, or mute these tests?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with muting. but as said we should do it in the build script rather than here in the plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move filters to the specific projects; is that what you were thinking? (have I done it right?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes thats what i meant :). Thank you.

@ChrisHegarty ChrisHegarty merged commit 1edf77c into elastic:main Jun 20, 2025
26 of 27 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0

ldematte added a commit to ldematte/elasticsearch that referenced this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v9.0.4 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants