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

Open
Rareuncommon wants to merge 1 commit from upstream-pr/834 into main
Rareuncommon commented 2026-11-24 06:30:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Rareuncommon on 2026-11-24T06:30:09Z.


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

  • macOS arm64 (Darwin 27), Python 3.14.6. No Windows, no GPU.
  • cd scripts && python3 -m unittest test_pr_check: 13 passed. Against main's pr_check.py: test_a_short_first_word_names_no_commit fails, the other 12 pass.
  • Main's and this check() compared on the descriptions of 1,029 PRs of this repository (all states), each with its own head commit and a runtime file in the file list: no verdict changes.
  • Merged together with #527 and #835 on main 930e8b4: 25 tests pass.

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.
<!-- greyfinch-sync:ivall/xcl:issue:5467302504 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/834). Originally posted by [Rareuncommon](https://github.com/Rareuncommon) on 2026-11-24T06:30:09Z. --- `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** - macOS arm64 (Darwin 27), Python 3.14.6. No Windows, no GPU. - `cd scripts && python3 -m unittest test_pr_check`: 13 passed. Against main's `pr_check.py`: `test_a_short_first_word_names_no_commit` fails, the other 12 pass. - Main's and this `check()` compared on the descriptions of 1,029 PRs of this repository (all states), each with its own head commit and a runtime file in the file list: no verdict changes. - Merged together with #527 and #835 on main `930e8b4`: 25 tests pass. **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 commented 2026-11-24 07:06:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T06:42:13Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7124204698 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/834#issuecomment-7124204698). Originally posted by [milas6669](https://github.com/milas6669) on 2026-11-24T06:42:13Z. --- 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 commented 2026-11-24 08:03:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T07:09:49Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7124688376 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/834#issuecomment-7124688376). Originally posted by [dcastell1](https://github.com/dcastell1) on 2026-11-24T07:09:49Z. --- 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.
DavidM1911 commented 2026-11-25 11:09:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:27:55Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7159731585 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7159731585). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T10:27:55Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-29 20:40:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:40:58Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262274339 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7262274339). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:40:58Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:15:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:15:55Z.


Triage (#1607) – head f0bc702

No open or merged PR fixes this. Main's scripts/pr_check.py still checks the length of the whole commit: value but compares only its first word, so commit: 1 some other counts as a run on any head starting with 1. #2230, #2235 and #2268 rework the main-block selection nearby but not the PR-block match.
No problems found in the diff; the change also avoids an IndexError on a whitespace-only commit: value.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300550484 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7300550484). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:15:55Z. --- **Triage (#1607)** – head f0bc702 No open or merged PR fixes this. Main's `scripts/pr_check.py` still checks the length of the whole `commit:` value but compares only its first word, so `commit: 1 some other` counts as a run on any head starting with `1`. #2230, #2235 and #2268 rework the main-block selection nearby but not the PR-block match. No problems found in the diff; the change also avoids an IndexError on a whitespace-only `commit:` value. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-02 09:28:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T09:28:50Z.


Two contributors checked independently and found that #1141 solves the same problem in a different way: #1607, group D206. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7340962296 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7340962296). Originally posted by [throny](https://github.com/throny) on 2026-12-02T09:28:50Z. --- <!-- xcl-1607-hint:D206 --> Two contributors checked independently and found that #1141 solves the same problem in a different way: #1607, group D206. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/834:upstream-pr/834'
git switch 'upstream-pr/834'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/834'
git switch 'upstream-pr/834'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/834'
git switch 'upstream-pr/834'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/834'
git switch 'main'
git merge --squash 'upstream-pr/834'
git switch 'main'
git merge --ff-only 'upstream-pr/834'
git switch 'main'
git merge 'upstream-pr/834'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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!828
No description provided.