Fix ValidatePackageList test regex to handle servicing pre-release branding#5326
Merged
akoeplinger merged 2 commits intomainfrom Mar 9, 2026
Merged
Fix ValidatePackageList test regex to handle servicing pre-release branding#5326akoeplinger merged 2 commits intomainfrom
servicing pre-release branding#5326akoeplinger merged 2 commits intomainfrom
Conversation
Co-authored-by: akoeplinger <1376924+akoeplinger@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing LinuxInstallerTests.ValidatePackageList for servicing branding
Fix ValidatePackageList test regex to handle Mar 9, 2026
servicing pre-release branding
akoeplinger
approved these changes
Mar 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Linux installer package list test normalization to recognize servicing as a pre-release label, preventing mismatches on SDK band build branches where package filenames include -servicing.*.
Changes:
- Extend
RemoveVersionFromPackageNameRegexto includeservicingin the pre-release alternation group. - Ensure package filenames like
dotnet-sdk-10.0.0-servicing.26159.104-x64.rpmnormalize correctly to the expected wildcard pattern.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
NikolaMilosavljevic
approved these changes
Mar 9, 2026
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
LinuxInstallerTests.ValidatePackageListfails on SDK band build branches because package filenames include aservicingpre-release label (e.g.dotnet-sdk-10.0.0-servicing.26159.104-x64.rpm) that the normalization regex didn't recognize, leaving the label in the normalized name and causing a mismatch against expected patterns.Change
servicingto the alternation group inRemoveVersionFromPackageNameRegexso the full version token — including theservicing.*suffix — is stripped when normalizing package filenames for comparison:dotnet-sdk-10.0.0-servicing.26159.104-x64.rpmnow normalizes todotnet-sdk-*-x64.rpm, matching the expected pattern.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.