fix: exclude crate archives from Azure build cache - #448
Merged
Mohamed Mansour (mohamedmansour) merged 2 commits intoAug 15, 2026
Merged
fix: exclude crate archives from Azure build cache#448Mohamed Mansour (mohamedmansour) merged 2 commits into
Mohamed Mansour (mohamedmansour) merged 2 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mohamed Mansour (mohamedmansour)
requested review from
Jane Chu (janechu)
and
a lite review from Copilot
August 15, 2026 19:57
Copilot started reviewing on behalf of
Mohamed Mansour (mohamedmansour)
August 15, 2026 19:58
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a release pipeline failure where Azure cache restore reintroduced stale Rust .crate archives from target/package, causing artifact validation to detect too many crate packages and blocking CD.
Changes:
- Updates the Azure build pipeline to remove
target/packageafter cache restore and again when the packaging step exits (so archives aren’t reused or re-cached). - Documents the
target/packagecache-exclusion behavior inDESIGN.mdas part of the release automation contract.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| DESIGN.md | Documents the release automation behavior around preserving compilation caches while excluding target/package archives. |
| .ado/pipelines/azure-pipelines-build.yml | Deletes target/package before/after cargo xtask publish-stage --pack-only to prevent stale .crate archives from being restored/saved via Azure cache. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Mohamed Mansour (mohamedmansour)
requested review from
Akrosh Gandhi (akroshg) and
mcritzjam
August 15, 2026 20:03
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Jane Chu (janechu)
approved these changes
Aug 15, 2026
mcritzjam
approved these changes
Aug 15, 2026
Mohamed Mansour (mohamedmansour)
deleted the
mohamedmansour-investigate-cd-pipeline
branch
August 15, 2026 20:12
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.
The v0.0.25 release build restored stale
.cratearchives fromtarget/package, causing artifact validation to find 30 crate packages instead of the expected 15 and preventing CD from starting.This change removes
target/packageafter cache restore and again when the packaging task exits. Reusable Cargo compilation outputs remain cached, while versioned release archives are neither consumed by the next release nor saved into the next Azure cache entry. The release automation contract inDESIGN.mdnow documents this behavior.Validation
cargo xtask check