Repository navigation
ci: keep bun caches slim and free of stale entries - #50
Merged
Merged
Conversation
Dropping restore-keys stops resurrecting stale cache entries on every lockfile bump, so each saved cache contains only the resolved deps instead of growing forever (Linux-bun had reached 577MB, bun-web 572MB; restores took up to 7s per job). Jobs that run lint get their own cache key because scripts/lint.ts installs bun@canary into the global cache on Bun 1.4.5; keeping it out of the shared key keeps test/build restores small too. On a lockfile bump each job pays one cold install instead of inheriting cruft.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
Summary
Drops
restore-keysfrom every bun package-cache entry and gives lint-running jobs their own cache key.Why: with
restore-keys, every lockfile bump restored the previous cache wholesale and re-saved it under the new key — the cache only grows, forever.Linux-bun-reached 577MB andLinux-bun-web-572MB, so eachactions/cacherestore cost up to ~7s per job (the largest remaining fixed cost in CI). On a bump, each job now does one coldbun installand saves a cache containing only resolved deps (~5–80MB), so restores stay fast permanently.checks,web-checks, and releaseverify-and-packageget-checks-keys becausescripts/lint.tspullsbun@canaryinto the global cache on Bun 1.4.5 — sharing the test/build keys would either bloat them or re-download canary every run.Link to Devin session: https://app.devin.ai/sessions/8b5e1e71f16e4e6d9a7a991126697c6f
Open in Devin Desktop: https://app.devin.ai/desktop/session/8b5e1e71f16e4e6d9a7a991126697c6f?variant=devin
Requested by: @extoci