Scripts: terminate the title process tree when a smoke run times out #1073
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1073
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1073"
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?
@storrmzz on GitHub · 2026-11-24 11:18 UTC · original
storrmzz:scripts/smoke-timeout-process-tree→main· +161 −1 · 4 files · 1 commits · openWhen a smoke run times out, killing only the launcher leaves the title child alive with inherited output pipes. The subsequent ReadToEndAsync result can then wait indefinitely. Terminate the process tree with Windows taskkill /T /F and bound the post-timeout waits; report a termination failure instead of hanging.
What is in it
scripts/smoke.ps1: terminate the title's process tree on timeout, compatible with Windows PowerShell 5.1.scripts/smoke-timeout.tests.ps1: synthetic native parent/child processes exercise normal exit, timeout cleanup, failed termination and unclosed pipes. A private script copy shortens the grace period to five seconds.Tested
a95661e6fc063b139a59a6ff0d0c3eadef399001. Windows 11 build 26300, Ryzen 7 8840HS, Radeon 780M (driver 32.0.31033.3); rustc 1.100.0 MSVC, debug, Windows SDK 10.0.26100.0 / DXC 1.9.2602.17.cargo build --locked --workspace --jobs 2: passed.cargo test --locked --workspace --no-fail-fast --jobs 2 -- --test-threads=4: 741 passed, 0 failed, 41 ignored; 0 SKIPPED GPU tests. Includes the synthetic title e2e run.powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/smoke-timeout.tests.ps1: 4 passed (5.1.26100.9818). Same command withpwsh: 4 passed (7.6.9).384f7f7: normal exit passes, timeout fails in both shells because the script never returns. Fixture processes are cleaned up.python -B -m unittest discover -s scripts -p 'test_*.py' -v: 9 passed; existing native-stderr script test passes in both shells;git diff --checkpasses.Regression run
No runtime changes: scripts, CI and README only.
Not tested
Retail titles and optional
XCL_SAMPLE_*inputs (all unset), the 41 ignored diagnostic tests, other GPUs, and Wine. File-dependent tests that return early without samples are not retail coverage.AI use
This PR was created with AI assistance from OpenAI Codex (GPT-6).
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
a95661e, script tests only, since this PR has no test report yet.Tested
powershell.exe -NoProfile -File scripts/smoke-timeout.tests.ps1at the head: exit 0,PASS normal,PASS timeout,PASS failure,PASS open-pipes(31 s).930e8b4): exit 1:PASS normal, thentimeout: smoke.ps1 did not return after the deadline., so the test reproduces the hang on main'ssmoke.ps1. So the new test catches the problem the PR fixes.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.