Skip to content

Refresh workspace caches after source changes - #45

Draft
zanieb wants to merge 2 commits into
zb/nested-workspace-inputsfrom
zb/refresh-workspace-cache-20261027
Draft

zanieb wants to merge 2 commits into
zb/nested-workspace-inputsfrom
zb/refresh-workspace-cache-20261027

Conversation

@zanieb

@zanieb zanieb commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

When workspace sources change, exact cache hits can cause later jobs to rebuild the same crates because existing cache entries cannot be updated. Add a fingerprint of Git-tracked checkout paths to workspace cache keys so successful cache writers can save rebuilt artifacts under a new key. Restore keys prefer matching dependency keys within each searched cache scope and fall back to other compatible entries. Dependency-only cache keys are unchanged.

Refreshing workspace entries can reduce repeated rebuilds and increase cache uploads. See the Ruff and uv reports for the performance tradeoffs across source changes.

Stacked on #44.

This branch has not been deployed

No deployments
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.

2 participants