-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Include OS and CPU architecture in CircleCI cache keys #12106
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
Conversation
|
Looks good for now. |
|
Looks like |
|
Wait but the build worked, did you forget to add arch to the test run? |
|
Hmm... I'm guessing that build went fine because the key was not present in the cache. The |
|
|
1505e0a to
bd58d81
Compare
|
Back to draft. I need to experiment with it a bit. |
9e3c1aa to
cd22574
Compare
|
We'll have to wait for CircleCI for a proper fix (I think this is a problem in The dir contains only two files: I'm leaving the |
|
After digging deeper, I think that this is a bug in |
| - steps_restore_cache_homebrew_workaround: &steps_restore_cache_homebrew_workaround | ||
| steps: | ||
| - run: | ||
| # FIXME: For some reason restore_cache fails saying that it cannot remove the scm/ dir. |
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.
Do you mean the rm -r below? If so, what about rm -rf?
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.
No, the rm is the workaround :) Works without --force.
It's restore_cache that can't remove the files and it's provided by CircleCI so we have to wait for a fix from them.
Recently
b_osxjob has been failing in some of our PRs. Specifically external PRs that have been inactive for some time."Error untarring cache" when running a macOS job suggests to include
{{ arch }}in cache key. The reason for failures is probably that there has been an OS update after these PRs were last updated and the cache is simply no longer valid.This PR adds
{{ arch }}to cache keys on macOS and also on Windows just in case.