Skip to content

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

Open
NemesisDawn wants to merge 1 commit into
xcl-dev:mainfrom
NemesisDawn:fix/smoke-timeout-status
Open

NemesisDawn wants to merge 1 commit into
xcl-dev:mainfrom
NemesisDawn:fix/smoke-timeout-status

Conversation

@NemesisDawn

@NemesisDawn NemesisDawn commented Nov 24, 2026 •

Copy link
Copy Markdown

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)
@futurepro62

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown

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.

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@RavenCurseBurg

RavenCurseBurg commented Nov 26, 2026 •

Copy link
Copy Markdown

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.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Dec 1, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants