Scripts: keep launcher streams in smoke artifacts #2471
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2471
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@razormontana on GitHub · 2026-11-25 19:39 UTC · original
razormontana:scripts/retain-smoke-launcher-streams→main· +54 −7 · 2 files · 1 commits · openPart 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.scripts/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
2898511af1c038a2ef809719e9b6f89e5675c422, headdf177bb98c5edfc0e193636b18202df7c4c0da43.-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.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.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.
@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.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.
@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!
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.