Scripts: show why a smoke run exits before writing a log #589

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

@⁠luna020924 on GitHub · 2026-11-24 02:12 UTC · original
luna020924:smoke-startup-errors → main · +34 −2 · 2 files · 1 commits · open

When XCL exits before printing Log:, smoke.ps1 omits the stderr message and exit code. That hides startup errors such as an invalid xcl.toml. Include both output streams and the child exit code in the failure message.

What is in it

  • scripts/smoke.ps1 reports early launcher failures. The regression test uses a stand-in that exits with code 2 after writing to stdout and stderr.

Tested

  • Windows 11 build 26200, Ryzen 7 2700X, GeForce RTX 5060 Ti 16 GB (driver 610.88), rustc 1.100.0 MSVC x64 and DXC 1.9.2609.5. Debug build in the Windows login session.
  • scripts\smoke-startup-errors.tests.ps1 failed against the 9ce2070 smoke script and passed at 930749f in Windows PowerShell 5.1.26100.8875 and PowerShell 7.7.0. The old wrapper omits the exit code and stderr. The PR head reports both and retains stdout.
  • cargo build --locked --workspace --jobs 3 passed on 9ce2070 and 930749f.
  • cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output reported 684 passed, 0 failed and 41 ignored on both 9ce2070 and 930749f.
  • SKIPPED on both revisions: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no native wave64). libtest includes both in the passed count.

Regression run

  • Script-only change.

Not tested

  • Retail titles, optional game samples, or AMD GPUs.

AI use

  • OpenAI Codex (GPT-6.2 Sol) wrote the fix, regression test and description and ran the checks.
**@⁠luna020924** on GitHub · 2026-11-24 02:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/589) `luna020924:smoke-startup-errors` → `main` · +34 −2 · 2 files · 1 commits · open When XCL exits before printing `Log:`, `smoke.ps1` omits the stderr message and exit code. That hides startup errors such as an invalid `xcl.toml`. Include both output streams and the child exit code in the failure message. **What is in it** - `scripts/smoke.ps1` reports early launcher failures. The regression test uses a stand-in that exits with code 2 after writing to stdout and stderr. **Tested** - Windows 11 build 26200, Ryzen 7 2700X, GeForce RTX 5060 Ti 16 GB (driver 610.88), rustc 1.100.0 MSVC x64 and DXC 1.9.2609.5. Debug build in the Windows login session. - `scripts\smoke-startup-errors.tests.ps1` failed against the `9ce2070` smoke script and passed at `930749f` in Windows PowerShell 5.1.26100.8875 and PowerShell 7.7.0. The old wrapper omits the exit code and stderr. The PR head reports both and retains stdout. - `cargo build --locked --workspace --jobs 3` passed on `9ce2070` and `930749f`. - `cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output` reported 684 passed, 0 failed and 41 ignored on both `9ce2070` and `930749f`. - `SKIPPED` on both revisions: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no native wave64). libtest includes both in the passed count. **Regression run** - Script-only change. **Not tested** - Retail titles, optional game samples, or AMD GPUs. **AI use** - OpenAI Codex (GPT-6.2 Sol) wrote the fix, regression test and description and ran the checks.
The launcher writes startup errors to stderr. Include both output streams and the child exit code when no log path is printed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:31 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 02:32 UTC · original

Tested exact head 930749f.

Tested

  • Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 on this machine).
  • powershell -NoProfile -File scripts/smoke-startup-errors.tests.ps1 on 930749f: passed (exit 0): Passed: early failure reports the exit code, stdout and stderr.
  • Control: the same test file against scripts/smoke.ps1 of the parent commit 9ce2070: fails (exit 1) with Expected 'exit: 0x2' in the failure diagnostic. Got 'XCL printed no log path; its output: synthetic startup output '. So the test catches what the PR fixes.
  • scripts/test-native-stderr.tests.ps1 on 930749f: passed.

Not tested

  • PowerShell 7 (pwsh), a real scripts/smoke.ps1 run on a title (no title on this machine), the Rust suite (the PR changes no Rust).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and the control and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 02:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/589#issuecomment-7120241719) Tested exact head `930749f`. **Tested** - Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 on this machine). - `powershell -NoProfile -File scripts/smoke-startup-errors.tests.ps1` on `930749f`: passed (exit 0): `Passed: early failure reports the exit code, stdout and stderr.` - Control: the same test file against `scripts/smoke.ps1` of the parent commit `9ce2070`: fails (exit 1) with `Expected 'exit: 0x2' in the failure diagnostic. Got 'XCL printed no log path; its output: synthetic startup output '`. So the test catches what the PR fixes. - `scripts/test-native-stderr.tests.ps1` on `930749f`: passed. **Not tested** - PowerShell 7 (`pwsh`), a real `scripts/smoke.ps1` run on a title (no title on this machine), the Rust suite (the PR changes no Rust). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and the control and wrote this report. I checked it before posting.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 00:56 UTC · original

Diff check on 930749f:

  • Reporting the exit code, stdout, and stderr when smoke.ps1 exits before printing a log path makes early startup failures immediately diagnosable, and scripts/smoke-startup-errors.tests.ps1 covers it cleanly.
  • Already approved (mdberkey) and verified, with PR description passing.

Next step to unblock merge: Please rebase onto current main so CI runs Build and test (Windows, no GPU) on the head.

**@⁠raylitebull** on GitHub · 2026-11-25 00:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/589#issuecomment-7149052375) Diff check on `930749f`: - Reporting the exit code, stdout, and stderr when `smoke.ps1` exits before printing a log path makes early startup failures immediately diagnosable, and `scripts/smoke-startup-errors.tests.ps1` covers it cleanly. - Already approved (`mdberkey`) and verified, with `PR description` passing. **Next step to unblock merge:** Please rebase onto current `main` so CI runs `Build and test (Windows, no GPU)` on the head.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 02:19 UTC · original

PR #589 verification

PR head 930749fdd66f92065de10a78197475070880a4c1, fetched from origin via refs/pull/589/head and tested in a clean detached worktree. origin/main was aaa093657bd96a146c05c0c1a9b61149fe761453. git merge-tree --write-tree origin/main HEAD exited 0 and returned tree 4c4a3997c6c05044e469e652f06f76cbeacaa48d. The merge was checked without changing the checkout.

What is in it

  • scripts/smoke.ps1 includes the exit status and both output streams when XCL exits before emitting a log path. scripts/smoke-startup-errors.tests.ps1 exercises that case.

Tested

  • STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175, DoublePrecisionFloatShaderOps=0, waves 8–32. Host details supplied by the coordinator. Rust 1.100.0 (0ef1bc386 2026-11-09) from rustc -V. DXC and DXIL 1.9.2609.5. Unoptimized dev and test profiles with debug info disabled.
  • Outside the GPU lock, scripts/smoke.ps1 -Game <fixture> -Seconds 1 -Xcl <fixture>\xcl.cmd passed the four assertions from scripts/smoke-startup-errors.tests.ps1. The stand-in exited with code 2 before printing a log path. The exception included XCL printed no log path, exit: 0x2, synthetic startup output, and xcl: synthetic startup failure. The fixture used the same script body and assertions with nonrecursive cleanup. Diagnostic saved in pr589-fixture.log.
  • cargo build --workspace and cargo test --workspace --no-run both exited 0 outside the GPU lock.
  • One pass of cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output via L:\XclTooling\Invoke-ArcTest.ps1 exited 101. Cargo reported 667 passed, 17 failed, 41 ignored across 16 target summaries. The pass total includes the five SKIPPED markers below. Those five provide no coverage for their skipped cases. Full output is in L:\XclTooling\neon-slot-1\tmp\pr589-suite.log.

Failures reported by -p xcl --lib (16) and -p xcl --test e2e (1)

  • concurrent_cache_misses_compile_once reported a cached-only wait of 308.9539 ms.
  • CreateComputePipelineState returned 0x80070057 in eleven tests. The tests were gpu_clamp_and_omod_per_instruction, gpu_f64_compares_with_nan, gpu_f64_literal_high_word, gpu_f64_class_compare, gpu_f64_math_random, gpu_f64_roots, gpu_f64_rounding_and_conversions, gpu_frexp_f64_exp_and_mant, gpu_ldexp_f64, gpu_rndne_f64, and gpu_float_compares_random.
  • gpu_nonfused_mad_and_mac_prevent_fma_contraction, gpu_ps_image_sample_offset_implicit_lod_between_mips, gpu_valu_16_and_64_bit, and gpu_wave64_ps_whole_wave_reductions reported output mismatches.
  • test_title_runs_and_game_folder_is_untouched reported that the dynamic RSSetDepthBiasX check drew blue where it expected green.
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

