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

fix(helper): make mkdirIfNotExists helper resilient to concurrent calls #3750

Merged
merged 3 commits into from
Feb 5, 2022

Conversation

devoto13
Copy link
Collaborator

The main motivation for this change is karma-runner/karma-coverage#434 (comment) where concurrent calls to the helper fail because of the race between the check and directory creation. This is a temporary solution and should be replaced with the native mkdir with the recursive option once minimum supported Node is bumped to 12.

The main motivation for this change is karma-runner/karma-coverage#434 (comment) where concurrent calls to the helper fail because of the race between the check and directory creation. This is a temporary solution and should be replaced with the native [`mkdir`](https://nodejs.org/api/fs.html#fsmkdirpath-options-callback) with the `recursive` option once minimum supported Node is bumped to 12.
@jginsburgn
Copy link
Member

@devoto13 do you consider this PR ready to be merged?

@devoto13
Copy link
Collaborator Author

devoto13 commented Feb 1, 2022

@jginsburgn Yes, it is ready. It is a companion PR for the karma-runner/karma-coverage#463, so both should be merged to resolve the coverage generation race.

@jginsburgn jginsburgn mentioned this pull request Feb 5, 2022
17 tasks
@jginsburgn jginsburgn merged commit d9dade2 into karma-runner:master Feb 5, 2022
@karmarunnerbot
Copy link
Member

🎉 This PR is included in version 6.3.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

@devoto13 devoto13 deleted the fix-helper branch February 10, 2022 18:44
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.

3 participants