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

Closed
Diskuss wants to merge 1 commit from upstream-pr/984 into main
Diskuss commented 2026-11-24 09:52:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Diskuss on 2026-11-24T09:52:29Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6579112199 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/984). Originally posted by [Diskuss](https://github.com/Diskuss) on 2026-11-24T09:52:29Z. --- `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.
upstream-sync closed this pull request 2026-11-24 11:05:17 +00:00
ivall commented 2026-11-24 11:05:40 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7128412010 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/984#issuecomment-7128412010). Originally posted by [ivall](https://github.com/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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!978
No description provided.