PR checks: the smoke comparison accepts two runs from different GPUs, drivers or build profiles #2232
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#2232
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?
@itsonewi on GitHub · 2026-11-25 10:50 UTC · original
pr_check.pymatches the PR'sxcl-smokeblock with a main block ontitleandsecondsonly (line 151), andSMOKE_FIELDS(line 38) is("title", "seconds", "frames shown"). Thegpu:line is never compared, and it is not required: a block can omit it and still pass.smoke.ps1runs whatever-Xclpath it is given (line 15, checked only for existence at line 31), writesgpu:fromreport.jsonor 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:
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:89already 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)
gpu: NVIDIA GeForce RTX 4090and a main block withgpu: NVIDIA GeForce GTX 1060, sametitleandseconds:check()passes.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
gpuin both blocks (add it toSMOKE_FIELDS, and toPR_SMOKE_FIELDSin #2219) and reject a mismatch after normalizing case and whitespace.smoke.ps1already strips the VRAM suffix.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.driverandbuildas well asgpu. A driver update is as incomparable as a different card, and the gate cannot see it today.Related
gpuis still optional.Scope
Read through the GitHub API at
568e7db; nothing was cloned, built or run.@Creaa on GitHub · 2026-11-25 10:53 UTC · original
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.
@itsonewi on GitHub · 2026-11-25 11:19 UTC · original
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 #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.@spook40 on GitHub · 2026-11-25 15:51 UTC · original
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