Scripts: derive smoke timeout status from the child process #1760

Open
github-bot wants to merge 1 commit from github-bot/gh-1760 into main AGit
Owner

@⁠NemesisDawn on GitHub · 2026-11-24 20:18 UTC · original
NemesisDawn:fix/smoke-timeout-status → main · +60 −4 · 2 files · 1 commits · open

Set the timeout flag from the child process’s wait result on every run. This keeps a completed run from inheriting a caller’s timeout flag or failing under PowerShell strict mode.

What is in it

  • scripts/smoke.ps1 sets the flag on both wait outcomes.
  • scripts/smoke-exit.tests.ps1 covers a normal exit under strict mode, a caller with $timedOut = $true, and termination after a timeout.

Tested

  • At 389e54f, powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/smoke-exit.tests.ps1 and pwsh.exe -NoProfile -File scripts/smoke-exit.tests.ps1 both exited 0 on Windows with a simulated child process.

Not tested

  • Full Cargo workspace suite on a GPU and smoke runs with a retail title.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) wrote the fix and regression test, ran the PowerShell checks, and drafted this description.
**@⁠NemesisDawn** on GitHub · 2026-11-24 20:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/1760) `NemesisDawn:fix/smoke-timeout-status` → `main` · +60 −4 · 2 files · 1 commits · open Set the timeout flag from the child process’s wait result on every run. This keeps a completed run from inheriting a caller’s timeout flag or failing under PowerShell strict mode. **What is in it** - `scripts/smoke.ps1` sets the flag on both wait outcomes. - `scripts/smoke-exit.tests.ps1` covers a normal exit under strict mode, a caller with `$timedOut = $true`, and termination after a timeout. **Tested** - At `389e54f`, `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/smoke-exit.tests.ps1` and `pwsh.exe -NoProfile -File scripts/smoke-exit.tests.ps1` both exited 0 on Windows with a simulated child process. **Not tested** - Full Cargo workspace suite on a GPU and smoke runs with a retail title. **AI use** - OpenAI Codex (GPT-6, exact variant unavailable) wrote the fix and regression test, ran the PowerShell checks, and drafted this description.
Set the timeout flag on both wait outcomes so a caller's variable
or strict mode does not change the report for a completed run.

Assisted-by: OpenAI Codex (GPT-6, exact variant unavailable)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:07 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 21:14 UTC · original

Tested exact head 389e54f, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • powershell.exe -NoProfile -File scripts/smoke-exit.tests.ps1 at the head: exit 0.
  • The PR's test file against current main's script (266b845): exit 1: main's smoke.ps1 stops with The variable '$timedOut' cannot be retrieved because it has not been set.. So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 21:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7144670841) Tested exact head `389e54f`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `powershell.exe -NoProfile -File scripts/smoke-exit.tests.ps1` at the head: exit 0. - The PR's test file against current main's script (`266b845`): exit 1: main's `smoke.ps1` stops with `The variable '$timedOut' cannot be retrieved because it has not been set.`. So the new test catches the problem the PR fixes. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 23:14 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 23:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7147172380) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:43 UTC · original

PR #1760 — STOR-WINLAB verification

Tested detached head 389e54f2af5714fd3fe7f37596f2fb1c4cf56872. The diff against origin/main is limited to scripts/smoke.ps1 and scripts/smoke-exit.tests.ps1.

Environment

Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave range 8–32, DoublePrecisionFloatShaderOps=0, d3d12SDKLayers.dll absent). Rust 1.100.0 (0ef1bc386), DXC/DXIL 1.9.2609.5, Windows PowerShell 5.1. Cargo dev and test profiles used no debug info.

Tested

  • Parser.ParseFile reported zero errors for both scripts. The synthetic child fixture passed all three cases. A timely exit reported 0x0 under strict mode. A caller’s stale $timedOut = $true still produced 0x0. A timed-out running child received a kill and reported killed (no exit). The same fixture reproduced the unset $timedOut error on the parent revision.
  • cargo build --workspace succeeded outside the Arc lock. cargo test --workspace --no-run succeeded under Invoke-ArcTest.ps1 to honor the requirement to wrap every cargo test invocation.
  • One locked run of cargo test --workspace --no-fail-fast -- --test-threads=4 exited 101. Across 20 result blocks, Cargo reported 840 passed, 18 failed, 42 ignored. The log has 3 SKIPPED lines within Cargo’s passed count, excluded from coverage (two no wave64, one no heap windows).
  • Library failures comprised 13 compute PSO creation errors (0x80070057) and four GPU result mismatches (FMA, implicit LOD sampling, packed FP16, and wave64 pixel reduction). The one end-to-end failure was the test title’s RSSetDepthBiasX check, where the top-right pixel was blue instead of green.

Not tested

