Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Aug 19, 2025

Transport version ids must be in descending order in definition files. However, the compareTo for them was ascending and the validation used reverse ordering. This commit fixes the compareTo so it uses desending ordering and the validation uses natural ordering.

Transport version ids must be in descending order in definition files.
However, the compareTo for them was ascending and the validation used
reverse ordering. This commit fixes the compareTo so it uses desending
ordering and the validation uses natural ordering.
@rjernst rjernst requested a review from a team as a code owner August 19, 2025 22:15
@rjernst rjernst added :Core/Infra/Core Core issues without another label >refactoring auto-backport Automatically create backport pull requests when merged v8.18.6 v9.0.6 v9.1.3 v8.19.3 labels Aug 19, 2025
@rjernst rjernst requested a review from JVerwolf August 19, 2025 22:15
@elasticsearchmachine elasticsearchmachine added v9.2.0 Team:Core/Infra Meta label for core/infra team labels Aug 19, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@rjernst rjernst merged commit c591e99 into elastic:main Aug 20, 2025
35 checks passed
@rjernst rjernst deleted the transport/ids_order branch August 20, 2025 18:35
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts
9.1 Commit could not be cherrypicked due to conflicts
8.19 Commit could not be cherrypicked due to conflicts

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

rjernst added a commit to rjernst/elasticsearch that referenced this pull request Aug 20, 2025
Transport version ids must be in descending order in definition files.
However, the compareTo for them was ascending and the validation used
reverse ordering. This commit fixes the compareTo so it uses desending
ordering and the validation uses natural ordering.
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Aug 20, 2025
This commit backports several changes to the new transport version system

relates elastic#133034
relates elastic#133185
relates elastic#133186
relates elastic#133189
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Aug 20, 2025
This commit backports several changes to the new transport version system

relates elastic#133034
relates elastic#133185
relates elastic#133186
relates elastic#133189
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Aug 20, 2025
This commit backports several changes to the new transport version system

relates elastic#133034
relates elastic#133185
relates elastic#133186
relates elastic#133189
elasticsearchmachine pushed a commit that referenced this pull request Aug 20, 2025
* Replace transport version utils with a build service (#133034)

Several transport version build tasks have a need to access the
repository-wide transport version resources. Thus far it has been
done through several utility methods. This commit moves these utility
methods into an encapsulated build service that is shared across the
transport version tasks. The advantage is that no paths are used, the
build service encapsulates access to the resources and understands
internally how to find the correct filesystem path and load it.

* Make transport version ids have descending ordering (#133185)

Transport version ids must be in descending order in definition files.
However, the compareTo for them was ascending and the validation used
reverse ordering. This commit fixes the compareTo so it uses desending
ordering and the validation uses natural ordering.

* Fix transport version validation task name (#133186)

The task class validates resources, but the task name still had the old
"definitions" suffix.

* Add separate validation for unreferenced transport version definitions (#133189)

This commit splits out the validation that is pertinent to unreferenced
definitions. It also adds validation that names of named and
unreferenced definitions cannot collide.

* Use path separator for git path in transport resources (#133228)

When looking up files from main in transport resources, the system
dependent path is used. However, the beginning slash also needs to be
system dependent.
elasticsearchmachine pushed a commit that referenced this pull request Aug 21, 2025
* Backport several transport version fixes

This commit backports several changes to the new transport version system

relates #133034
relates #133185
relates #133186
relates #133189

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Aug 21, 2025
* Backport several transport version fixes

This commit backports several changes to the new transport version system

relates #133034
relates #133185
relates #133186
relates #133189

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Aug 23, 2025
This commit backports several changes to the new transport version system

relates #133034
relates #133185
relates #133186
relates #133189

Co-authored-by: Elastic Machine <[email protected]>
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 >refactoring Team:Core/Infra Meta label for core/infra team v8.18.6 v8.19.3 v9.0.6 v9.1.3 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants