Scripts: two xcl-smoke blocks in one code fence are read as two #984

Closed
github-bot wants to merge 1 commit from gh-pr/984/head into gh-pr/984/base
Owner

@⁠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 merging

smoke_blocks() read an xcl-smoke v1 block 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 (commit became the PR's), and the check reported the main run as missing. A block now also ends at the next xcl-smoke v1 line.

Fixes #966

What is in it

  • scripts/pr_check.py: smoke_blocks() ends a block at a code fence or at the next xcl-smoke v1 line
  • scripts/test_pr_check.py: two regression cases, two blocks in one fence are parsed as two, and they pass the regression-run check

Tested

  • AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0 (0ef1bc386) x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug build
  • python3 test_pr_check.py (in scripts/, Python 3.14.4): 5 tests OK; without the pr_check.py change the 2 new cases fail (FAILED, failures=2)
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 724 passed, 0 failed, 41 ignored
  • 0 SKIPPED printed; 2 debug-layer tests skip silently (no Graphics Tools installed). The known #718 flake did not show up in this run.

Regression run
Not needed: the diff touches only scripts/, no runtime files.

Not tested

  • retail title and scripts/smoke.ps1 (no game files)
  • release build

AI use

  • Claude Code (Claude Opus 5.5) wrote the fix, the tests and this description; opened as a draft for the account owner to review before marking it ready.
**@⁠Diskuss** on GitHub · 2026-11-24 09:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/984) `Diskuss:scripts/pr-check-smoke-fence` → `main` · +21 −3 · 2 files · 1 commits · closed without merging `smoke_blocks()` read an `xcl-smoke v1` block 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 (`commit` became the PR's), and the check reported the main run as missing. A block now also ends at the next `xcl-smoke v1` line. Fixes #966 **What is in it** - `scripts/pr_check.py`: `smoke_blocks()` ends a block at a code fence or at the next `xcl-smoke v1` line - `scripts/test_pr_check.py`: two regression cases, two blocks in one fence are parsed as two, and they pass the regression-run check **Tested** - AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0 (0ef1bc386) x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug build - `python3 test_pr_check.py` (in `scripts/`, Python 3.14.4): 5 tests OK; without the `pr_check.py` change the 2 new cases fail (FAILED, failures=2) - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 724 passed, 0 failed, 41 ignored - 0 SKIPPED printed; 2 debug-layer tests skip silently (no Graphics Tools installed). The known #718 flake did not show up in this run. **Regression run** Not needed: the diff touches only scripts/, no runtime files. **Not tested** - retail title and `scripts/smoke.ps1` (no game files) - release build **AI use** - Claude Code (Claude Opus 5.5) wrote the fix, the tests and this description; opened as a draft for the account owner to review before marking it ready.
smoke_blocks() read a block from "xcl-smoke v1" up to the next code
fence. 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
(commit became the PR's), and the check reported the main run missing.
A block now also ends at the next "xcl-smoke v1" line.

Fixes #966

Assisted-by: Claude Code (Claude Opus 5.5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:39:12 +00:00
github-bot closed this pull request 2026-11-26 04:39:12 +00:00
Author
Owner

@⁠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.

**@⁠ivall** on GitHub · 2026-11-24 10:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/984#issuecomment-7128412010) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.