Skip to content

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

Merged
maffoo merged 2 commits intomainfrom
u/maffoo/compat-tests
Dec 5, 2023
Merged

Use spawn in _compat_test.py to avoid fork problems#6374
maffoo merged 2 commits intomainfrom
u/maffoo/compat-tests

Conversation

@maffoo
Copy link
Copy Markdown
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 a team, cduck and vtomole as code owners December 5, 2023 18:57
@codecov
Copy link
Copy Markdown

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
@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