Skip to content
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

fix(test-version-utils): Fix version calculation to account for legacy breaking minor releases #23603

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

scottn12
Copy link
Contributor

@scottn12 scottn12 commented Jan 17, 2025

This PR fixes N-X version calculation to take into account the new legacy breaking minor releases. For example,

  • For 2.0.0 <= N < 2.10.0, N-1 is 2.0.0-rc.5.0.x.
  • For 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)
  • For 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

@github-actions github-actions bot added area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch labels Jan 17, 2025
@scottn12 scottn12 marked this pull request as ready for review January 17, 2025 21:11
@Copilot Copilot bot review requested due to automatic review settings January 17, 2025 21:11

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant