Skip to content

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

Open
luna020924 wants to merge 1 commit into
xcl-dev:mainfrom
luna020924:smoke-startup-errors
Open

luna020924 wants to merge 1 commit into
xcl-dev:mainfrom
luna020924:smoke-startup-errors

Conversation

@luna020924

@luna020924 luna020924 commented Nov 24, 2026 •

Copy link
Copy Markdown

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.
@luna020924
luna020924 marked this pull request as ready for review November 24, 2026 02:12
@futurepro62

Copy link
Copy Markdown

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.

@mdberkey mdberkey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reproduced this on 930749f (Windows 11 Pro 26200, Ryzen 5 5600X, 32 GB, RTX 3070, Windows PowerShell 5.1):

  • scripts\smoke-startup-errors.tests.ps1: passed (exit 0).
  • Control against 9ce2070's smoke.ps1: fails as expected — XCL printed no log path; its output: synthetic startup output, missing both the exit code and stderr. The test does catch the bug.
  • cargo build --locked --workspace --jobs 3: passed (1m 11s; one pre-existing fetch_update deprecation warning in xgameruntime).
  • cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output: 684 passed, 0 failed, 41 ignored. Skipped: 2 no wave64, 1 no d3d12SDKLayers.dll, 1 no D3D12 debug layer.

AI use: OpenCode (DeepSeek V4.1 Flash Free) ran the commands and drafted this; I checked it before posting.

@raylitebull

Copy link
Copy Markdown
Member

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.

@JJAutoCompare

Copy link
Copy Markdown

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.

@luckyteagirl

Copy link
Copy Markdown
Contributor

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.

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

Copy link
Copy Markdown
Contributor

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

Thanks!

@RavenCurseBurg

RavenCurseBurg commented Nov 26, 2026 •

Copy link
Copy Markdown

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.

@github-actions

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 Nov 29, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 930749f

No open or merged PR makes the same change: main still throws XCL printed no log path with stdout only. #2471 saves stderr into -OutDir artifacts and #1270 changes the same throw for killed runs, but neither adds the exit code and stderr to this error.
No problems found in the diff.
Recommendation: keep open.

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

@github-actions github-actions Bot removed the stale No activity for 3 days; closed 4 days later unless something happens label Dec 2, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants