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

Open
NemesisDawn wants to merge 1 commit from upstream-pr/1760 into main
NemesisDawn commented 2026-11-24 20:18:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by NemesisDawn on 2026-11-24T20:18:23Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5479648738 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760). Originally posted by [NemesisDawn](https://github.com/NemesisDawn) on 2026-11-24T20:18:23Z. --- 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.
futurepro62 commented 2026-11-24 21:29:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:14:41Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7144670841 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7144670841). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T21:14:41Z. --- 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.
DavidM1911 commented 2026-11-25 00:08:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:14:19Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7147172380 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7147172380). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T23:14:19Z. --- 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!
JJAutoCompare commented 2026-11-25 04:10:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:43:41Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7152186163 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7152186163). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:43:41Z. --- # 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.
RavenCurseBurg commented 2026-11-26 01:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T00:36:11Z.


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.

The PR head 389e54f2af57 now conflicts with main 8b957bec6f82. Merge candidate a4458094e has those two commits as parents, so the current PR branch can fast-forward to it.

The resolution uses Seconds + StartupTimeoutSeconds for the wait and derives timedOut from its return value. The process fixture checked 180,000 ms with defaults and 4,000 ms for a one-second run with three seconds of startup time. It also checked a successful exit with an inherited timeout variable and the simulated timeout/kill case. scripts/smoke-exit.tests.ps1, scripts/smoke-title.tests.ps1 and scripts/test-smoke-artifacts.tests.ps1 each passed in Windows PowerShell 5.1 and PowerShell 7.6.9 (six runs).

Windows 11 build 26100, Core i7-13700. OpenAI Codex (GPT-6) resolved the conflict and ran the checks. No game files or GPU workloads were used.

<!-- greyfinch-sync:ivall/xcl:comment:7178926548 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7178926548). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T00:36:11Z. --- 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. The PR head `389e54f2af57` now conflicts with main `8b957bec6f82`. [Merge candidate `a4458094e`](https://github.com/RavenCurseBurg/xcl/commit/a4458094ed3ba564eebfdfce4fea5224bec1dc56) has those two commits as parents, so the current PR branch can fast-forward to it. The resolution uses `Seconds + StartupTimeoutSeconds` for the wait and derives `timedOut` from its return value. The process fixture checked 180,000 ms with defaults and 4,000 ms for a one-second run with three seconds of startup time. It also checked a successful exit with an inherited timeout variable and the simulated timeout/kill case. `scripts/smoke-exit.tests.ps1`, `scripts/smoke-title.tests.ps1` and `scripts/test-smoke-artifacts.tests.ps1` each passed in Windows PowerShell 5.1 and PowerShell 7.6.9 (six runs). Windows 11 build 26100, Core i7-13700. OpenAI Codex (GPT-6) resolved the conflict and ran the checks. No game files or GPU workloads were used.
github-actions[bot] commented 2026-12-01 02:34:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:49Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298768055 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7298768055). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:34:49Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 06:41:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:41:26Z.


Triage (#1607) – head 389e54f

No open or merged PR makes the same change; on main smoke.ps1 still sets $timedOut only on a timeout, so a value from the calling scope leaks in and strict mode fails on a normal exit.
The PR conflicts with main, where the wait now uses $Seconds + $StartupTimeoutSeconds; the rebase should keep that. The test mocks git and New-Object, so it depends on how smoke.ps1 calls them and needs rechecking after the rebase.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303159944 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1760#issuecomment-7303159944). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:41:26Z. --- **Triage (#1607)** – head 389e54f No open or merged PR makes the same change; on main `smoke.ps1` still sets `$timedOut` only on a timeout, so a value from the calling scope leaks in and strict mode fails on a normal exit. The PR conflicts with main, where the wait now uses `$Seconds + $StartupTimeoutSeconds`; the rebase should keep that. The test mocks `git` and `New-Object`, so it depends on how `smoke.ps1` calls them and needs rechecking after the rebase. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1760:upstream-pr/1760'
git switch 'upstream-pr/1760'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1760'
git switch 'upstream-pr/1760'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1760'
git switch 'upstream-pr/1760'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1760'
git switch 'main'
git merge --squash 'upstream-pr/1760'
git switch 'main'
git merge --ff-only 'upstream-pr/1760'
git switch 'main'
git merge 'upstream-pr/1760'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
xcl-dev/xcl!1750
No description provided.