Scripts: read smoke blocks from the Regression run section #2715
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2715
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@luckyteagirl on GitHub · 2026-11-26 08:09 UTC · original
luckyteagirl:codex/pr-check-regression-section→main· +117 −17 · 2 files · 2 commits · draftscripts/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
b408fdc3cbto49a364110aView 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.