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

Open
opened 2026-11-26 05:23:58 +00:00 by github-bot · 3 comments
Owner

@⁠itsonewi on GitHub · 2026-11-25 10:50 UTC · original

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.

**@⁠itsonewi** on GitHub · 2026-11-25 10:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/2232) `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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:23:58 +00:00
Author
Owner

@⁠Creaa on GitHub · 2026-11-25 10:53 UTC · original

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.

**@⁠Creaa** on GitHub · 2026-11-25 10:53 UTC · [original](https://github.com/xcl-dev/xcl/issues/2232#issuecomment-7160315654) 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.
Author
Owner

@⁠itsonewi on GitHub · 2026-11-25 11:19 UTC · original

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.

**@⁠itsonewi** on GitHub · 2026-11-25 11:19 UTC · [original](https://github.com/xcl-dev/xcl/issues/2232#issuecomment-7160893410) 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.
Author
Owner

@⁠spook40 on GitHub · 2026-11-25 15:51 UTC · original

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
**@⁠spook40** on GitHub · 2026-11-25 15:51 UTC · [original](https://github.com/xcl-dev/xcl/issues/2232#issuecomment-7167372396) 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
This discussion has been locked. Commenting is limited to contributors.
No description provided.