Skip to content

{CI} Fix update_index wheel filename + bump pinned azdev to latest#10039

Open
aryasadeghi1 wants to merge 2 commits into
Azure:mainfrom
aryasadeghi1:ci/fix-update-index-wheel-filename
Open

{CI} Fix update_index wheel filename + bump pinned azdev to latest#10039
aryasadeghi1 wants to merge 2 commits into
Azure:mainfrom
aryasadeghi1:ci/fix-update-index-wheel-filename

Conversation

@aryasadeghi1

Copy link
Copy Markdown
Member

Two follow-ups to #9922 so the decoupled (pkginfo) azdev path works end to end:

  • scripts/ci/update_index.py saved the downloaded wheel as just the extension name, but pkginfo.Wheel needs a .whl-named file, so the publish index update failed with "Not a known wheel archive format". Use the real filename from the URL (as the entry already does).

  • Bump the pinned azdev (azdev_setup.yml + azure-pipelines.yml) 49390f3 -> 644d296, the current dev commit that includes azdev's matching extension update-index fix. Stays pinned until azdev 0.2.11 is published to PyPI.

get_ext_metadata reads wheel metadata via pkginfo now, which needs a .whl-named file. update_index was saving the download as just the extension name (e.g. ssh), so pkginfo rejected it with 'Not a known wheel archive format' and the publish index update failed. Use the filename from the URL, like the rest of the script already does for the index entry.
The previous pin predated azdev's extension update-index wheel-filename fix. Point both jobs at the current dev commit so CI runs azdev with all the merged decoupling fixes, until 0.2.11b1 is published to PyPI.
@aryasadeghi1 aryasadeghi1 self-assigned this Jun 24, 2026
Copilot AI review requested due to automatic review settings June 24, 2026 05:02
@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 24, 2026

Copy link
Copy Markdown
️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @aryasadeghi1,
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes the CI index update path after the switch to pkginfo-based wheel metadata by ensuring the downloaded wheel is saved with its real .whl filename, and it updates the pinned azdev source commit so CI consumes the corresponding upstream fix.

Changes:

  • Save the downloaded wheel using the filename from the wheel URL (so pkginfo can read it as a wheel archive).
  • Bump the pinned azure-cli-dev-tools (azdev) git commit in both ADO pipeline entrypoints.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
scripts/ci/update_index.py Downloads the wheel using its actual .whl filename to support pkginfo-based metadata reads.
azure-pipelines.yml Updates the pinned azdev git commit used by the IndexVerify job.
.azure-pipelines/templates/azdev_setup.yml Updates the pinned azdev git commit used by the shared azdev setup template.

@yonzhan

yonzhan commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

CI

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.

4 participants