-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Cache random stuff #118
chore: Cache random stuff #118
Conversation
@wsmoses Do you know if the assumption that the oldest caches get cleaned up holds for the OpenStack runner too? |
d7b19a3
to
9676faf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know but we can find out. LGTM but can you name the cache rust-xyz just in case caches are per device or org
Yea, the names are pretty much random atm. I first wanted to see whether it helps at all. The Cargo.lock file in |
9676faf
to
3986bf1
Compare
Going from 18-30 to 3 minutes is an awesome speedup. |
The CI spends quite some time building the cargo project for the initial stages. The directories added in this PR are marked with the CACHE_DIR flag and therefore cargo should be able to deal with them becoming out of date. I just want to see what, if anything, this can save first. There are a few considerations with cache size one has to think about, as we no longer really have a stable hash to base the cache on. Maybe we could build something from the more internal build files, but that is a problem for later. In the meantime it will just bloat the caches, generating a new one every CI run, and then hoping that GitHub ages them out nicely.