Scripts: two xcl-smoke blocks in one code fence are read as two #984
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!984
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/984/head"
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?
@Diskuss on GitHub · 2026-11-24 09:52 UTC · original
Diskuss:scripts/pr-check-smoke-fence→main· +21 −3 · 2 files · 1 commits · closed without mergingsmoke_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
@ivall on GitHub · 2026-11-24 10:10 UTC · original
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.Pull request closed