fix: cache what installs actually reuse, and keep it when a test fails #102
No reviewers
Labels
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cjournois/reusable-pipeline!102
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/runner-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The runner-cache audit found the caches miss what installs reuse:
ciwipesnode_modules, so every run re-downloads packages.mise installstill takes 43s, because rustup's toolchain lives in~/.rustup, outside it.cargo auditalso re-clones its advisory DB (28s).What
~/.bun/install/cacheor~/.npm; rust adds~/.cargo/advisory-db.setup(live from@mainon merge): a mise.toml pinningrustaddsRUSTUP_HOMEand$CARGO_HOME/binto the mise cache under a-rustupkey, so only rust units take one cold run.cache_restore); python venvs don't.cache/restore+cache/save: deps save after Build, even on a failed test, unless the install failed.Check
just lint testgreen, with new bats for the store choice, the restore prefix and rust detection.Session: 60ac4614-d609-4e43-a004-27bdaf30476c