Skip to content

Use the shared Rust cache action in CI - #27214

Draft
zaniebot wants to merge 15 commits into
astral-sh:mainfrom
zaniebot:zb/ruff-bootstrap-workspace-cache
Draft

zaniebot wants to merge 15 commits into
astral-sh:mainfrom
zaniebot:zb/ruff-bootstrap-workspace-cache

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

rust-cache keys include every installed toolchain, so runner-image changes can invalidate caches even when the active compiler is unchanged. Use rust-workspace-cache throughout CI to key on the active compiler, retain workspace artifacts in selected jobs, and keep smaller dependency-only caches elsewhere.

Full workspace caches include a source fingerprint so successful writers can save rebuilt artifacts after source changes. Enable this mode for Linux debug tests. Ruff binary consumers share main producers for Depot and GitHub runners, which use separate cache storage.

Depends on astral-sh/github-actions#45, stacked on astral-sh/github-actions#44 and astral-sh/github-actions#43.

See the cache-refresh report and comparisons across other CI jobs for the performance tradeoffs.

@zaniebot
zaniebot force-pushed the zb/ruff-bootstrap-workspace-cache branch from f67b586 to 8f34252 Compare July 27, 2026 14:57
@astral-sh-bot

astral-sh-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@zaniebot
zaniebot force-pushed the zb/ruff-bootstrap-workspace-cache branch from 8f34252 to 29e3644 Compare October 22, 2026 04:32
@zaniebot zaniebot changed the title Reuse workspace artifacts across Rust test jobs Reuse Rust workspace artifacts across CI Oct 22, 2026
@zanieb zanieb added the ci Related to internal CI tooling label Oct 22, 2026
@zaniebot zaniebot changed the title Reuse Rust workspace artifacts across CI Reuse Rust workspace artifacts in selected CI jobs Oct 22, 2026
@zaniebot zaniebot changed the title Reuse Rust workspace artifacts in selected CI jobs Use the shared Rust cache action in CI Oct 24, 2026

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

ci Related to internal CI tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants