Skip to content

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Aug 20, 2025

This commit backports several chagnes to the new transport version system

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

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.
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.
The task class validates resources, but the task name still had the old
"definitions" suffix.
elastic#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.
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.
@rjernst rjernst requested a review from a team as a code owner August 20, 2025 22:42
@rjernst rjernst added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Aug 20, 2025
@elasticsearchmachine elasticsearchmachine merged commit eff746b into elastic:9.1 Aug 20, 2025
35 checks passed
@rjernst rjernst deleted the transport/cleanup_backports_9.1 branch August 20, 2025 23:49
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 v9.1.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants