Skip to content

[9.0] Fix tests in SetSingleNodeAllocateStepTests (#135724)#136159

Merged
elasticsearchmachine merged 1 commit intoelastic:9.0from
nielsbauman:backport/9.0/pr-135724
Oct 8, 2025
Merged

[9.0] Fix tests in SetSingleNodeAllocateStepTests (#135724)#136159
elasticsearchmachine merged 1 commit intoelastic:9.0from
nielsbauman:backport/9.0/pr-135724

Conversation

@nielsbauman
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

By doing
`VersionUtils.randomCompatibleVersion(random(), VersionUtils.getPreviousVersion())`,
we could also get `Version.CURRENT`, as that version is also compatible
with the previous version (unless we're running right after a major
version was released). If the `oldVersion` variable in these tests is
equal to the current version, the tests will fail as their whole goal is
to verify behavior with different node versions. Instead, we should get a
random version that is at most the previous version, to guarantee that
`oldVersion` always precedes the current version.

Fixes elastic#135590

(cherry picked from commit 712cf9f)
@nielsbauman nielsbauman added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. >test Issues or PRs that are addressing/adding tests Team:Data Management (obsolete) DO NOT USE. This team no longer exists. labels Oct 8, 2025
@elasticsearchmachine elasticsearchmachine merged commit afd9bb9 into elastic:9.0 Oct 8, 2025
20 checks passed
@nielsbauman nielsbauman deleted the backport/9.0/pr-135724 branch October 8, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. >test Issues or PRs that are addressing/adding tests v9.0.9

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants