Repository navigation
Conversation
Only jobs that run on `main` or a release branch can update the cache, all other jobs try to use it. We don't want jobs triggered by forks to write to the cache.
Member
Author
|
I'll close this. It seems like CircleCI and Azure probably as well don't let you share caches. So the builtin caches in the CI system are probably a dead end. |
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.
Reference Issues/PRs
Towards #32961
What does this implement/fix? Explain your changes.
Only jobs that run on
mainor a release branch can update the cache, all other jobs try to use it. We don't want jobs triggered by forks to write to the cache.The goal is to implement a cache that is shared between all jobs, no matter which PR they belong to. The cache should contain the datasets that are downloaded from a remote host (eg figshare). Assuming that figshare and co are mostly available we should be able to populate the cache and then use it. During an outage the chances are that we have a full cache already and don't notice it. Even a run on
mainwould use the existing cache, so shouldn't be effected by an outage.🔴 From reading https://circleci.com/docs/guides/optimize/caching/#caching-and-open-source I am actually pretty sure that this setup doesn't achieve what I'd like. It sounds like different forks have different caches (even for the same cache key)?
One thing that I am not 100% sure about is the fact that we already had this kind of caching setup for the docs builds. Yet during the last outage of figshare we observed some failures. Maybe the explanation for this is that each PR had their own cache and if the PR was created before the outage started it had the datasets in cache, but newer PRs didn't.
AI usage disclosure
I used AI assistance for: