Scripts: keep artifacts for reproducible world-entry smoke runs #1855

Open
opened 2026-11-26 05:07:23 +00:00 by github-bot · 2 comments
Owner

@⁠MiguelMachado-dev on GitHub · 2026-11-24 21:56 UTC · original

Part of #505 and the world-load goal in #1833. A smoke run can report healthy frame counts while the title stays on a loading screen. Logs and reports also rotate, so they are easy to lose when comparing several builds.

I propose an opt-in output directory for scripts/smoke.ps1. Each invocation would save the log, report.json if produced, and a manifest with the build commit, GPU, duration, input schedule and XCL cache state. The existing xcl-smoke v1 output stays the same.

The docs would show how to run both builds from the same local checkpoint using XCL_PRESS_AT and separate data and DXIL cache roots. Run each build once with a fresh XCL cache and once with its seeded cache. Record the last visually confirmed scene milestone in a separate capture run.

The script test would use a synthetic launcher to verify that two runs keep separate artifacts and that a missing report still preserves the log. Artifacts stay local and outside the repository.

Related: #284 documents cold/warm differences, #717 tracks the black-screen check, and #1591 covers attribution for an external binary.

**@⁠MiguelMachado-dev** on GitHub · 2026-11-24 21:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/1855) Part of #505 and the world-load goal in #1833. A smoke run can report healthy frame counts while the title stays on a loading screen. Logs and reports also rotate, so they are easy to lose when comparing several builds. I propose an opt-in output directory for `scripts/smoke.ps1`. Each invocation would save the log, `report.json` if produced, and a manifest with the build commit, GPU, duration, input schedule and XCL cache state. The existing `xcl-smoke v1` output stays the same. The docs would show how to run both builds from the same local checkpoint using `XCL_PRESS_AT` and separate data and DXIL cache roots. Run each build once with a fresh XCL cache and once with its seeded cache. Record the last visually confirmed scene milestone in a separate capture run. The script test would use a synthetic launcher to verify that two runs keep separate artifacts and that a missing report still preserves the log. Artifacts stay local and outside the repository. Related: #284 documents cold/warm differences, #717 tracks the black-screen check, and #1591 covers attribution for an external binary.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:07:23 +00:00
Author
Owner

@⁠tugasky on GitHub · 2026-11-25 00:03 UTC · original

Seconding, from a night of doing this by hand — and the two failures it would have caught

I spent an evening comparing capped runs of the retail title by eye, and two things went wrong that this issue's manifest and artifacts would have caught on the first attempt.

The run's stderr was not being kept at all. My wrapper started the host with -WindowStyle Hidden and no redirection, so everything XCL wrote to stderr went nowhere. That includes the one line that explained a 0xC0000409 I had blamed on the title for four runs:

memory allocation of 18220 bytes failed

Once the child's stdout and stderr went to guard\child-<stamp>.out and .err, the cause — Rust's abort() on a refused allocation in XCL's own heap, because the commit cap is a job-object limit over the whole process — was one Select-String away. A run directory that keeps the child's streams is the difference between "unexplained fail-fast" and "root cause in one line".

The guard's own kill switch was measured against the wrong process. -KillAtMB was checked against the launcher xcl run itself — a few MB, while the host it starts is where the commit goes — so the threshold never armed, and every run I had done with that flag was a run without a ceiling. Sorting the xcl processes by commit and sampling the largest is what made the numbers reproducible (commit 32 768 MB at the cap, from 26 s to the abort at 40.4 s).

On the manifest, the fields that decided every comparison I made: the build (which I could not get — the log's first line is XCL 0.1.0 – host for '<title id>', no commit; the base commit had to be recorded by hand, and #1591 is the same gap for the smoke executable), the exact XCL_* environment, the input schedule with its timing, the run timeout, and the host's peak commit. Two runs that differed only in XCL_TITLE_COMMIT_CAP_MB reached opposite verdicts on the same binary — one exit 0 at 420 s, one 0x80000003 at 188.9 s — and nothing in a plain log records which cap was in force.

One caution for the report artifact: the title's own dumps contain the process environment block (#702), so whatever the smoke directory keeps should be XCL's log and report.json, not the title's crash payload.

Written by Claude (Anthropic) under my review; numbers from runs on my machine, no game data included.

**@⁠tugasky** on GitHub · 2026-11-25 00:03 UTC · [original](https://github.com/xcl-dev/xcl/issues/1855#issuecomment-7148099281) ### Seconding, from a night of doing this by hand — and the two failures it would have caught I spent an evening comparing capped runs of the retail title by eye, and two things went wrong that this issue's manifest and artifacts would have caught on the first attempt. **The run's stderr was not being kept at all.** My wrapper started the host with `-WindowStyle Hidden` and no redirection, so everything XCL wrote to stderr went nowhere. That includes the one line that explained a `0xC0000409` I had blamed on the title for four runs: ``` memory allocation of 18220 bytes failed ``` Once the child's stdout and stderr went to `guard\child-<stamp>.out` and `.err`, the cause — Rust's `abort()` on a refused allocation in XCL's own heap, because the commit cap is a job-object limit over the whole process — was one `Select-String` away. A run directory that keeps the child's streams is the difference between "unexplained fail-fast" and "root cause in one line". **The guard's own kill switch was measured against the wrong process.** `-KillAtMB` was checked against the launcher `xcl run` itself — a few MB, while the host it starts is where the commit goes — so the threshold never armed, and every run I had done with that flag was a run without a ceiling. Sorting the `xcl` processes by commit and sampling the largest is what made the numbers reproducible (`commit 32 768 MB` at the cap, from 26 s to the abort at 40.4 s). **On the manifest**, the fields that decided every comparison I made: the build (which I could not get — the log's first line is `XCL 0.1.0 – host for '<title id>'`, no commit; the base commit had to be recorded by hand, and #1591 is the same gap for the smoke executable), the exact `XCL_*` environment, the input schedule with its timing, the run timeout, and the host's peak commit. Two runs that differed only in `XCL_TITLE_COMMIT_CAP_MB` reached opposite verdicts on the same binary — one exit 0 at 420 s, one `0x80000003` at 188.9 s — and nothing in a plain log records which cap was in force. One caution for the report artifact: the title's own dumps contain the process environment block (#702), so whatever the smoke directory keeps should be XCL's log and `report.json`, not the title's crash payload. Written by Claude (Anthropic) under my review; numbers from runs on my machine, no game data included.
Author
Owner

@⁠razormontana on GitHub · 2026-11-25 19:09 UTC · original

I'm taking launcher stdout and stderr for the existing smoke.ps1 -OutDir artifacts. The allocator failure reported in this issue shows how those streams help diagnose #505. I'll test a failed launch and verify that the next run replaces both files when the output directory is reused.

Assisted by Codex (GPT-6.2 and GPT-6.2 Sol).

**@⁠razormontana** on GitHub · 2026-11-25 19:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/1855#issuecomment-7171896145) I'm taking launcher stdout and stderr for the existing `smoke.ps1 -OutDir` artifacts. The allocator failure reported in this issue shows how those streams help diagnose #505. I'll test a failed launch and verify that the next run replaces both files when the output directory is reused. Assisted by Codex (GPT-6.2 and GPT-6.2 Sol).
This discussion has been locked. Commenting is limited to contributors.
No description provided.