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

Open
github-bot wants to merge 1 commit from github-bot/gh-834 into main AGit
Owner

@⁠Rareuncommon on GitHub · 2026-11-24 06:30 UTC · original
Rareuncommon:scripts/pr-check-smoke-commit → main · +41 −2 · 2 files · 1 commits · open

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.
**@⁠Rareuncommon** on GitHub · 2026-11-24 06:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/834) `Rareuncommon:scripts/pr-check-smoke-commit` → `main` · +41 −2 · 2 files · 1 commits · open `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.
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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:34:02 +00:00
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 06:42 UTC · original

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.
**@⁠milas6669** on GitHub · 2026-11-24 06:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7124204698) 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.
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 07:09 UTC · original

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.

**@⁠dcastell1** on GitHub · 2026-11-24 07:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7124688376) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 10:27 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 10:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/834#issuecomment-7159731585) 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!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/834/head:github-bot/gh-834'
git switch 'github-bot/gh-834'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-834'
git switch 'github-bot/gh-834'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-834'
git switch 'github-bot/gh-834'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-834'
git switch 'main'
git merge --squash 'github-bot/gh-834'
git switch 'main'
git merge --ff-only 'github-bot/gh-834'
git switch 'main'
git merge 'github-bot/gh-834'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.