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

bpo-38546: multiprocessing tests stop the resource tracker #17641

Merged
merged 2 commits into from Dec 17, 2019

Conversation

@vstinner
Copy link
Member

vstinner commented Dec 17, 2019

Multiprocessing tests now stop the resource tracker process, to
prevent leaking a child process after tests complete.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

https://bugs.python.org/issue38546

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.
@vstinner vstinner force-pushed the vstinner:mp_stop_res_tracker branch from 54dbcf4 to 8ff1bb4 Dec 17, 2019
@vstinner

This comment has been minimized.

Copy link
Member Author

vstinner commented Dec 17, 2019

Last July, I wrote a similar fix for forkserver in bpo-37421: commit 8fbeb14.

@vstinner vstinner merged commit 9707e8e into python:master Dec 17, 2019
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20191217.23 succeeded
Details
bedevere/issue-number Issue number 38546 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:mp_stop_res_tracker branch Dec 17, 2019
@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Dec 17, 2019

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒🤖

@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Dec 17, 2019

Sorry, @vstinner, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 9707e8e22d80ca97bf7a9812816701cecde6d226 3.8

vstinner added a commit to vstinner/cpython that referenced this pull request Dec 17, 2019
…17641)

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

(cherry picked from commit 9707e8e)
@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Dec 17, 2019

GH-17647 is a backport of this pull request to the 3.8 branch.

vstinner added a commit that referenced this pull request Dec 18, 2019
…GH-17647)

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

(cherry picked from commit 9707e8e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.