Scripts: read smoke blocks from the Regression run section #2705
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2715"
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 luckyteagirl on 2026-11-26T08:09:43Z.
scripts/pr_check.pyaccepted a runtime PR'sxcl-smokeblocks anywhere in its description. A Regression run section saying “Pending” could therefore pass when old example blocks appeared under Not tested. Read smoke blocks only from the visible Regression run section, as required byCONTRIBUTING.md.What is in it
scripts/pr_check.py: extract template sections while ignoring headings in HTML comments and fenced examples; preserve fenced smoke reports and literal inline code, and accept a BOM before the first heading.scripts/test_pr_check.py: reproduce misplaced-block acceptance, verify valid in-section blocks, and cover commented/fenced headings and inline comment markers.Tested
python -B -m unittest discover -s scripts -p 'test_pr_check.py': 22 passed, 0 failed, exit 0.python -m unittest discover -s scripts -p 'test_*.py': 34 passed, 0 failed, exit 0.git diff 49a36411 HEAD --check: passed.Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:47:45Z.
Triage (#1607) – head
b0cd387Main's
scripts/pr_check.pystill readssmoke_blocks(body)from the whole description. Nothing on main or in another open PR limits it to Regression run or skips headings inside fenced code.The second commit overlaps #835 (stacked on #527). Both make the banned-model check read only the visible AI use section with HTML comments removed. #527/#835 do it with
section_texts(), this PR withsection_text()plus fence handling. Whichever merges second has to adopt the other's helper.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.