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

Use spawn in _compat_test.py to avoid fork problems #6374

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

maffoo
Copy link
Contributor

@maffoo maffoo commented Dec 5, 2023

Fixes #6373.

Note that using multiprocessing with "spawn" is significantly slower than either "fork" or "forkserver", but it ensures that the subprocesses are isolated so is significantly safer. We can switch back in the future to improve performance if we can work out the issues, but for now I think using spawn is more robust.

@maffoo maffoo requested review from vtomole, cduck and a team as code owners December 5, 2023 18:57
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (30b6c39) 97.80% compared to head (ef83e54) 97.80%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6374   +/-   ##
=======================================
  Coverage   97.80%   97.80%           
=======================================
  Files        1111     1111           
  Lines       96878    96873    -5     
=======================================
- Hits        94755    94751    -4     
+ Misses       2123     2122    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maffoo maffoo merged commit 7578110 into main Dec 5, 2023
38 checks passed
@maffoo maffoo deleted the u/maffoo/compat-tests branch December 5, 2023 19:36
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
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.

Test failures in _compat_test.py/test_deprecated_module
2 participants