Skip to content

{CI} Add artifact publishing for built wheels in CI pipeline#9067

Merged
wangzelin007 merged 1 commit intoAzure:mainfrom
wangzelin007:wzl/add-private-package
Aug 25, 2025
Merged

{CI} Add artifact publishing for built wheels in CI pipeline#9067
wangzelin007 merged 1 commit intoAzure:mainfrom
wangzelin007:wzl/add-private-package

Conversation

@wangzelin007
Copy link
Copy Markdown
Member

@wangzelin007 wangzelin007 commented Aug 19, 2025


This PR uploads all candidate wheels to Azure DevOps pipeline artifacts for testing.
image

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

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 August 19, 2025 09:02
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 19, 2025

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

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

Hi @wangzelin007,
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 Aug 19, 2025

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

@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>

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

This PR enhances the CI pipeline to publish built extension wheels as artifacts. The changes enable automatic collection and publishing of wheel files generated during testing, making them available for download or further processing in the CI/CD pipeline.

  • Adds environment variable support to export built wheels to a designated output directory
  • Implements artifact publishing task in Azure DevOps pipeline for wheel files
  • Includes error handling and logging for the wheel export process

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/ci/test_source.py Adds logic to copy built wheels to an output directory when WHEELS_OUTPUT_DIR environment variable is set
azure-pipelines.yml Configures the pipeline to set WHEELS_OUTPUT_DIR and publish wheels as pipeline artifacts

Comment thread azure-pipelines.yml
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/wheels-$(python.version)'
artifact: 'wheels-$(python.version)'
publishLocation: 'pipeline'
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding a condition to only publish artifacts when the wheels directory exists and contains files. This would prevent publishing empty artifacts when no wheels are built or when WHEELS_OUTPUT_DIR is not set.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

@wangzelin007 wangzelin007 merged commit f8edddf into Azure:main Aug 25, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants