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

cache node_modules in CI by unique workflows #4490

Merged

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented Aug 17, 2021

This solves the same issue as this: mdn/content#8014

What can happen is that you get a race condition on 2 different GHA workflows that try to store or use the same Cache key and thus failing.
Besides, making each possible cache key in the actions/cache per workflow is a good idea because it assures that the caching is unique for the whole workflow.

@peterbe peterbe requested a review from fiji-flo August 17, 2021 15:08
@fiji-flo fiji-flo merged commit 8915e5e into mdn:main Aug 18, 2021
@peterbe peterbe deleted the cache-node_modules-in-ci-by-unique-workflows branch August 18, 2021 15: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.

2 participants