Repository navigation
Description
pr_check.py matches the PR's xcl-smoke block with a main block on title and seconds only (line 151), and SMOKE_FIELDS (line 38) is ("title", "seconds", "frames shown"). The gpu: line is never compared, and it is not required: a block can omit it and still pass. smoke.ps1 runs whatever -Xcl path it is given (line 15, checked only for existence at line 31), writes gpu: from report.json or the first non-basic adapter (lines 82-84), and records no driver version, CPU, Windows build or debug/release.
So the two blocks can describe different machines or builds:
- a PR run on an RTX 4090 compared with main on a GTX 1060;
- a release build compared with a debug build;
- the same GPU name on two different drivers.
The 80% frames and 125% peak-commit checks are exactly the numbers that depend on those. A PR can pass by running its side on the faster GPU, or fail because main happened to be on it, and the block gives the reviewer no way to see it. CONTRIBUTING.md:89 already asks for GPU + driver, CPU, Windows build and debug/release in Tested, and line 95 asks for the two blocks, but the gate does not check that the two blocks agree on any of it.
Repro (by inspection)
- Paste a PR block with
gpu: NVIDIA GeForce RTX 4090and a main block withgpu: NVIDIA GeForce GTX 1060, sametitleandseconds:check()passes. - Delete
gpu:from both blocks: still passes, becausefield_problemsdoes not require it.
I did not run the checker; this audit is read-only through the GitHub API at 568e7db.
Suggested fix
- Require
gpuin both blocks (add it toSMOKE_FIELDS, and toPR_SMOKE_FIELDSin PR checks: the PR's smoke block must show how its run ended (#2213) #2219) and reject a mismatch after normalizing case and whitespace.smoke.ps1already strips the VRAM suffix. - Add
driver:(WMIDriverVersion),cpu:,windows:(build number) andbuild: debug|releaseto the block. The build profile should be an explicit-Buildargument or read fromxcl --versionif it identifies the build; inferring it from the binary path is a fallback, not a guarantee. - Compare
driverandbuildas well asgpu. A driver update is as incomparable as a different card, and the gate cannot see it today. - If a mismatch is intentional (an AMD-only fix where main was run on NVIDIA), require an explicit Not tested note or an approval flag instead of passing silently.
Related
- PR checks: the 125% peak-commit limit is inside the run-to-run spread; one pair can pass or fail on the same build #2225: the same pair also measures the title profile carried between runs; profile isolation and a same-machine check are both needed before the ratio means anything.
- PR checks: the main smoke baseline can be an old or dirty commit, not current main #2226: the baseline can be an old or dirty main commit; this issue is about the two blocks not describing the same machine.
- Scripts: keep artifacts for reproducible world-entry smoke runs #1855: keep artifacts and a manifest (build commit, GPU, driver) for reproducible smoke runs.
- Scripts: the smoke block can't tell a black screen from a working title #717: the block cannot tell a black screen from a working title - another case where one number is not enough.
- PR checks: a smoke block can omit the crash, device-removal, exit and peak-commit lines and still pass #2213 / PR checks: the PR's smoke block must show how its run ended (#2213) #2219: the PR block must now include the crash/exit/peak lines;
gpuis still optional.
Scope
Read through the GitHub API at 568e7db; nothing was cloned, built or run.
Activity
Creaa commentedon Nov 25, 2026
Taking the first part:
pr_check.pyrequires thegpu:line in both blocks and compares the PR block only with a main block of the same GPU (plus title and time), with tests. Recording the driver and debug/release in the block needssmoke.ps1changes; I will leave that as a separate follow-up. This touches the same lines as #2230, so the PR will be stacked on it.AI use: Claude Code (Claude Opus 5.5) drafted this.
Scripts: pr_check compares smoke runs only on the same GPU (xcl-dev#2232
itsonewi commentedon Nov 25, 2026
Good split -
gpu:is the part that changes the gate, driver/build can follow insmoke.ps1. Two things for the PR:smoke.ps1already strips the VRAM suffix, soNVIDIA GeForce RTX 4070andrtx 4070should match whileRTX 4070andRTX 4070 Timust not. A substring check in either direction would let the Ti through; compare the lowercased token sequences.field_problems, please add a fixture where main has nogpu:line at all. That is the case PR checks: the PR's smoke block must show how its run ended (#2213) #2219 cannot see either, and it is what a hand-edited block produces.For the follow-up,
driver:from WMIWin32_VideoController.DriverVersionis enough to make a block self-describing, and gating on it can wait until blocks have carried it for a while. If the adapter answers null, printdriver: unknownrather than omitting the line, or the same omission problem comes back in a new place.Scripts: pr_check compares smoke runs only on the same GPU (xcl-dev#2232
spook40 commentedon Nov 25, 2026
Taking the
scripts/smoke.ps1follow-up for #2232:driver:fromWin32_VideoController.DriverVersion(falling back tounknownif unavailable)build:(debug/releasevia-Buildor inferred from the-Xclbinary path, falling back tounknown)scripts/test-smoke-artifacts.tests.ps1without changingscripts/pr_check.pygating yet