Scripts: keep artifacts for reproducible world-entry smoke runs #1855
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#1855
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@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.jsonif produced, and a manifest with the build commit, GPU, duration, input schedule and XCL cache state. The existingxcl-smoke v1output stays the same.The docs would show how to run both builds from the same local checkpoint using
XCL_PRESS_ATand 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.
@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 Hiddenand no redirection, so everything XCL wrote to stderr went nowhere. That includes the one line that explained a0xC0000409I had blamed on the title for four runs:Once the child's stdout and stderr went to
guard\child-<stamp>.outand.err, the cause — Rust'sabort()on a refused allocation in XCL's own heap, because the commit cap is a job-object limit over the whole process — was oneSelect-Stringaway. 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.
-KillAtMBwas checked against the launcherxcl runitself — 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 thexclprocesses by commit and sampling the largest is what made the numbers reproducible (commit 32 768 MBat 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 exactXCL_*environment, the input schedule with its timing, the run timeout, and the host's peak commit. Two runs that differed only inXCL_TITLE_COMMIT_CAP_MBreached opposite verdicts on the same binary — one exit 0 at 420 s, one0x80000003at 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.
@razormontana on GitHub · 2026-11-25 19:09 UTC · original
I'm taking launcher stdout and stderr for the existing
smoke.ps1 -OutDirartifacts. 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).