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

CI: Remove yarn caching #478

Merged
merged 1 commit into from Sep 15, 2020
Merged

CI: Remove yarn caching #478

merged 1 commit into from Sep 15, 2020

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Sep 15, 2020

The regular yarn install takes ~23sec. When using caching the cache download takes ~15sec, the yarn install then still takes ~13sec, and at the end of the job the cache upload takes another ~36sec. Ultimately this means that caching makes us significantly slower in this case.

The regular `yarn install` takes ~23sec. When using caching the cache download takes ~15sec, the `yarn install` then still takes ~13sec, and at the end of the job the cache upload takes another ~36sec. Ultimately this means that caching makes us significantly slower in this case.
@Turbo87 Turbo87 requested a review from a team September 15, 2020 09:00
Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this surprising but as it also lets us remove a bunch of stuff from the CI config I'm all for it 👍

@Turbo87
Copy link
Collaborator Author

Turbo87 commented Sep 15, 2020

the caching is mostly worth it if you can reduce CPU bound tasks with it. if it just moves network or disk bound tasks to a different step then it's often not necessary if the cache network connection is as fast/slow as the real network request.

@Turbo87 Turbo87 merged commit 2a8daf4 into mainmatter:master Sep 15, 2020
@Turbo87 Turbo87 deleted the ci-cache branch September 15, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants