PR checks: two xcl-smoke blocks pasted in one code fence are read as one #960
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Conrage on 2026-11-24T09:37:55Z.
smoke_blocks()reads a block fromxcl-smoke v1up to the next code fence:github.com/ivall/xcl@077ce40/scripts/pr_check.py (L31)If both blocks (main's and the PR's) are pasted inside one fenced block, the first match takes both. The second block's keys overwrite the first's (
commitbecomes the PR's), and the check then reports that the main run is missing.Repro (run locally):
Suggested fix: end a block at the next
xcl-smoke v1line as well as at a fence, e.g.r"xcl-smoke v1\s*\n(.*?)(?=xcl-smoke v1|```|\Z)".AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T10:10:18Z.
Fixed by #988 (
6efdabc): a block now also ends at the nextxcl-smoke v1line, so two blocks pasted in one fence are read as two. Thanks for the repro.