Skip to content

gh-156722: Terminate tracing processes gracefully on timeout for test_dtrace - #156753

Open
stratakis wants to merge 2 commits into
python:mainfrom
stratakis:sigterm_dtrace
Open

stratakis wants to merge 2 commits into
python:mainfrom
stratakis:sigterm_dtrace

Conversation

@stratakis

@stratakis stratakis commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Send SIGTERM to the tracing process group before falling back to SIGKILL.

…r test_dtrace

Send SIGTERM to the tracing process group before falling back to SIGKILL.
@stratakis

Copy link
Copy Markdown
Contributor Author

cc @vstinner

@aisk aisk added the skip news label Sep 1, 2026
@aisk aisk changed the title gh-156722: Terminate tracing processes gracefully on timeout for test… gh-156722: Terminate tracing processes gracefully on timeout for test_dtrace Sep 1, 2026

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the idea of sending SIGTERM first, and only call SIGKILL after a timeout. I have a few comments on the actual implementation.

I failed to reproduce #156701 by running test_dtrace manually. I tested on two buildbots (CentOS 10 x86-64 and CentOS 9 ppc64le).

Comment thread Lib/test/test_dtrace.py Outdated
Comment thread Lib/test/test_dtrace.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants