[Extension] Fix #34062: az extension add: Fix Windows dependency installation failures - #34140
Conversation
…cy installation failures
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The x86 Windows/no-compatible-wheel source-build failure remains unresolved and needs regression coverage.
Review effort: Lite
Findings: None
What changed in this PR
This PR fixes Windows extension dependency installation by preferring binary wheels and adding regression coverage and documentation.
Changes:
- Adds Windows-specific
--prefer-binarypip behavior. - Adds offline tests for wheel selection, source builds, isolation, cleanup, and checksums.
- Documents validation procedures and runtime limitations.
| File | Summary |
|---|---|
src/azure-cli/azure/cli/command_modules/extension/tests/latest/test_extension_install.py |
Tests command-level extension installation behavior. |
src/azure-cli-core/azure/cli/core/tests/test_extension_pip.py |
Adds pip installation regression coverage. |
src/azure-cli-core/azure/cli/core/tests/extension_pip_test_utils.py |
Provides local package fixtures. |
src/azure-cli-core/azure/cli/core/extension/operations.py |
Enables Windows binary-wheel preference. |
doc/extensions/authoring.md |
Documents testing and validation guidance. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Live test results —
|
There was a problem hiding this comment.
Review
The earlier upstream-CI failures are resolved for head 088d3144e4172e479e138655daef6652dcce6365. No actionable findings were confirmed in the Windows-only --prefer-binary change or its accompanying tests and documentation. Ready for maintainer review; this comment is not an approval.
Upstream CI
The current-head summary contains 53 passed, 0 failed and 0 pending checks. The latest completed check is newer than the previous failed-CI review, so this review supersedes that failure assessment.
Test validation
- Live test: Passed. Workflow run
- Regression coverage: Not applicable to the changed files.
Scope and regression evidence
The change adds --prefer-binary only to Windows extension installs; other platforms retain their existing pip arguments. Focused coverage is supplied in src/azure-cli-core/azure/cli/core/tests/test_extension_pip.py and src/azure-cli/azure/cli/command_modules/extension/tests/latest/test_extension_install.py, with a shared fixture helper. The PR's Testing Guide names these paths; it is a validation plan, not an additional reported execution result.
All seven repository review tools were considered, including the test-strength and scope-consistency review targets. No additional semantic finding was confirmed. The module-specific regression-gap and risk classifiers do not identify the changed core extension/operations.py file as command-module production code: their not-applicable/low-confidence results below should not be read as an absence of runtime change. Core/extension maintainers should review the Windows dependency-selection behavior.
Risk assessment
0/100 · Low · Low confidence
The Low rating reflects the detected change scope with no elevated security, reliability, customer, operational, dependency, sovereign-cloud, generated-output, or cross-component signal.
- Change scope: 5 changed files, 564 changed lines (
+564/-0), including 0 production files. - Affected components: No production component was identified.
- Risk drivers: No elevated risk signal was detected.
- Regression evidence: No production-code regression-test signal applies.
- Confidence: Low because no production changed-line evidence was available.
- Required review: No additional owning-squad review signal was detected.
Posted by x-engineering-agent (Reviewer)
Related command
az extension addDescription
Fixes #34062.
Fix Windows dependency installation failures.
Testing Guide
az extension add.src/azure-cli-core/azure/cli/core/tests/test_extension_pip.py,src/azure-cli/azure/cli/command_modules/extension/tests/latest/test_extension_install.py.History Notes
[Extension]
az extension add: Fix Windows dependency installation failuresThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.