From a4a9ab8c711b041e2dc5b08255aa8b2809da14ed Mon Sep 17 00:00:00 2001 From: luckyteagirl <290248872+luckyteagirl@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:53:23 -0800 Subject: [PATCH] Scripts: repeat smoke runs with separate artifacts --- CONTRIBUTING.md | 9 +++ scripts/smoke.ps1 | 45 ++++++++++- scripts/test-smoke-repeat.tests.ps1 | 113 ++++++++++++++++++++++++++++ 3 files changed, 165 insertions(+), 2 deletions(-) create mode 100644 scripts/test-smoke-repeat.tests.ps1 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dfdd78a9ec..3adff91b69 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,6 +25,15 @@ checked before anything else; a PR that does not meet them waits (or is closed a no crash (the `main` run may: a PR that fixes a crash shows it there), at least 80 % of `main`'s frames and at most 125 % of its peak commit. A run on a title that does not reach the code the PR changes still counts as a regression check; say what it does not cover under **Not tested**. + Use `scripts/smoke.ps1 -Repeat 3` to collect three consecutive blocks from one build. Each + run uses the same title data directory. When `-OutDir` is supplied, the artifacts go into + numbered subdirectories such as `run-001`, with a separate manifest for each completed run. + Use a fresh `-OutDir` for each batch. An existing numbered destination stops the batch before + any title launches. + If a run errors before it can produce a block, the script saves an `error.txt` when + `-OutDir` is supplied, attempts the remaining runs, and reports the errors after the last run. + This collects blocks only: until #2268 lands, `pr_check.py` still compares the last clean + PR block with the first matching `main` block. Inspect every run when reporting results. `scripts/pr_check.py` checks all of this (and the rest of this list it can see) on every PR. If a test-only diff touches a runtime file, a maintainer can apply the `test-only` label after reviewing the diff. The label event waives only the smoke check for that revision. Adding or diff --git a/scripts/smoke.ps1 b/scripts/smoke.ps1 index ad15cbc0c0..29a408f748 100644 --- a/scripts/smoke.ps1 +++ b/scripts/smoke.ps1 @@ -2,7 +2,7 @@ # prints an `xcl-smoke` block to paste into the PR's "Regression run" section – once built # from main, once from the PR's head commit (CONTRIBUTING.md, "What a PR needs to be merged"). # -# .\scripts\smoke.ps1 -Game 'D:\Games\SomeTitle' [-Seconds 60] [-Xcl .\target\release\xcl.exe] [-Title