Skip to content

PR checks: a smoke block's commit is its first word, and fewer than 7… - #834

Open
Rareuncommon wants to merge 1 commit into
xcl-dev:mainfrom
Rareuncommon:scripts/pr-check-smoke-commit
Open

Rareuncommon wants to merge 1 commit into
xcl-dev:mainfrom
Rareuncommon:scripts/pr-check-smoke-commit

Conversation

@Rareuncommon

@Rareuncommon Rareuncommon commented Nov 24, 2026 •

Copy link
Copy Markdown

scripts/pr_check.py found the regression run made on the PR's head by measuring the whole commit: value of an xcl-smoke block (7 or more characters) and then comparing only its first word with the head. A block with commit: 1 some other therefore passed as a clean run on any head that starts with 1. The first word now decides both, as it already did for main's block.

Rebased on main 930e8b4 (f0bc702 replaces c0479fd; the change is the same).

What is in it

  • scripts/pr_check.py: one sha(b) (the first word of a block's commit: line) used for the PR's block and for main's; fewer than 7 digits name no commit. +4 −2.
  • scripts/test_pr_check.py: SmokeBlockCommitTests, four tests of which block counts as the PR's run (the head in full and abbreviated, a short first word, another commit, uncommitted changes). +37, placed after SmokeBlockTests so it does not collide with tests other PRs append.

Tested

Regression run

  • not a runtime change (scripts only)

Not tested

  • The Rust workspace was not built or tested: no Windows machine. cargo test --workspace and the GPU suite were not run; this PR changes no Rust.
  • The PR checks workflow on GitHub's runner.
  • Merge requirement 2 (whole suite on a GPU) is not met from this machine.

AI use

  • Claude Code with Claude Fable 5.2: found the defect, wrote the fix, the tests and this description. Reviewed by the author.

@milas6669

Copy link
Copy Markdown
Contributor

Test report on c0479fd (PR head, base main beaa245, no merge conflict with main or with #835).

Tested

  • Intel i9-10900KF, Windows 11 Pro 10.0.26200, Python 3.14.0
  • cd scripts && python -m unittest test_pr_check: 7 tests, OK on this head. The same command on main beaa245: 3 tests, OK.

Not tested

  • the workflow itself (pr-check.yml on GitHub); I only ran the unit tests locally
  • a real PR description against the new rules beyond the cases in the test file

AI use

  • Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.

@dcastell1

Copy link
Copy Markdown

Ran the script tests on this tree after applying the PR (Debian 13, Python 3.13.14, no other changes):

git apply this PR
cd scripts && python3 test_pr_check.py
Ran 7 tests in 0.001s — OK

(The file uses from pr_check import check, so it needs the script directory as sys.path[0]; python -I strips that and fails with ModuleNotFoundError, which is why the repo's CI invocation matters here.)

AI-assisted (opencode): applied, ran, reverted.

phantomic12 pushed a commit to phantomic12/xcl that referenced this pull request Nov 24, 2026
…ree surveys

The harness reads d3d12.last_frame_dump from report.json (sampled_pixels / non_dark_samples)
instead of parsing BMPs - that is the number XCL already computes, and it is what issue ivall#717
proposes to put in the smoke block. -MinLitPct (default 1) fails a run whose last frame is dark,
so a black screen cannot be reported as a pass.

Surveys committed (docs/):
- bcpack-decoder-plan.md: BCPack is already staked out upstream by ivall#888/ivall#856/ivall#832, and no public
  bit layout exists - the seam is definable but every stream detail is 'unknown - needs a sample'.
- upstream-scan.md: 17 PRs and 25 issues touch this area; the smoke block format is
  maintainer-owned (ivall#834/ivall#835/ivall#717) and our summary.md is not an xcl-smoke v1 block.
- trap-695-not-reproduced.md: issue ivall#695's int3 at +0x4dcbc9d does not happen on this AMD RDNA2
  machine over 6 consecutive 120 s runs, with the same shader and PSO refusals - a data point for
  that issue.

Windows PowerShell 5.1's Get-Content -Raw mangles the en-dash in the 'backend' line, so the GPU
name is read with [IO.File]::ReadAllText.
@Rareuncommon
Rareuncommon force-pushed the scripts/pr-check-smoke-commit branch from c0479fd to b94854e Compare November 24, 2026 14:50
… digits name no commit

The run on the PR's head was found by measuring the whole `commit:` value (7 or more characters) and then
comparing only its first word with the head. A block with `commit: 1 some other` therefore passed as a
clean run on any head that starts with 1. The same first word now decides both, as it already did for
main's block.

scripts/test_pr_check.py: four tests of which block is the PR's run; one fails on the check before.

Assisted-by: Claude Code (Claude Fable 5.2)
@Rareuncommon
Rareuncommon force-pushed the scripts/pr-check-smoke-commit branch from b94854e to f0bc702 Compare November 24, 2026 14:50
@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants