examples_automation, adopt change of java release tag#13346
Merged
weidongxu-microsoft merged 2 commits intoAzure:mainfrom Dec 15, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adapts the Java examples automation tooling to support a new release tag format that includes the Maven group ID prefix. The new format uses com.azure.resourcemanager+azure-resourcemanager-storage_1.0.1-beta.1 while maintaining backward compatibility with the older format azure-resourcemanager-storage_1.0.1-beta.1.
Key Changes:
- Added a new
get_package_name()function to strip the group ID prefix from package names - Updated the regex pattern in configuration.json to match both old and new release tag formats
- Added unit tests for the new package name extraction function
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
tools/azure-rest-api-specs-examples-automation/java/main.py |
Added get_package_name() function to strip the "com.azure.resourcemanager+" prefix and integrated it into the main workflow to ensure package names are normalized before use |
tools/azure-rest-api-specs-examples-automation/java/test_main.py |
New test file with unit tests for the get_package_name() function covering basic scenarios with and without the group ID prefix |
tools/azure-rest-api-specs-examples-automation/automation/configuration.json |
Updated the regexMatch pattern to make the "com.azure.resourcemanager+" prefix optional, allowing the pattern to match both new and legacy release tag formats |
XiaofeiCao
approved these changes
Dec 15, 2025
Member
Author
|
I've merged this early, as Java now had new release with new tag format |
JiaqiZhang-Dev
pushed a commit
that referenced
this pull request
Dec 22, 2025
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.
for Azure/azure-sdk-for-java#47512