Scripts: keep launcher streams in smoke artifacts #2461
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2471"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T19:39:20Z.
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.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T20:05:18Z.
Tested on
df177bb98c5edfc0e193636b18202df7c4c0da43. Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9.scripts/smoke.ps1 -Game ok -Seconds 1 -Xcl <fixture.exe> -OutDir <out> -Title okwith a small native console fixture. It wrote 8,192 repetitions ofout-漢-🚀\r\n\nanderr-é-Ω\n\r\nto the two pipes concurrently, then a validLog:line on stdout and distinct tails without newlines. Both shells preserved the complete text, including blank lines and tails. Stdout exceeded 122 KB and stderr was 98,312 bytes before any BOM. Windows PowerShell added a UTF-8 BOM to both files. PowerShell 7 did not.manifest.json(still reporting0x0),xcl.log, andreport.jsonremained byte-for-byte unchanged. In a fresh directory onlystdout.txtandstderr.txtappeared. All three scenarios passed in each shell.-NoProfile -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1and-File scripts/smoke-title.tests.ps1. All four invocations passed.A documentation-only follow-up puts the fresh-directory guidance beside
-OutDirin the script help.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
d70462c72f191b491a093bec0514698fec6bf8af. In Windows PowerShell 5.1 and PowerShell 7.6.9,Get-Help .\scripts\smoke.ps1 -Parameter OutDirdisplayed the fresh-directory recommendation and named the artifacts that can remain from an earlier run. With a native stand-in, I ranscripts/smoke.ps1 -Game <fixture> -Seconds 1 -Xcl <probe> -Title fixture -OutDir <dir>, first successfully and then with an early exit before a log path. The reused directory contained both new streams and three byte-identical prior artifacts; the fresh directory contained exactly the two new streams. Both shells also passedscripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1(four invocations). Windows 11 build 26100, Core i7-13700. OpenAI Codex (GPT-6) ran the fixtures; no retail title or GPU workload was used.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:22:02Z.
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!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-26T23:27:45Z.
Tested: Clean
d70462c72f191b491a093bec0514698fec6bf8af, Windows 11 25H2 build 26200.9974, Windows PowerShell 5.1.26100.9818.powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-smoke-artifacts.tests.ps1exited 0 with all assertions passed, including saving the launcher streams on early failure and replacing old stream artifacts when reusing an output directory.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 (
gpt-6.2-sol) ran the test and wrote this report.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:08:24Z.
Triage (#1607) – head
d70462cNo open or merged PR saves the launcher's stdout/stderr: main's
smoke.ps1reads stderr and discards it ($null = $stderrTask.Result). #1863 (a separate-ArtifactsDirwith per-run folders) and #2980 (-Repeat) change the artifacts in other ways and do not keep the streams.The PR writes
stdout.txt/stderr.txtbefore theLog:check, so a launcher that fails early still leaves them, and the test covers a failing exit code, a reused directory and a run without a log path. No problems found in the diff. The branch conflicts with main and needs a rebase.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.