Scripts: keep artifacts for reproducible world-entry smoke runs #1845
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?
Imported from ivall/xcl. Originally posted by MiguelMachado-dev on 2026-11-24T21:56:44Z.
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.
Imported from ivall/xcl. Originally posted by tugasky on 2026-11-25T00:03:58Z.
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.
upstream-sync referenced this issue2026-11-25 04:08:41 +00:00
upstream-sync referenced this issue2026-11-25 10:09:30 +00:00
upstream-sync referenced this issue2026-11-25 16:10:51 +00:00
Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T19:09:29Z.
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).
upstream-sync referenced this issue2026-11-26 10:05:30 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-26T23:27:46Z.
Smoke launcher environment isolation
On
mainat8b957bec6f82495aec940944c6bf47faa02db590, invokingscripts/smoke.ps1in an existing PowerShell session overwritesXCL_NETWORKand deletes the caller'sXCL_RUN_SECONDSandXCL_ACTIVITY. Running a comparison from the same shell can then inherit the wrong settings.A small local fix saves the three values before
Process.Start(), applies the smoke overrides for the launch, and restores the original values infinally, including on a failed start. This keeps Windows PowerShell's inherited-environment launch path.Tested: Windows 11 25H2 build 26200.9974, Windows PowerShell 5.1.26100.9818.
scripts/test-smoke-artifacts.tests.ps1with the regression failed on the unpatched script (smoke.ps1 changed the caller environment), then passed with the fix, including child overrides and a failed-launch control.scripts/smoke-title.tests.ps1passed with the fix. No GPU or retail title was used.AI use: T3 Code / Codex (
gpt-6.2-sol) reproduced the issue, wrote the local patch and fixture assertions, and ran the tests.