Skip to content

ci: expire unused Rust cache generations - #3151

Closed
fengmk2 wants to merge 1 commit into
mainfrom
fix/expire-unused-rust-caches
Closed

fengmk2 wants to merge 1 commit into
mainfrom
fix/expire-unused-rust-caches

Conversation

@fengmk2

@fengmk2 fengmk2 commented Oct 20, 2026

Copy link
Copy Markdown
Member

Dependency changes can leave multiple Rust cache generations on main.

Delete an older generation only when a newer cache exists for the same job, OS, architecture, Rust environment, and archive version. Keep entries created or used within the last 48 hours. Keep the newest generation even when it is idle.

Run cleanup every six hours. Recheck each candidate before deletion, and report the deleted size. Manual runs default to a dry run. Keep the existing cleanup for closed PRs.

The earlier cache snapshot contained 1.47 GiB of older generations in matching environments. These entries qualify only after 48 hours without use. Actual savings depend on cache use and prior eviction.

@fengmk2
fengmk2 force-pushed the fix/expire-unused-rust-caches branch from e2cfd47 to bf77f26 Compare October 20, 2026 16:08
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-expire-unused-rust-caches-viteplus-dev.voidzero-docs.workers.dev (commit e2cfd47)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6079d760-viteplus-dev.voidzero-docs.workers.dev e2cfd47 2026-10-20T16:07:48.204Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a25aff89-viteplus-dev.voidzero-docs.workers.dev bf77f26 2026-10-20T16:11:49.068Z Visit the dashboard ↗

@fengmk2 fengmk2 closed this Oct 20, 2026
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.

1 participant