Scripts: keep launcher streams in smoke artifacts #2471

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

@⁠razormontana on GitHub · 2026-11-25 19:39 UTC · original
razormontana:scripts/retain-smoke-launcher-streams → main · +54 −7 · 2 files · 1 commits · open

Part of #1855 and #505. A world-load tester recovered the cause of a fail-fast after redirecting the launcher streams separately. smoke.ps1 -OutDir now saves those streams, including when a completed launcher failed before printing the runtime log path. Failure report

Related changes cover the startup error printed by the script (#589) and per-run artifact directories (#1863).

What is in it

  • scripts/smoke.ps1 writes stdout.txt and stderr.txt before parsing the runtime log path. Reusing the directory replaces both files, including when the new launcher has no stderr output.
  • scripts/test-smoke-artifacts.tests.ps1 exercises 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, head df177bb98c5edfc0e193636b18202df7c4c0da43.
  • Both shells ran -NoProfile -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1 and -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 scripts on Python 3.14.3 passed all 25 tests. git show --check HEAD passed.
  • Rust 1.100.0 stable x64 MSVC, debug. cargo build --offline --locked --workspace succeeded. cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output on the RTX 3070 reported 1,363 passed, 0 failed and 46 ignored. There were 26 runtime SKIPPED notices for cases Cargo counted as passed.

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

OpenAI Codex (GPT-6.2 Sol) implemented the script change, added the regression assertions, ran the local checks, and drafted this description.

OpenAI Codex (GPT-6.2) reviewed the changes, repeated the PowerShell checks and ran the full workspace suite.

**@⁠razormontana** on GitHub · 2026-11-25 19:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/2471) `razormontana:scripts/retain-smoke-launcher-streams` → `main` · +54 −7 · 2 files · 1 commits · open Part of #1855 and #505. A world-load tester recovered the cause of a fail-fast after redirecting the launcher streams separately. `smoke.ps1 -OutDir` now saves those streams, including when a completed launcher failed before printing the runtime log path. [Failure report](https://git.gtahub.st/github/xcl-dev--xcl/issues/1855) Related changes cover the startup error printed by the script (#589) and per-run artifact directories (#1863). **What is in it** - `scripts/smoke.ps1` writes `stdout.txt` and `stderr.txt` before parsing the runtime log path. Reusing the directory replaces both files, including when the new launcher has no stderr output. - `scripts/test-smoke-artifacts.tests.ps1` exercises 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`, head `df177bb98c5edfc0e193636b18202df7c4c0da43`. - Both shells ran `-NoProfile -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1` and `-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 scripts` on Python 3.14.3 passed all 25 tests. `git show --check HEAD` passed. - Rust 1.100.0 stable x64 MSVC, debug. `cargo build --offline --locked --workspace` succeeded. `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` on the RTX 3070 reported 1,363 passed, 0 failed and 46 ignored. There were 26 runtime `SKIPPED` notices for cases Cargo counted as passed. **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** OpenAI Codex (GPT-6.2 Sol) implemented the script change, added the regression assertions, ran the local checks, and drafted this description. OpenAI Codex (GPT-6.2) reviewed the changes, repeated the PowerShell checks and ran the full workspace suite.
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 any stale output.

Part of #1855 and #505.

Assisted-by: OpenAI Codex (GPT-6.2 Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:31:31 +00:00
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 20:05 UTC · original · edited 2026-11-25 20:14 UTC

Tested on df177bb98c5edfc0e193636b18202df7c4c0da43. Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9.

  • I ran scripts/smoke.ps1 -Game ok -Seconds 1 -Xcl <fixture.exe> -OutDir <out> -Title ok with a small native console fixture. It wrote 8,192 repetitions of out-漢-🚀\r\n\n and err-é-Ω\n\r\n to the two pipes concurrently, then a valid Log: 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.
  • I repeated the command with a fixture that printed no log path and exited 37. In the reused directory both stream files contained the new diagnostics. The previous successful run’s manifest.json (still reporting 0x0), xcl.log, and report.json remained byte-for-byte unchanged. In a fresh directory only stdout.txt and stderr.txt appeared. All three scenarios passed in each shell.
  • Both shells also ran -NoProfile -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1 and -File scripts/smoke-title.tests.ps1. All four invocations passed.

A documentation-only follow-up puts the fresh-directory guidance beside -OutDir in 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.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 20:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2471#issuecomment-7173173416) · edited 2026-11-25 20:14 UTC **Tested** on `df177bb98c5edfc0e193636b18202df7c4c0da43`. Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9. - I ran `scripts/smoke.ps1 -Game ok -Seconds 1 -Xcl <fixture.exe> -OutDir <out> -Title ok` with a small native console fixture. It wrote 8,192 repetitions of `out-漢-🚀\r\n\n` and `err-é-Ω\n\r\n` to the two pipes concurrently, then a valid `Log:` 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. - I repeated the command with a fixture that printed no log path and exited 37. In the reused directory both stream files contained the new diagnostics. The previous successful run’s `manifest.json` (still reporting `0x0`), `xcl.log`, and `report.json` remained byte-for-byte unchanged. In a fresh directory only `stdout.txt` and `stderr.txt` appeared. All three scenarios passed in each shell. - Both shells also ran `-NoProfile -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1` and `-File scripts/smoke-title.tests.ps1`. All four invocations passed. A [documentation-only follow-up](https://github.com/RavenCurseBurg/xcl/commit/9eaf8e58aab29e8cd130e7331d1d8040dcb732d1) puts the fresh-directory guidance beside `-OutDir` in 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 20:22 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 20:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/2471#issuecomment-7173564052) 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!
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/2471/head:github-bot/gh-2471'
git switch 'github-bot/gh-2471'

Merge

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