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

Safegraph patterns: spawn instead of fork threads #1494

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

nmdefries
Copy link
Contributor

@nmdefries nmdefries commented Jan 26, 2022

Description

Safegraph patterns unit tests started hanging recently. This is a problem with the multiprocessing bit interacting with multiprocessing used in a new version of the code coverage library. Bug here.

Based on this article and the docs, it seems to be related to how the threads are created. Switching from default (forking) to spawning is a "stronger" fix that we may want to consider, but this is also fixed by pinning the code coverage library to the previous version.

Changelog

  • run.py

Copy link
Contributor

@jingjtang jingjtang left a comment

Choose a reason for hiding this comment

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

LGTM!

@korlaxxalrok korlaxxalrok merged commit c24d4f7 into main Jan 27, 2022
@korlaxxalrok korlaxxalrok deleted the ndefries/fix-stalled-safegraph-test branch January 27, 2022 02:22
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.

3 participants