Skip to content

Conversation

@jkloth
Copy link
Contributor

@jkloth jkloth commented Mar 22, 2022

…indows (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

…indows (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]>
@bedevere-bot bedevere-bot added skip news tests Tests in the Lib/test dir labels Mar 22, 2022
@zooba zooba changed the title [3.10] bpo-44336: Prevent tests hanging on child process handles on W… [3.10] bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) Mar 22, 2022
@zooba zooba merged commit 8146e6b into python:3.10 Mar 22, 2022
@jkloth jkloth deleted the backport-19058b9-3.10 branch April 5, 2022 22:29
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