PR checks: the smoke comparison accepts two runs from different GPUs, drivers or build profiles #2222

Open
opened 2026-11-25 10:50:37 +00:00 by itsonewi · 3 comments
itsonewi commented 2026-11-25 10:50:37 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by itsonewi on 2026-11-25T10:50:37Z.


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 4090 and a main block with gpu: NVIDIA GeForce GTX 1060, same title and seconds: check() passes.
  • Delete gpu: from both blocks: still passes, because field_problems does not require it.

I did not run the checker; this audit is read-only through the GitHub API at 568e7db.

Suggested fix

  • Require gpu in both blocks (add it to SMOKE_FIELDS, and to PR_SMOKE_FIELDS in #2219) and reject a mismatch after normalizing case and whitespace. smoke.ps1 already strips the VRAM suffix.
  • Add driver: (WMI DriverVersion), cpu:, windows: (build number) and build: debug|release to the block. The build profile should be an explicit -Build argument or read from xcl --version if it identifies the build; inferring it from the binary path is a fallback, not a guarantee.
  • Compare driver and build as well as gpu. 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

  • #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.
  • #2226: the baseline can be an old or dirty main commit; this issue is about the two blocks not describing the same machine.
  • #1855: keep artifacts and a manifest (build commit, GPU, driver) for reproducible smoke runs.
  • #717: the block cannot tell a black screen from a working title - another case where one number is not enough.
  • #2213 / #2219: the PR block must now include the crash/exit/peak lines; gpu is still optional.

Scope

Read through the GitHub API at 568e7db; nothing was cloned, built or run.

<!-- greyfinch-sync:ivall/xcl:issue:6602779975 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2232). Originally posted by [itsonewi](https://github.com/itsonewi) on 2026-11-25T10:50:37Z. --- `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 4090` and a main block with `gpu: NVIDIA GeForce GTX 1060`, same `title` and `seconds`: `check()` passes. - Delete `gpu:` from both blocks: still passes, because `field_problems` does not require it. I did not run the checker; this audit is read-only through the GitHub API at `568e7db`. **Suggested fix** - Require `gpu` in both blocks (add it to `SMOKE_FIELDS`, and to `PR_SMOKE_FIELDS` in #2219) and reject a mismatch after normalizing case and whitespace. `smoke.ps1` already strips the VRAM suffix. - Add `driver:` (WMI `DriverVersion`), `cpu:`, `windows:` (build number) and `build: debug|release` to the block. The build profile should be an explicit `-Build` argument or read from `xcl --version` if it identifies the build; inferring it from the binary path is a fallback, not a guarantee. - Compare `driver` and `build` as well as `gpu`. 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** - #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. - #2226: the baseline can be an old or dirty main commit; this issue is about the two blocks not describing the same machine. - #1855: keep artifacts and a manifest (build commit, GPU, driver) for reproducible smoke runs. - #717: the block cannot tell a black screen from a working title - another case where one number is not enough. - #2213 / #2219: the PR block must now include the crash/exit/peak lines; `gpu` is still optional. **Scope** Read through the GitHub API at `568e7db`; nothing was cloned, built or run.
Creaa commented 2026-11-25 11:09:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Creaa on 2026-11-25T10:53:44Z.


Taking the first part: pr_check.py requires the gpu: 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 needs smoke.ps1 changes; 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.

<!-- greyfinch-sync:ivall/xcl:comment:7160315654 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2232#issuecomment-7160315654). Originally posted by [Creaa](https://github.com/Creaa) on 2026-11-25T10:53:44Z. --- Taking the first part: `pr_check.py` requires the `gpu:` 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 needs `smoke.ps1` changes; 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 commented 2026-11-25 12:06:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by itsonewi on 2026-11-25T11:19:27Z.


Good split - gpu: is the part that changes the gate, driver/build can follow in smoke.ps1. Two things for the PR:

  • Normalise before comparing, but do not normalise away the model. smoke.ps1 already strips the VRAM suffix, so NVIDIA GeForce RTX 4070 and rtx 4070 should match while RTX 4070 and RTX 4070 Ti must not. A substring check in either direction would let the Ti through; compare the lowercased token sequences.
  • Because it stacks on #2230 and touches field_problems, please add a fixture where main has no gpu: 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 WMI Win32_VideoController.DriverVersion is 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, print driver: unknown rather than omitting the line, or the same omission problem comes back in a new place.

<!-- greyfinch-sync:ivall/xcl:comment:7160893410 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2232#issuecomment-7160893410). Originally posted by [itsonewi](https://github.com/itsonewi) on 2026-11-25T11:19:27Z. --- Good split - `gpu:` is the part that changes the gate, driver/build can follow in `smoke.ps1`. Two things for the PR: - Normalise before comparing, but do not normalise away the model. `smoke.ps1` already strips the VRAM suffix, so `NVIDIA GeForce RTX 4070` and `rtx 4070` should match while `RTX 4070` and `RTX 4070 Ti` must not. A substring check in either direction would let the Ti through; compare the lowercased token sequences. - Because it stacks on #2230 and touches `field_problems`, please add a fixture where main has no `gpu:` 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 WMI `Win32_VideoController.DriverVersion` is 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, print `driver: unknown` rather than omitting the line, or the same omission problem comes back in a new place.
spook40 commented 2026-11-25 16:12:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by spook40 on 2026-11-25T15:51:21Z.


Taking the scripts/smoke.ps1 follow-up for #2232:

  • Add driver: from Win32_VideoController.DriverVersion (falling back to unknown if unavailable)
  • Add build: (debug / release via -Build or inferred from the -Xcl binary path, falling back to unknown)
  • Add unit test coverage in scripts/test-smoke-artifacts.tests.ps1 without changing scripts/pr_check.py gating yet
<!-- greyfinch-sync:ivall/xcl:comment:7167372396 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2232#issuecomment-7167372396). Originally posted by [spook40](https://github.com/spook40) on 2026-11-25T15:51:21Z. --- Taking the `scripts/smoke.ps1` follow-up for #2232: - Add `driver:` from `Win32_VideoController.DriverVersion` (falling back to `unknown` if unavailable) - Add `build:` (`debug` / `release` via `-Build` or inferred from the `-Xcl` binary path, falling back to `unknown`) - Add unit test coverage in `scripts/test-smoke-artifacts.tests.ps1` without changing `scripts/pr_check.py` gating yet
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#2222
No description provided.