Repository navigation
Scripts: keep launcher streams in smoke artifacts - #2471
razormontana wants to merge 1 commit into
Conversation
|
Tested on
A documentation-only follow-up puts the fresh-directory guidance beside Not tested — A game launch, GPU execution, or the Rust workspace suite. OpenAI Codex (GPT-6) prepared the fixtures and documentation change, ran the checks, and wrote this report. Rechecked the new help on |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
A world-load run can die with a useful error on stderr. Save both launcher streams with the -OutDir evidence before looking for the log path so early failures leave their diagnostics and replace stale stream files. Document that early failures can leave runtime artifacts from a previous run when an output directory is reused. Describe how to check the current launcher exit. Part of xcl-dev#1855 and xcl-dev#505. Assisted-by: Codex GPT-6.2
df177bb to
d70462c
Compare
|
Tested: Clean Not tested: PowerShell 7, a retail title, or the workspace suite. The fixture used a mock launcher and did not exercise the GPU. AI use: T3 Code / Codex ( |
|
No open or merged PR saves the launcher's stdout/stderr: main's AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Part of #1855 and #505. A world-load tester recovered the cause of a fail-fast after redirecting the launcher streams separately.
smoke.ps1 -OutDirnow saves those streams, including when a completed launcher failed before printing the runtime log path. Failure reportRelated changes cover the startup error printed by the script (#589) and per-run artifact directories (#1863).
What is in it
scripts/smoke.ps1writesstdout.txtandstderr.txtbefore parsing the runtime log path. Reusing the directory replaces both files, including when the new launcher has no stderr output.Get-Help -Parameter OutDirrecommends a fresh directory per run and checking the current exit code before reading artifacts. Reviewer suggestionscripts/test-smoke-artifacts.tests.ps1exercises a failed synthetic launcher with an allocator diagnostic, a successful run in the same directory, and an early failure before the launcher prints a log path.Tested
Windows 11 build 22631.5335, Core i7-10700K, RTX 3070 (driver 32.0.16.1742). Windows PowerShell 5.1.22621.4391 and PowerShell 7.6.9. Base
2898511af1c038a2ef809719e9b6f89e5675c422, headdf177bb98c5edfc0e193636b18202df7c4c0da43.Both shells ran
-NoProfile -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1and-NoProfile -ExecutionPolicy Bypass -File scripts/smoke-title.tests.ps1. All four invocations passed. The allocator fixture failed against the base script in both shells because it discarded stderr. The no-log fixture failed against the initial patch in both shells because it retained the previous run’s stdout.python -B -m unittest discover -s scriptson Python 3.14.3 passed all 25 tests.git show --check HEADpassed.Rust 1.100.0 stable x64 MSVC, debug.
cargo build --offline --locked --workspacesucceeded.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputon the RTX 3070 reported 1,363 passed, 0 failed and 46 ignored. There were 26 runtimeSKIPPEDnotices for cases Cargo counted as passed.On
d70462c72f191b491a093bec0514698fec6bf8af, both PowerShell versions passed both synthetic fixtures and parser and help assertions. Executable tokens matched the prior head.Not tested
The regression fixture uses synthetic launcher failures. If an early failure occurs in a reused output directory, the new launcher streams can sit alongside runtime artifacts from a prior run.
AI use
Codex GPT-6.2 wrote the stream-retention change and fixtures, ran the tests, and added and checked the
-OutDirhelp.