Scripts: two xcl-smoke blocks in one code fence are read as two #978
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/984"
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 Diskuss on 2026-11-24T09:52:29Z.
smoke_blocks()read anxcl-smoke v1block up to the next code fence, so when the main and PR blocks were pasted inside one fence the first match took both: the second block's keys overwrote the first's (commitbecame the PR's), and the check reported the main run as missing. A block now also ends at the nextxcl-smoke v1line.Fixes #966
What is in it
scripts/pr_check.py:smoke_blocks()ends a block at a code fence or at the nextxcl-smoke v1linescripts/test_pr_check.py: two regression cases, two blocks in one fence are parsed as two, and they pass the regression-run checkTested
python3 test_pr_check.py(inscripts/, Python 3.14.4): 5 tests OK; without thepr_check.pychange the 2 new cases fail (FAILED, failures=2)cargo test --workspace --no-fail-fast -- --test-threads=4: 724 passed, 0 failed, 41 ignoredRegression run
Not needed: the diff touches only scripts/, no runtime files.
Not tested
scripts/smoke.ps1(no game files)AI use
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T10:10:16Z.
Thanks. #988 made the same change (the same regex) and was ready for review while this one was still a draft, so it was merged in
6efdabc. Closing this one as a duplicate.upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
Pull request closed