[PR #1330] check_d3d12_trace: finish communicate() after killing a timed-out fixture (OLD-9920) #1360

Open
opened 2026-11-26 20:20:59 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1330
Author: @fin-github
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: takeover/old-9920-d3d12-trace-timeout


📝 Commits (2)

  • b7371a0 check_d3d12_trace: finish communicate() after killing a timed-out fixture
  • 6240af0 check_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

Claimed in the coordination issue as: OLD-9920 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145581073)

Supersedes draft #188, carried over from old upstream PR 9920 in the original repository. This is the same change cherry-picked onto current main (git cherry-pick -x), with the original author (Sunkiller-qc) kept on every commit. The change and its explanation are theirs; see #188 for the original description.

Tested

Windows 11 Pro 26200, CPython 3.14.4, on main 4a50cafc7. No GPU, no game files.

  • On this branch: tests/test_check_d3d12_trace.py: 4 tests OK (1 skipped), 4.6 s
  • The same test file(s) with main's code: test_runner_timeout_does_not_wait_for_a_child_holding_the_output fails (32 s run), so the tests still catch the bug on current main.
  • scripts/check_no_game_data.py on the changed files and tests/test_text_write_line_endings.py: clean.

GPUs tested: n/a

AI-assisted: yes (Claude Code). The cherry-pick and the test runs were done by the agent; the code is the original author's.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1330 **Author:** [@fin-github](https://github.com/fin-github) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `takeover/old-9920-d3d12-trace-timeout` --- ### 📝 Commits (2) - [`b7371a0`](https://github.com/ubiquitarianism/leonida/commit/b7371a06712a07a05f1e727770bffea45f900316) check_d3d12_trace: finish communicate() after killing a timed-out fixture - [`6240af0`](https://github.com/ubiquitarianism/leonida/commit/6240af03ade2df433b94da6ae3e7c6dc92e1b879) check_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) <details> <summary>View changed files</summary> 📝 `runtime/test/check_d3d12_trace.py` (+38 -12) 📝 `tests/test_check_d3d12_trace.py` (+16 -0) </details> ### 📄 Description Claimed in the coordination issue as: `OLD-9920` (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145581073) Supersedes draft #188, carried over from old upstream PR 9920 in the original repository. This is the same change cherry-picked onto current `main` (`git cherry-pick -x`), with the original author (Sunkiller-qc) kept on every commit. The change and its explanation are theirs; see #188 for the original description. ### Tested Windows 11 Pro 26200, CPython 3.14.4, on `main` 4a50cafc7. No GPU, no game files. - On this branch: `tests/test_check_d3d12_trace.py`: 4 tests OK (1 skipped), 4.6 s - The same test file(s) with `main`'s code: `test_runner_timeout_does_not_wait_for_a_child_holding_the_output` fails (32 s run), so the tests still catch the bug on current `main`. - `scripts/check_no_game_data.py` on the changed files and `tests/test_text_write_line_endings.py`: clean. GPUs tested: n/a AI-assisted: yes (Claude Code). The cherry-pick and the test runs were done by the agent; the code is the original author's. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1360
No description provided.