Not tested

  • Suite on main, failure reproduction on another adapter, and a retail-title smoke run. The PR changes only PowerShell scripts.
  • Sample-backed cases for XCL_SAMPLE_RPF, XCL_SAMPLE_DLLS, XCL_SAMPLE_TTPF, XCL_SAMPLE_BK2, XCL_SAMPLE_BVH4, XCL_SAMPLE_AWC, XCL_SAMPLE_XG, and XCL_SAMPLE_DXC. These variables were unset.

AI use

  • T3 Code / Codex (gpt-6.2-sol) ran the build and tests and drafted this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against pr589-suite.log and published this report.
**@⁠JJAutoCompare** on GitHub · 2026-11-25 02:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/589#issuecomment-7150575114) # PR #589 verification PR head `930749fdd66f92065de10a78197475070880a4c1`, fetched from `origin` via `refs/pull/589/head` and tested in a clean detached worktree. `origin/main` was `aaa093657bd96a146c05c0c1a9b61149fe761453`. `git merge-tree --write-tree origin/main HEAD` exited 0 and returned tree `4c4a3997c6c05044e469e652f06f76cbeacaa48d`. The merge was checked without changing the checkout. **What is in it** - `scripts/smoke.ps1` includes the exit status and both output streams when XCL exits before emitting a log path. `scripts/smoke-startup-errors.tests.ps1` exercises that case. **Tested** - STOR-WINLAB, Windows 11 Enterprise Evaluation build `26200.9974`, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB with driver `32.0.101.9175`, `DoublePrecisionFloatShaderOps=0`, waves `8–32`. Host details supplied by the coordinator. Rust `1.100.0 (0ef1bc386 2026-11-09)` from `rustc -V`. DXC and DXIL `1.9.2609.5`. Unoptimized dev and test profiles with debug info disabled. - Outside the GPU lock, `scripts/smoke.ps1 -Game <fixture> -Seconds 1 -Xcl <fixture>\xcl.cmd` passed the four assertions from `scripts/smoke-startup-errors.tests.ps1`. The stand-in exited with code 2 before printing a log path. The exception included `XCL printed no log path`, `exit: 0x2`, `synthetic startup output`, and `xcl: synthetic startup failure`. The fixture used the same script body and assertions with nonrecursive cleanup. Diagnostic saved in `pr589-fixture.log`. - `cargo build --workspace` and `cargo test --workspace --no-run` both exited 0 outside the GPU lock. - One pass of `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` via `L:\XclTooling\Invoke-ArcTest.ps1` exited 101. Cargo reported **667 passed, 17 failed, 41 ignored** across 16 target summaries. The pass total includes the five `SKIPPED` markers below. Those five provide no coverage for their skipped cases. Full output is in `L:\XclTooling\neon-slot-1\tmp\pr589-suite.log`. Failures reported by `-p xcl --lib` (16) and `-p xcl --test e2e` (1) - `concurrent_cache_misses_compile_once` reported a cached-only wait of 308.9539 ms. - `CreateComputePipelineState` returned `0x80070057` in eleven tests. The tests were `gpu_clamp_and_omod_per_instruction`, `gpu_f64_compares_with_nan`, `gpu_f64_literal_high_word`, `gpu_f64_class_compare`, `gpu_f64_math_random`, `gpu_f64_roots`, `gpu_f64_rounding_and_conversions`, `gpu_frexp_f64_exp_and_mant`, `gpu_ldexp_f64`, `gpu_rndne_f64`, and `gpu_float_compares_random`. - `gpu_nonfused_mad_and_mac_prevent_fma_contraction`, `gpu_ps_image_sample_offset_implicit_lod_between_mips`, `gpu_valu_16_and_64_bit`, and `gpu_wave64_ps_whole_wave_reductions` reported output mismatches. - `test_title_runs_and_game_folder_is_untouched` reported that the dynamic `RSSetDepthBiasX` check drew blue where it expected green. ```text SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2 SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) ``` **Not tested** - Suite on `main`, failure reproduction on another adapter, and a retail-title smoke run. The PR changes only PowerShell scripts. - Sample-backed cases for `XCL_SAMPLE_RPF`, `XCL_SAMPLE_DLLS`, `XCL_SAMPLE_TTPF`, `XCL_SAMPLE_BK2`, `XCL_SAMPLE_BVH4`, `XCL_SAMPLE_AWC`, `XCL_SAMPLE_XG`, and `XCL_SAMPLE_DXC`. These variables were unset. **AI use** - T3 Code / Codex (`gpt-6.2-sol`) ran the build and tests and drafted this report. Coordinator #2 (T3 Code / Antigravity, `gemini-4-neon`) verified the counts against `pr589-suite.log` and published this report.
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-25 03:21 UTC · original

