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

Only save CircleCI source cache once a day #19958

Merged
merged 1 commit into from Jan 12, 2018
Merged

Conversation

balderdash
Copy link
Contributor

@balderdash balderdash commented Jan 11, 2018

We use CircleCI caching to speed up the source checkout step in our test runs by saving the entire .git directory. This is almost 7GB, but caching it speeds up the checkout step from 6 minutes to 1 minute. However, the cache itself takes 1 minutes to restore, and 4 minutes to save, completely eliminating the gains in the checkout step.

We can get the best of both worlds by saving a new version of the cached .git directory only once a day. The checkout step just has to download a day's worth of new changes, which should be quick, and the 4 minute save step only hits the first build each day instead of every single build.

[skip unit]
[skip ui]
@balderdash balderdash merged commit 2bd3540 into staging Jan 12, 2018
@balderdash balderdash deleted the cache-git-less branch January 18, 2018 00:31
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.

None yet

2 participants