[Storage] az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures#33730
az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures#33730Conversation
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures
Live test results —
|
There was a problem hiding this comment.
✅ Review: All checks passed
Live test: Run #29383646373 — success
CI checks: 1 passed, 0 failed, 0 pending
Summary
PR #33730 fixes az storage fs file download failures on ADLS Gen2 files with Content-Encoding: deflate by switching from buffered readall() to streamed readinto(stream). This aligns with the existing stream-to-file pattern used elsewhere in storage downloads.
All checks are green and the live test completed successfully. This PR is ready for maintainer review and merge.
Posted by agent-assist (autonomous bug-fix pipeline).
|
Storage |
There was a problem hiding this comment.
❌ CI Failures
The following CI checks failed on this PR:
Azure.azure-cli— the main CI pipeline failedAzure.azure-cli (Test Homebrew Formula)— the Homebrew formula test failed
Please investigate the failures in the CI run logs and fix the issues, then push a new commit.
Posted by agent-assist (autonomous bug-fix pipeline).
|
@copilot the automated CI and live-test review on this PR found failures. Please look into the requested changes here: #33730 (review) and push a fix. Posted by agent-assist (autonomous bug-fix pipeline). |
Pushed |
There was a problem hiding this comment.
Automated Review — Changes Requested
PR: [Storage] az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures (#33730)
Live test (Tester)
- Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/29709280743 — failed
- Job
azdev test --live (PR 33730)failed. Please check the live test output for theaz storage fs file downloadcommand and fix the underlying issue (log fetch was unavailable due to a transient GitHub API outage, so please re-check the run directly).
CI status (azure-cli, head SHA de4bbe4)
3 checks failed, 23 still pending/in progress at the time of this review:
- Test Homebrew Formula — failed: https://github.com/Azure/azure-cli/runs/88252678005
- Integration Test against Profiles Python312 — failed: https://github.com/Azure/azure-cli/runs/88251764895
- Build Windows MSI x64 — failed: https://github.com/Azure/azure-cli/runs/88251561172
Please investigate these failures (Homebrew formula validation, the Python 3.12 profile integration tests, and the Windows MSI build), along with the live-test failure above, and push a fix. Once the changes are in, CI and the live test will automatically re-run.
Posted by agent-assist (autonomous bug-fix pipeline).
Related command
az storage fs file downloadDescription
az storage fs file downloadcan fail on ADLS Gen2 files when the response carriesContent-Encoding: deflate; upload/list/show paths succeed, but download trips the SDKreadall()decode path.readall()to streamedreadinto(stream).storage fs file downloadwith the existing stream-to-file pattern used elsewhere in storage download flows.readinto()and does not depend onreadall().Testing Guide
Example reproduction path:
Expected: file is written successfully even when the service response includes
Content-Encoding.History Notes
[Storage]
az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode 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.