Skip to content

Scripts: preserve artifacts for world-entry smoke runs - #1863

Draft
gloger2003 wants to merge 1 commit into
xcl-dev:mainfrom
gloger2003:scripts/smoke-run-artifacts
Draft

gloger2003 wants to merge 1 commit into
xcl-dev:mainfrom
gloger2003:scripts/smoke-run-artifacts

Conversation

@gloger2003

@gloger2003 gloger2003 commented Nov 24, 2026 •

Copy link
Copy Markdown

Fixes #1855. Part of #505 and #1833. Preserve the evidence for each smoke run before the next invocation rotates the title's files.

What is in it

  • Add -ArtifactsDir and -CacheState to scripts/smoke.ps1. Each invocation creates a separate local directory with the log, any report and a manifest of the build, input schedule and cache settings.
  • Keep the xcl-smoke v1 output and document matched checkpoint runs with fresh and seeded XCL caches.
  • Test repeat runs, missing reports and compatibility with the existing smoke block using a synthetic launcher.

Tested

  • Windows x64, Ryzen 7 5700X, Radeon RX 7800 XT. Both smoke script tests passed in PowerShell 7.6.9 and Windows PowerShell 5.1.26100.9818.

  • cargo build --offline --locked --workspace and cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output. 959 reported passed, 0 failed, 43 ignored. Runtime skips: 7 (gpu, heap_window_out_of_memory_falls_back_to_the_switch_form).

  • Minecraft Preview completed a 30-second run with a fresh XCL DXIL cache and no device removal or crash. Verified that the script preserved all three artifacts. The executable was built from main and the runtime sources are identical on this branch.

  • Rebased onto main 568e7db to reconcile the README. Both smoke-script tests passed on the rebased head in PowerShell 7 and Windows PowerShell 5.1. The workspace and Minecraft Preview results above were collected on the previous revision c68f5b6.

Not tested

The retail title's world-entry checkpoint and reaching a specific in-game scene.

AI use

OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode) wrote the script changes, regression test and documentation, ran the checks and drafted this description.

@JJAutoCompare

Copy link
Copy Markdown

I reviewed and tested head c68f5b65f54518e975c10f5003976101d9200f28 for #1855.

The no-report case still loses the log. When report.json is absent, the launcher prints No report – see the log: <path>. The smoke script only parses lines starting with Log: and throws before writing any artifacts. I reproduced this with a synthetic launcher and an existing xcl.log. The bundled fixture still emits Log: after removing the report. Please make the fixture emit the launcher's real no-report message and verify that the script preserves the existing log.

The comparison recipe needs a caveat for older baselines. This PR's base script lacks -ArtifactsDir and -CacheState. Running the new script with -Xcl pointing at the baseline binary saves artifacts but records the script checkout's SHA as the build commit. The README recipe works when both checkouts have the new flags. For comparisons against earlier builds, the docs should explain how to record the baseline build SHA. External binary attribution is related to #1591.

Tested

  • Windows build 26200.9974, Windows PowerShell 5.1.26100.9818, Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175).
  • Ran powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/smoke-artifacts.tests.ps1 and the same command for scripts/smoke-title.tests.ps1. Two passed, 0 failed, 0 skipped.
  • Additional synthetic cases confirmed that both the launcher-style no-report output and a stderr-only startup failure leave no artifact directory.
  • PR checks passed. Windows CI was awaiting maintainer approval at review time. The scripts-and-docs diff does not require paired runtime smoke blocks. The author reports a full Cargo run and a short fresh-cache Minecraft Preview smoke. The report leaves out the GPU driver and Rust version requested by CONTRIBUTING.md.

Not tested

I did not independently rerun Cargo, PowerShell 7, or a retail title. The PR report does not cover the matched fresh and seeded checkpoint runs or a visually confirmed world-entry milestone.

AI use

Codex (gpt-6.2-sol, T3 Code) reviewed the diff, ran the synthetic checks, and wrote this report.

@JJAutoCompare

JJAutoCompare commented Nov 25, 2026 •

Copy link
Copy Markdown

One additional diagnostic case at c68f5b6: the wrapper reads stderr but discards it before constructing the missing-log error. A synthetic launcher that reports its failure only on stderr leaves the exception without the launcher’s explanation. Including captured stderr when no log path can be parsed would preserve that evidence. The reproducible missing-report case and fixture commands are in the preceding review.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Save each run in a separate local directory with its log, optional report, input schedule and cache settings. Document matched checkpoint runs and cover report rotation with a synthetic launcher.

Assisted-by: OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode)
@gloger2003
gloger2003 force-pushed the scripts/smoke-run-artifacts branch from c68f5b6 to 9b70aad Compare November 25, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripts: keep artifacts for reproducible world-entry smoke runs

4 participants