Tested

  • Exact PR head 930749fdd66f92065de10a78197475070880a4c1 on Windows 11 build 26200 with Windows PowerShell 5.1. This is a script-only change; the RX 6800M GPU was not exercised.
  • powershell -NoProfile -ExecutionPolicy Bypass -File scripts\smoke-startup-errors.tests.ps1: 1 script test passed, 0 failed. A mock launcher exited with code 2 before printing a log path; the failure diagnostic contained the exit code, stdout, and stderr.
  • python -m pytest scripts collected 0 tests on this older PR base, so it provides no additional verification here.

Not tested

  • A real XCL startup failure, retail title smoke, the Rust workspace suite, or PowerShell 7. No game files were used or uploaded.

AI use

OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the startup-error test, checked its output, and drafted this report.

**@⁠luckyteagirl** on GitHub · 2026-11-25 03:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/589#issuecomment-7151844383) **Tested** - Exact PR head `930749fdd66f92065de10a78197475070880a4c1` on Windows 11 build 26200 with Windows PowerShell 5.1. This is a script-only change; the RX 6800M GPU was not exercised. - `powershell -NoProfile -ExecutionPolicy Bypass -File scripts\smoke-startup-errors.tests.ps1`: **1 script test passed, 0 failed**. A mock launcher exited with code 2 before printing a log path; the failure diagnostic contained the exit code, stdout, and stderr. - `python -m pytest scripts` collected **0 tests** on this older PR base, so it provides no additional verification here. **Not tested** - A real XCL startup failure, retail title smoke, the Rust workspace suite, or PowerShell 7. No game files were used or uploaded. **AI use** OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the startup-error test, checked its output, and drafted this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:06 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!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/589#issuecomment-7163311521) 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!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 00:06 UTC · original · edited 2026-11-26 00:13 UTC

I merged 930749fdd66f92065de10a78197475070880a4c1 and #2471 at df177bb98c5edfc0e193636b18202df7c4c0da43 locally. The two edits to scripts/smoke.ps1 merged cleanly. Combined branch and integration assertion, compared with #2471.

A native stand-in emitted one line on stdout, another on stderr and exited 37 without a log path. The exception included 0x25 and both diagnostics. In a fresh -OutDir, the two stream files matched the child output including CRLF, and no manifest was created. The same fixture then ran a successful child with a log and recorded exit 0. The new assertion failed against #2471 alone, which omitted the exit code in the exception.

I ran scripts/smoke-startup-errors.tests.ps1, scripts/test-smoke-artifacts.tests.ps1, and scripts/smoke-title.tests.ps1 with -NoProfile -NonInteractive -ExecutionPolicy Bypass -File in Windows PowerShell 5.1 and PowerShell 7.6.9: six passes. Windows 11, Core i7-13700. Existing fixture coverage includes Windows adapter-name lookup. No real XCL binary, game, Rust build or GPU execution. OpenAI Codex (GPT-6) added the integration assertion and ran the tests.

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 00:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/589#issuecomment-7178404678) · edited 2026-11-26 00:13 UTC I merged `930749fdd66f92065de10a78197475070880a4c1` and #2471 at `df177bb98c5edfc0e193636b18202df7c4c0da43` locally. The two edits to `scripts/smoke.ps1` merged cleanly. [Combined branch and integration assertion, compared with #2471](https://github.com/RavenCurseBurg/xcl/compare/df177bb98c5edfc0e193636b18202df7c4c0da43...6db8a4923c1bf3d7fc822724d727c71daba166ce). A native stand-in emitted one line on stdout, another on stderr and exited 37 without a log path. The exception included `0x25` and both diagnostics. In a fresh `-OutDir`, the two stream files matched the child output including CRLF, and no manifest was created. The same fixture then ran a successful child with a log and recorded exit 0. The new assertion failed against #2471 alone, which omitted the exit code in the exception. I ran `scripts/smoke-startup-errors.tests.ps1`, `scripts/test-smoke-artifacts.tests.ps1`, and `scripts/smoke-title.tests.ps1` with `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File` in Windows PowerShell 5.1 and PowerShell 7.6.9: six passes. Windows 11, Core i7-13700. Existing fixture coverage includes Windows adapter-name lookup. No real XCL binary, game, Rust build or GPU execution. OpenAI Codex (GPT-6) added the integration assertion and ran the tests.
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/589/head:github-bot/gh-589'
git switch 'github-bot/gh-589'

Merge

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