fix(test-version-utils): Fix version calculation to account for legacy breaking minor releases #23603
+41
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes N-X version calculation to take into account the new legacy breaking minor releases. For example,
2.0.0 <= N < 2.10.0
, N-1 is 2.0.0-rc.5.0.x.2.10.0 <= N < 2.20.0
, N-1 is 2.5.x (latest minor between 2.0 and 2.10 is 2.5.x)2.20.0 <= N < 2.30.0
, N-1 is 2.13.x (latest minor between 2.10 and 2.20 is 2.13.x)We should still consider a full rewrite of version calculation, since the code is extremely messy and hard to follow for developers not familiar with it already. However, this change is needed to ensure we continue testing properly in the meantime. See AB#8198 for more details.
AB#28437