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(version-tools): Fix scheme detection and add more test cases #21710

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

tylerbutler
Copy link
Member

@tylerbutler tylerbutler commented Jun 28, 2024

In #21641 I tried to fix version comparisons between semver and RC prereleasse builds. Unfortunately, the fix was flawed because the scheme detection was not run on the input version, but rather the "internal version" in the case of internal/RC builds. This caused patch releases to get identified as major releases in the RC pipelines, which in turn causes GH releases to be created incorrectly.

I corrected the code by running schema detection earlier in the function, and I added several test cases around RC versions to ensure the bug was addressed.

@github-actions github-actions bot added area: build Build related issues base: main PRs targeted against main branch labels Jun 28, 2024
@tylerbutler tylerbutler marked this pull request as ready for review July 2, 2024 17:01
@tylerbutler tylerbutler requested a review from a team July 2, 2024 17:02
@tylerbutler tylerbutler merged commit 6bc082b into microsoft:main Jul 2, 2024
29 checks passed
@tylerbutler tylerbutler deleted the bt-fix-version-compare branch July 2, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build related issues base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants