Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

ci: divide cache between branches #5494

Merged
merged 1 commit into from
Apr 2, 2020
Merged

ci: divide cache between branches #5494

merged 1 commit into from
Apr 2, 2020

Conversation

TriplEight
Copy link
Contributor

@TriplEight TriplEight commented Apr 1, 2020

Previously CARGO_HOME was divided between CI jobs only, and it was fine. There was no sensible concurrency for the dependencies' sources.
Since 1.41 we've been experiencing a lot of troubles with the corrupted cache.

This PR is a simple workaround:
Pros:

  • It should stop requiring cache purging because of the error

Cons:

  • every new PR pipeline will download all the deps for every CI runner.
  • it will use more disk space on CI servers

On the bright side, it will be easier to clean cache only for those jobs which need that.

@TriplEight TriplEight requested a review from bkchr April 1, 2020 18:00
@TriplEight TriplEight self-assigned this Apr 1, 2020
@TriplEight TriplEight requested a review from gabreal April 1, 2020 18:25
@bkchr bkchr merged commit 42c0654 into master Apr 2, 2020
@bkchr bkchr deleted the divide_cargo_home_cache branch April 2, 2020 09:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants