Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-120635: Avoid leaking processes in test_pyrepl #120676

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

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 18, 2024

If the child process takes longer than SHORT_TIMEOUT seconds to complete, kill the process but then wait until it completes with no timeout to not leak child processes.

If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
@vstinner
Copy link
Member Author

!buildbot AMD64 Debian PGO

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 5ad6dc0 🤖

The command will test the builders whose names match following regular expression: AMD64 Debian PGO

The builders matched are:

  • AMD64 Debian PGO PR

@lysnikolaou
Copy link
Member

Did the buildbot run? I can't find it in the list of checks.

@vstinner
Copy link
Member Author

Did the buildbot run? I can't find it in the list of checks.

No, it didn't yet. It's very slow: a single build takes between 3 and 7 hours! https://buildbot.python.org/all/#/workers/3

@vstinner
Copy link
Member Author

buildbot/AMD64 Debian PGO PR — Build done.

It's a success.

@vstinner vstinner merged commit 0f3e364 into python:main Jun 19, 2024
36 checks passed
@vstinner vstinner deleted the pyrepl_wait branch June 19, 2024 13:14
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 19, 2024
)

If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
(cherry picked from commit 0f3e364)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Jun 19, 2024

GH-120741 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 19, 2024
vstinner added a commit that referenced this pull request Jun 19, 2024
…120741)

gh-120635: Avoid leaking processes in test_pyrepl (GH-120676)

If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
(cherry picked from commit 0f3e364)

Co-authored-by: Victor Stinner <vstinner@python.org>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.