PR checks: the model check reads what is visible under AI use #829
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/835"
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:31:18Z.
Stacked on #527; only the top commit (
9df3fd1) belongs here. It is point 3 of @Kalmarv's review there. Rebuilt on #527's new head5bdaffa(main930e8b4).The check for models this repository does not accept looked for the first
**AI use**anywhere in the raw description and stopped at the next bold line. So a comment or a sentence that named the section before the real one hid it, a bold line inside the section ended the scan, and a model named only inside a comment was refused.What is in it
scripts/pr_check.py: the model check reads #527'ssection_texts(), the text the section check reads. +2 −2 in the top commit.scripts/test_pr_check.py:BannedModelTests, five tests on hand-written descriptions. +39. The separatescripts/pr_check.tests.pyis gone; the tests are in main's file, whichunittestfinds.Tested
cd scripts && python3 -m unittest test_pr_check: 21 passed. Against #527'spr_check.py(5bdaffa): 3 of the 5 new tests fail (a section named earlier in a comment or a sentence, a bold line inside the section, a model named only in a comment).check()at5bdaffaand at this commit compared on the descriptions of 1,029 PRs of this repository (all states): 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:14Z.
Test report on
1b124f7(PR head; it is based on an older main,2997c9a, and merges intomainbeaa245with no conflict, also with #834).Tested
cd scripts && python pr_check.tests.py: 17 tests, OK on this head.python -m unittest pr_check.testsfails to import (the dot in the file name makes it look like a package), andpython -m unittest discover -s . -p "pr_check.tests.py"runs 0 tests ("NO TESTS RAN"), so the file runs only when started as a script.mainalready hasscripts/test_pr_check.py, whichunittestfinds astest_pr_check; this PR adds a second test file next to it under another name.Not tested
pr-check.ymlon GitHub); only the unit tests ranscripts/test_pr_check.pyon this head (that file is not in this PR's base)AI use
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T07:09:51Z.
Ran the script tests on this tree after applying the PR (Debian 13, Python 3.13.14, no other changes):
Covers the visible-AI-use scan the PR describes, and the stacked #527 part is not needed for these 17.
AI-assisted (opencode): applied, ran, reverted.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:27:53Z.
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:56Z.
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:16:11Z.
Triage (#1607) – head
9df3fd1Stacked on #527: the first commit (
5bdaffa) is #527'ssection_texts()change unchanged; only the top commit (9df3fd1) belongs here. That is not a duplicate.The top commit makes the banned-model check in
scripts/pr_check.py:checkreadsection_texts(body, "AI use")instead of the first raw**AI use**match up to the next bold line, with fiveBannedModelTests. No other open PR changes the model check. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.