PR checks: a smoke block's commit is its first word, and fewer than 7… #828
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/834"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Rareuncommon on 2026-11-24T06:30:09Z.
scripts/pr_check.pyfound the regression run made on the PR's head by measuring the wholecommit:value of anxcl-smokeblock (7 or more characters) and then comparing only its first word with the head. A block withcommit: 1 some othertherefore passed as a clean run on any head that starts with1. The first word now decides both, as it already did for main's block.Rebased on main
930e8b4(f0bc702replacesc0479fd; the change is the same).What is in it
scripts/pr_check.py: onesha(b)(the first word of a block'scommit: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 afterSmokeBlockTestsso it does not collide with tests other PRs append.Tested
cd scripts && python3 -m unittest test_pr_check: 13 passed. Against main'spr_check.py:test_a_short_first_word_names_no_commitfails, the other 12 pass.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.930e8b4: 25 tests pass.Regression run
Not tested
cargo test --workspaceand the GPU suite were not run; this PR changes no Rust.PR checksworkflow on GitHub's runner.AI use
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T06:42:13Z.
Test report on
c0479fd(PR head, basemainbeaa245, no merge conflict with main or with #835).Tested
cd scripts && python -m unittest test_pr_check: 7 tests, OK on this head. The same command onmainbeaa245: 3 tests, OK.Not tested
pr-check.ymlon GitHub); I only ran the unit tests locallyAI use
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):
(The file uses
from pr_check import check, so it needs the script directory assys.path[0];python -Istrips that and fails withModuleNotFoundError, which is why the repo's CI invocation matters here.)AI-assisted (opencode): applied, ran, reverted.
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!
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
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:15:55Z.
Triage (#1607) – head
f0bc702No open or merged PR fixes this. Main's
scripts/pr_check.pystill checks the length of the wholecommit:value but compares only its first word, socommit: 1 some othercounts as a run on any head starting with1. #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.
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.