Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Today we use the ID from Version#CURRENT in this test, which only
works if its ID is no less than that of TranportVersion#current().
This commit fixes the test to ensure it always picks a transport version
ID that is not from the past.

…lity`

Today we use the ID from `Version#CURRENT` in this test, which only
works if its ID is no less than that of `TranportVersion#current()`.
This commit fixes the test to ensure it always picks a transport version
ID that is not from the past.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label v9.1.0 labels Feb 6, 2025
@DaveCTurner DaveCTurner requested a review from ldematte February 6, 2025 08:43
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Feb 6, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@DaveCTurner
Copy link
Contributor Author

Discovered in a backport to 9.0 which adds extra validation to these versions: #121801. I already added this change to the backport to get the tests to pass, this is just adding it to main too.

@DaveCTurner DaveCTurner added auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 labels Feb 6, 2025
@DaveCTurner
Copy link
Contributor Author

Actually, I'm going to backport this one first rather than manually applying it to all the other backports.

@DaveCTurner DaveCTurner requested a review from thecoop February 6, 2025 12:03
Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner merged commit 8a15609 into elastic:main Feb 6, 2025
17 checks passed
@DaveCTurner DaveCTurner deleted the 2025/02/06/testHandshakeRequestFutureVersionsCompatibility-version-confusion branch February 6, 2025 14:23
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts

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

DaveCTurner added a commit that referenced this pull request Feb 6, 2025
…lity` (#121883)

Today we use the ID from `Version#CURRENT` in this test, which only
works if its ID is no less than that of `TranportVersion#current()`.
This commit fixes the test to ensure it always picks a transport version
ID that is not from the past.
DaveCTurner added a commit that referenced this pull request Feb 6, 2025
…lity` (#121883)

Today we use the ID from `Version#CURRENT` in this test, which only
works if its ID is no less than that of `TranportVersion#current()`.
This commit fixes the test to ensure it always picks a transport version
ID that is not from the past.
DaveCTurner added a commit that referenced this pull request Feb 6, 2025
…lity` (#121883)

Today we use the ID from `Version#CURRENT` in this test, which only
works if its ID is no less than that of `TranportVersion#current()`.
This commit fixes the test to ensure it always picks a transport version
ID that is not from the past.
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 v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants