Add fleet sdk artifact generation script#9873
Conversation
️✔️Azure CLI Extensions Breaking Change Test
|
|
Hi @frantran, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a utility script to regenerate the Fleet extension’s vendored Python SDK from azure-rest-api-specs, and bumps the extension metadata version to reflect the new release.
Changes:
- Added
generate_sdk.shto run autorest against a spec branch/tag and rewritevendored_sdksto the generated API version. - Script also rewrites
vendored_sdks/__init__.pyto aliasmodels/operationsto the generated version folder. - Bumped extension metadata
versionto1.10.0.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
src/fleet/scripts/generate_sdk.sh |
New bash script to generate and replace the vendored Fleet SDK and update the vendored package init. |
src/fleet/azext_fleet/azext_metadata.json |
Updates extension version to 1.10.0. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
[Release] Update index.json for extension [ fleet-1.10.1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=164276221&view=results |
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
adding tooling support for easier artifact generation for future APIs.
also bumping metadata version to the current version 1.10
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.