Skip to content

Scripts: pr_check refuses smoke blocks without a title, time or frames - #1133

Merged
theaustinayers merged 1 commit into
xcl-dev:mainfrom
emirduran707:pr-check-smoke-fields
Nov 24, 2026
Merged

theaustinayers merged 1 commit into
xcl-dev:mainfrom
emirduran707:pr-check-smoke-fields

Conversation

@emirduran707

Copy link
Copy Markdown
Contributor

check() compares the main and PR xcl-smoke blocks through number(), which returns None for a missing field. The comparisons let None pass, and the title / seconds match compares None == None. So two blocks holding only xcl-smoke v1 and commit: <sha> pass every regression check.

CONTRIBUTING.md, item 3, asks for "at least 80 % of main's frames", with blocks "of the same title for the same time". Neither can be checked on such a block.

What is in it

  • scripts/pr_check.py:
    • field_problems reports a smoke block that lacks a title, seconds or frames shown line, or has a non-number in one of the last two;
    • each message names the field and the block's commit;
    • it runs on the PR's block, and on the main block that matches it (on every main block when none matches).
  • Scope, to avoid overlapping open PRs:
  • scripts/test_pr_check.py:
    • blocks with only commit lines are refused for each of the three fields, in both blocks;
    • a non-numeric frames shown is named;
    • the two blocks in one fence fixture gets full blocks.

Tested

  • Windows 11 Pro 26300, Python 3 (python -I).
  • python -I -m unittest discover -s scripts -p "test_*.py": 11 tests, OK.
  • With main's pr_check.py and these tests: FAILED (failures=2), the two new tests.

Not tested

AI use

🤖 Generated with Claude Code

check() compares the main and PR xcl-smoke blocks through number(), which
gives None for a missing field, and the comparisons let None pass; the
title / seconds match compares None == None. Two blocks holding only
`xcl-smoke v1` and `commit: <sha>` passed every regression check, though
CONTRIBUTING asks for at least 80 % of main's frames and blocks of the same
title for the same time.

A block that lacks a `title`, `seconds` or `frames shown` line, or has a
non-number in one of the last two, is now reported, naming the field and
the block's commit: the PR's block, and the main block it is compared with
(every main block when none matches). The crash and device-removal counts
are left to xcl-dev#635, and the peak commit to xcl-dev#1103.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@futurepro62

Copy link
Copy Markdown

Tested exact head 1d83fd1, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest scripts/test_pr_check.py at the head: 11 passed.
  • The PR's test file(s) against current main's script (930e8b4): 2 failed: test_blocks_with_only_commit_lines_fail, test_non_numeric_frames_shown_fails. So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@theaustinayers
theaustinayers merged commit 797dda1 into xcl-dev:main Nov 24, 2026
2 checks passed
gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 24, 2026
Brings in 20 newly merged upstream PRs (xcl-dev#959, xcl-dev#968, xcl-dev#1079, xcl-dev#1084, xcl-dev#1091,
xcl-dev#1099, xcl-dev#1127, xcl-dev#1133, xcl-dev#1137, xcl-dev#1150, xcl-dev#1211, xcl-dev#1223, xcl-dev#1224, xcl-dev#1265, xcl-dev#1289,
xcl-dev#1290, xcl-dev#1330, xcl-dev#1353, xcl-dev#1354), including in-memory shader cache session
fallback (xcl-dev#1211), CPU-invisible resource Map filtering (xcl-dev#1099), DRED
partially executed list priority (xcl-dev#1330), allocation info alignment
padding (xcl-dev#1354), and DirectStorage status/error/cancel fixes (xcl-dev#1127,
xcl-dev#1223, xcl-dev#1224).
CalvyPZ pushed a commit to CalvyPZ/xcl that referenced this pull request Nov 24, 2026
…ev#1506)

Since 1d83fd1 (xcl-dev#1133) field_problems also checks main's smoke block, and
smoke.ps1 writes "none logged (the run did not reach its end)" as
`frames shown` when the run crashes. A PR that fixes a crash shows that
crash on main (CONTRIBUTING.md allows it), so it was refused for a
non-numeric `frames shown`. That text is now accepted for main's block
only; the PR's own block keeps the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants