Add artifacts_download module and example for universal packages#763
Open
cataggar wants to merge 3 commits intomicrosoft:mainfrom
Open
Add artifacts_download module and example for universal packages#763cataggar wants to merge 3 commits intomicrosoft:mainfrom
cataggar wants to merge 3 commits intomicrosoft:mainfrom
Conversation
Addresses microsoft#330: Adds a complete example demonstrating how to download universal packages from Azure DevOps Artifacts, plus an artifacts_download module with the reusable protocol implementation. The download protocol involves: 1. Service discovery via ResourceAreas API 2. Package metadata retrieval from the packages service 3. Blob URL resolution via the dedup service 4. Manifest download and parsing 5. Chunk download with xpress decompression
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixed #330. Adds an
artifacts_downloadmodule and example for downloading universal packages from Azure DevOps Artifacts. The module provides aClient/ClientBuilderusingazure_corefor HTTP, following the same patterns as other modules in the crate.Download Protocol
The module implements a 5-step dedup-based download protocol:
GET /{org}/_apis/ResourceAreasto find the packages and blob service URLsGET {pkgsHost}/{project}/_packaging/{feed}/upack/packages/{name}/versions/{version}to get manifest and super-root IDsPOST {blobHost}/_apis/dedup/urlsto convert blob IDs into SAS-signed download URLsUsage
Verification
Tested end-to-end against a real Azure DevOps feed. The downloaded file matches byte-for-byte against the output of
az artifacts universal download.