-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add separate validation for unreferenced transport version definitions #133189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add separate validation for unreferenced transport version definitions #133189
Conversation
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.
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
| "[myserver/src/main/resources/transport/definitions/unreferenced/existing_92.csv]") | ||
| } | ||
|
|
||
| def "unreferenced definitions can have primary ids that are patches"() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, why? These are created when a new branch is cut, which will result in a "base id" without a patch section, right? Is there another scenario where a patch is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We bump the transport version on every release. So when we release 9.2.0 and bump the version to 9.2.1, we also bump the transport version, which in that case would be a patch version. This is to ensure that every stack version has a unique transport version.
💔 Backport failed
You can use sqren/backport to manually backport by running |
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.
This commit backports several changes to the new transport version system relates elastic#133034 relates elastic#133185 relates elastic#133186 relates elastic#133189
This commit backports several changes to the new transport version system relates elastic#133034 relates elastic#133185 relates elastic#133186 relates elastic#133189
This commit backports several changes to the new transport version system relates elastic#133034 relates elastic#133185 relates elastic#133186 relates elastic#133189
* 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.
* 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]>
* 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]>
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]>
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.