Skip to content

Exclude patch versions from TransportVersionUtils#138997

Merged
mark-vieira merged 14 commits intoelastic:mainfrom
mark-vieira:prohibit-patch-versions-in-test-utils
Jan 5, 2026
Merged

Exclude patch versions from TransportVersionUtils#138997
mark-vieira merged 14 commits intoelastic:mainfrom
mark-vieira:prohibit-patch-versions-in-test-utils

Conversation

@mark-vieira
Copy link
Copy Markdown
Contributor

@mark-vieira mark-vieira commented Dec 3, 2025

Patch versions break certain assumptions around temporality when comparing transport versions. For this reason, some tests that rely on methods in TransportVersionUtils may begin to fail in the presence of patch versions. To avoid this, we simply exclude patch version when requesting a random version, as well as prohibit patch versions as bound arguments to these methods.

Closes #139740
Closes #139741

@mark-vieira mark-vieira added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label labels Dec 3, 2025
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.3.0 labels Dec 3, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

mark-vieira and others added 3 commits December 17, 2025 10:18
# Conflicts:
#	server/src/test/java/org/elasticsearch/TransportVersionTests.java
@mark-vieira mark-vieira added auto-backport Automatically create backport pull requests when merged branch:9.3 labels Jan 2, 2026
@mark-vieira mark-vieira merged commit 08d3db4 into elastic:main Jan 5, 2026
35 checks passed
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

Status Branch Result
9.3 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 138997

@mark-vieira
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.3

Questions ?

Please refer to the Backport tool documentation

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 backport pending :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.3.1 v9.4.0

Projects

None yet

4 participants