Skip to content
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

CircleCI : specialized caches #798

Merged
merged 9 commits into from
Aug 11, 2020

Conversation

tlaurion
Copy link
Collaborator

This changes the way CircleCI handles cache and limit the possibility of cache corruptions and removes the CircleCI owner bounding that was there previously.

Now:

  • If modules/* and patches/* have the same hashes, that cache is restored. It saves the new cache if the hashes are different. This cache is usefull for most changes happening in Heads, which are security policy related and linked to scripts changes. If modules or hashes changes and no cache exists, if will restore the next cache.
  • If musl-cross module and applied patches have the same hashes of an existing cache, that cache is restored. It is saved once for a single hash which means that the module version (commit) and applied patches are the same. This permits to economize one hour of build time for each build and rarely ever change.

… levels. One for musl-cross and its patchsets, one for all modules and their patchset being the same. So if modules changed, we use the cache for musl-cross as a fallback to economize one hour of precious build time out of two, while most of Heads changes are on the scripts and can be built on top of packages+patches cache
@tlaurion tlaurion merged commit 63b400c into linuxboot:master Aug 11, 2020
@tlaurion
Copy link
Collaborator Author

Fixes #769

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