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 the default multiprocessing pool configuration. #2596

Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Nov 13, 2024

Previously we were forcing use of fork for all OSes to try to juice
performance at the cost of running into threading issues at some point
when things got more complex. They may have reached that point with CI
lockups happening on macOS. Revert to the default pool setup to attempt
to fix macOS hangs.

To support this, also propagate any CLI global Variables adjustments
to subprocesses. Previously these were only propagated for the current
process; now the adjustments propagate through the environment so that
subprocesses see the same adjustments. In particular, this ensures
subprocesses use the same PEX_ROOT when a fallback has to be used to
work around lack of write perms.

@jsirois jsirois force-pushed the multiprocessing/maybe-fix-hang-on-mac branch 3 times, most recently from 269d4ff to 8e2a285 Compare November 17, 2024 18:46
Previously we were forcing use of fork for all OSes to try to juice
performance at the cost of running into threading issues at some point
when things got more complex. They may have reached that point with
CI lockups happening on macOS. Revert to the default pool setup to
attempt to fix macOS hangs.

To support this, also propagate any CLI global `Variables` adjustments
to subprocesses. Previously these were only propagated for the current
process; now the adjustments propagate through the environment so that
subprocess see the same adjustments. In particular, this ensures
subprocess use the same `PEX_ROOT` when a fallback has to be used to
work around lack of write perms.
@jsirois jsirois force-pushed the multiprocessing/maybe-fix-hang-on-mac branch from 8e2a285 to 8a2da5d Compare November 17, 2024 18:48
@jsirois jsirois merged commit 30c2ec8 into pex-tool:main Nov 17, 2024
23 checks passed
@jsirois jsirois deleted the multiprocessing/maybe-fix-hang-on-mac branch November 17, 2024 20:20
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.

1 participant