Retail-title smoke, real child-process timing, other adapters, and a baseline workspace suite. Sample-dependent paths were left unexercised by clearing XCL_SAMPLE_* inputs.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1760-suite.log and published this report.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7152186163) # PR #1760 — STOR-WINLAB verification Tested detached head `389e54f2af5714fd3fe7f37596f2fb1c4cf56872`. The diff against `origin/main` is limited to `scripts/smoke.ps1` and `scripts/smoke-exit.tests.ps1`. **Environment** Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave range 8–32, `DoublePrecisionFloatShaderOps=0`, `d3d12SDKLayers.dll` absent). Rust 1.100.0 (`0ef1bc386`), DXC/DXIL 1.9.2609.5, Windows PowerShell 5.1. Cargo dev and test profiles used no debug info. **Tested** - `Parser.ParseFile` reported zero errors for both scripts. The synthetic child fixture passed all three cases. A timely exit reported `0x0` under strict mode. A caller’s stale `$timedOut = $true` still produced `0x0`. A timed-out running child received a kill and reported `killed (no exit)`. The same fixture reproduced the unset `$timedOut` error on the parent revision. - `cargo build --workspace` succeeded outside the Arc lock. `cargo test --workspace --no-run` succeeded under `Invoke-ArcTest.ps1` to honor the requirement to wrap every `cargo test` invocation. - One locked run of `cargo test --workspace --no-fail-fast -- --test-threads=4` exited 101. Across 20 result blocks, Cargo reported **840 passed, 18 failed, 42 ignored**. The log has **3 `SKIPPED ` lines** within Cargo’s passed count, excluded from coverage (two `no wave64`, one `no heap windows`). - Library failures comprised 13 compute PSO creation errors (`0x80070057`) and four GPU result mismatches (FMA, implicit LOD sampling, packed FP16, and wave64 pixel reduction). The one end-to-end failure was the test title’s `RSSetDepthBiasX` check, where the top-right pixel was blue instead of green. **Not tested** Retail-title smoke, real child-process timing, other adapters, and a baseline workspace suite. Sample-dependent paths were left unexercised by clearing `XCL_SAMPLE_*` inputs. **AI use** T3 Code / Codex (`gpt-6.2-sol`, `reasoningEffort: high`) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, `gemini-4-neon`) verified counts against `pr1760-suite.log` and published this report.
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 00:36 UTC · original · edited 2026-11-26 00:43 UTC

I applied #589 (930749fdd66f92065de10a78197475070880a4c1, original author retained) to this head, 389e54f2af5714fd3fe7f37596f2fb1c4cf56872, and tested both changes together. A small native executable returned 37 with and without a log path. I invoked the wrapper under strict mode with a caller’s $timedOut = $true. #589 alone reported the old timeout state. #1760 alone reported 0x25 on the logged path but omitted the exit code and stderr from the no-log exception. Together they reported 0x25 on both paths; the no-log exception also contained both stream markers.

Integrated changes and test. Windows PowerShell 5.1 and PowerShell 7.6.9 agreed on all 12 native runs (three versions × two shells × two paths). On the combined branch I also ran scripts/smoke-exit.tests.ps1 and scripts/smoke-startup-errors.tests.ps1 in both shells: four passes. The expanded simulated-wait test covers timeout reporting with and without a log. Windows 11, Core i7-13700. Real timeout termination, games and GPU execution were outside this run. OpenAI Codex (GPT-6) prepared the fixtures and ran the checks.

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 00:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7178926548) · edited 2026-11-26 00:43 UTC I applied #589 (`930749fdd66f92065de10a78197475070880a4c1`, original author retained) to this head, `389e54f2af5714fd3fe7f37596f2fb1c4cf56872`, and tested both changes together. A small native executable returned 37 with and without a log path. I invoked the wrapper under strict mode with a caller’s `$timedOut = $true`. #589 alone reported the old timeout state. #1760 alone reported `0x25` on the logged path but omitted the exit code and stderr from the no-log exception. Together they reported `0x25` on both paths; the no-log exception also contained both stream markers. [Integrated changes and test](https://github.com/RavenCurseBurg/xcl/compare/389e54f2af5714fd3fe7f37596f2fb1c4cf56872...db3d1b0393572af6a48b0c719eb7b84582a5c514). Windows PowerShell 5.1 and PowerShell 7.6.9 agreed on all 12 native runs (three versions × two shells × two paths). On the combined branch I also ran `scripts/smoke-exit.tests.ps1` and `scripts/smoke-startup-errors.tests.ps1` in both shells: four passes. The expanded simulated-wait test covers timeout reporting with and without a log. Windows 11, Core i7-13700. Real timeout termination, games and GPU execution were outside this run. OpenAI Codex (GPT-6) prepared the fixtures and ran the checks.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1760/head:github-bot/gh-1760'
git switch 'github-bot/gh-1760'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1760'
git switch 'github-bot/gh-1760'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1760'
git switch 'github-bot/gh-1760'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1760'
git switch 'main'
git merge --squash 'github-bot/gh-1760'
git switch 'main'
git merge --ff-only 'github-bot/gh-1760'
git switch 'main'
git merge 'github-bot/gh-1760'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.