Skip to content

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

Backlog

Description

@itsonewi

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 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.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

Scope

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

Activity

  1. Creaa commented on Nov 25, 2026

    @Creaa
    Contributor

    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.

  2. itsonewi commented on Nov 25, 2026

    @itsonewi
    Author

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

    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.

  3. spook40 commented on Nov 25, 2026

    @spook40

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions