Skip to content

Add fleet sdk artifact generation script#9873

Merged
necusjz merged 3 commits into
Azure:mainfrom
frantran:ftran/artifact-gen
May 15, 2026
Merged

Add fleet sdk artifact generation script#9873
necusjz merged 3 commits into
Azure:mainfrom
frantran:ftran/artifact-gen

Conversation

@frantran
Copy link
Copy Markdown
Member

@frantran frantran commented May 14, 2026


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

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.json automatically.
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.

Copilot AI review requested due to automatic review settings May 14, 2026 19:51
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 14, 2026

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @frantran,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 14, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sh to run autorest against a spec branch/tag and rewrite vendored_sdks to the generated API version.
  • Script also rewrites vendored_sdks/__init__.py to alias models/operations to the generated version folder.
  • Bumped extension metadata version to 1.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.

Comment thread src/fleet/scripts/generate_sdk.sh
Comment thread src/fleet/scripts/generate_sdk.sh
Comment thread src/fleet/scripts/generate_sdk.sh
Comment thread src/fleet/scripts/generate_sdk.sh Outdated
Comment thread src/fleet/scripts/generate_sdk.sh Outdated
Comment thread src/fleet/scripts/generate_sdk.sh
@github-actions
Copy link
Copy Markdown
Contributor

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).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

@yonzhan yonzhan requested a review from necusjz May 14, 2026 23:24
@necusjz
Copy link
Copy Markdown
Member

necusjz commented May 15, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@necusjz necusjz merged commit 4ae82dc into Azure:main May 15, 2026
23 checks passed
@azclibot
Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ fleet-1.10.1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=164276221&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants