diff options
| author | Sunkiller-qc <Sunkiller-qc@users.noreply.github.com> | 2026-11-23 18:28:19 -0500 |
|---|---|---|
| committer | Fin <fin@mace.law> | 2026-11-24 16:56:18 -0500 |
| commit | 6240af03ade2df433b94da6ae3e7c6dc92e1b879 (patch) | |
| tree | 04bd62886c61e0f0007edd1a2c5b6cd2352ecb40 /scripts/launcher_python.sh | |
| parent | b7371a06712a07a05f1e727770bffea45f900316 (diff) | |
check_d3d12_trace: capture the fixture's output in files so a timeout cannot wait for its children
Review of #9920 (thanks, Gevroska): on Windows a grandchild that inherits the
launcher's stdout/stderr pipes kept the check waiting past RUNNER_TIMEOUT,
on main and with the bounded communicate(), because leaving the Popen
context manager joins the pipe reader threads, which wait for every holder
of the pipes.
run_fixture no longer uses pipes: the output goes to two temporary files and
the run waits for the launcher alone, so no read can wait for a child. On a
timeout kill_tree() stops the process group on POSIX (as before) or the
process tree with taskkill /F /T on Windows, then the launcher is killed and
reaped with a bound. The files are read back as the pipes gave the text
(UTF-8 with replacements, \n line ends).
tests/test_check_d3d12_trace.py gains the reviewer's case: a launcher whose
child inherits its output and sleeps 30 s while the launcher sleeps 60 s,
with a 2 s limit; the check must fail with the one-line message within 15 s.
Not run here.
(cherry picked from commit cc2e28195926db2cfdc2ea9a3f3824f8282e7f54)
Diffstat (limited to 'scripts/launcher_python.sh')
0 files changed, 0 insertions, 0 deletions