Sync eng/common directory with azure-sdk-tools for PR 14495#46832
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR syncs eng/common PowerShell scripts with the corresponding updates from azure-sdk-tools (PR 14495), primarily enhancing semantic version handling to better support Python (PEP 440) post-release versions and centralizing prerelease/version sorting logic in AzureEngSemanticVersion.
Changes:
- Extend
AzureEngSemanticVersionto parse/sort Python PEP 440 post-release versions (e.g.,.postN) and add helper methods likeSetPrerelease. - Refactor versioning scripts to rely on
AzureEngSemanticVersion(instead of bespoke parsing/sorting logic). - Update changelog/artifact regex parsing to recognize Python PEP 440 post-release formats.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| eng/common/scripts/SetTestPipelineVersion.ps1 | Uses the new SetPrerelease(...) helper to set prerelease versions consistently. |
| eng/common/scripts/SemVer.ps1 | Adds PEP 440 post-release support, new helper methods, and updated comparison/sorting behavior. |
| eng/common/scripts/copy-docs-to-blobstorage.ps1 | Replaces custom SemVer parsing/sorting with AzureEngSemanticVersion. |
| eng/common/scripts/ChangeLog-Operations.ps1 | Switches changelog header parsing regex based on language to allow Python post-release versions. |
| eng/common/scripts/artifact-metadata-parsing.ps1 | Updates sdist filename regex to accept Python post-release versions. |
JennyPng
approved these changes
May 11, 2026
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.
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#14495 See eng/common workflow