Skip to content

[3.9] bpo-44336: Prevent tests hanging on child process handles on Wi…#32050

Merged
zooba merged 1 commit intopython:3.9from
jkloth:backport-19058b9-3.9
Mar 22, 2022
Merged

[3.9] bpo-44336: Prevent tests hanging on child process handles on Wi…#32050
zooba merged 1 commit intopython:3.9from
jkloth:backport-19058b9-3.9

Conversation

@jkloth
Copy link
Copy Markdown
Contributor

@jkloth jkloth commented Mar 22, 2022

…ndows (GH-26578)

Replace the child process typeperf.exe with a daemon thread that reads the performance counters directly. This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion).

We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment. Displaying load is really only helpful for buildbots running in multiprocess mode anyway..
(cherry picked from commit 19058b9)

Co-authored-by: Jeremy Kloth [email protected]

https://bugs.python.org/issue44336

…ndows (pythonGH-26578)

Replace the child process `typeperf.exe` with a daemon thread that reads the performance counters directly.  This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion).

We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment.  Displaying load is really only helpful for buildbots running in multiprocess mode anyway..
(cherry picked from commit 19058b9)

Co-authored-by: Jeremy Kloth <[email protected]>
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.

4 participants