mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1338] check_d3d12_trace: capture fixture output in files so a timeout cannot wait for its children (OLD-9920) #1368
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1368
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1338
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9920-check-d3d12-trace-timeout📝 Commits (2)
af93f4acheck_d3d12_trace: finish communicate() after killing a timed-out fixture865d357check_d3d12_trace: capture the fixture's output in files so a timeout cannot wait for its children📊 Changes
2 files changed (+54 additions, -12 deletions)
View changed files
📝
runtime/test/check_d3d12_trace.py(+38 -12)📝
tests/test_check_d3d12_trace.py(+16 -0)📄 Description
Summary
Coordination item:
OLD-9920(carry-forward ofold-pr/9920, preserving original authorSunkiller-qcacross both commits).Problem & Root Cause
In
runtime/test/check_d3d12_trace.py, when a timed-out fixture was killed, callingcommunicate()on piped stdout/stderr could block indefinitely if a grandchild process inherited and kept the pipe handles open.Implementation
runtime/test/check_d3d12_trace.pyand finishes waiting/cleanup after killing a timed-out fixture so grandchildren holding descriptors cannot block the runner.test_runner_timeout_does_not_wait_for_a_child_holding_the_outputintests/test_check_d3d12_trace.py.Tests Run
Environment: Windows 11 Pro 64-bit, Python 3.12.10, synthetic fixtures only (no game data).
python -I -m py_compile runtime/test/check_d3d12_trace.py tests/test_check_d3d12_trace.py— PASSpytest tests/test_check_d3d12_trace.py -v— 3 passed, 1 skipped (POSIX-onlyos.kill(pid, 0)check skipped on Windows; newtest_runner_timeout_does_not_wait_for_a_child_holding_the_outputPASSED)python -I scripts/check_no_game_data.py runtime/test/check_d3d12_trace.py tests/test_check_d3d12_trace.py— PASSDisclosure
AI-assisted: yes (carry-forward, rebase onto current
main, and local verification; original implementation by Sunkiller-qc).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.