Skip to content

fix: exclude crate archives from Azure build cache - #448

Merged
Mohamed Mansour (mohamedmansour) merged 2 commits into
mainfrom
mohamedmansour-investigate-cd-pipeline
Aug 15, 2026
Merged

fix: exclude crate archives from Azure build cache#448
Mohamed Mansour (mohamedmansour) merged 2 commits into
mainfrom
mohamedmansour-investigate-cd-pipeline

Conversation

@mohamedmansour

Copy link
Copy Markdown
Contributor

The v0.0.25 release build restored stale .crate archives from target/package, causing artifact validation to find 30 crate packages instead of the expected 15 and preventing CD from starting.

This change removes target/package after 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 in DESIGN.md now documents this behavior.

Validation

  • cargo xtask check

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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 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/package after cache restore and again when the packaging step exits (so archives aren’t reused or re-cached).
  • Documents the target/package cache-exclusion behavior in DESIGN.md as 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.

Comment thread .ado/pipelines/azure-pipelines-build.yml
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mohamedmansour
Mohamed Mansour (mohamedmansour) merged commit 9d531fc into main Aug 15, 2026
21 checks passed
@mohamedmansour
Mohamed Mansour (mohamedmansour) deleted the mohamedmansour-investigate-cd-pipeline branch August 15, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants