PR checks: two xcl-smoke blocks in one code fence are read as two #988

Manually merged
github merged 1 commit from gh-pr/988/head into gh-pr/988/base 2026-11-26 04:39:21 +00:00
Owner

@⁠aarushkha on GitHub · 2026-11-24 09:56 UTC · original
aarushkha:pr-checks-smoke-blocks-one-fence → main · +19 −3 · 2 files · 1 commits · merged 2026-11-24 10:10 UTC

smoke_blocks() ended an xcl-smoke v1 block only at the next code fence, so when main's and the PR's blocks were pasted inside one fence the first match took both: the second block's keys overwrote the first's and the check reported the main run as missing. A block now also ends at the next xcl-smoke v1 header. Fixes #966.

What is in it

  • scripts/pr_check.py: the block regex stops at the next xcl-smoke v1 line (lookahead) as well as at a fence or the end
  • scripts/test_pr_check.py: two blocks in one fence are read as two (and check() then finds main's run); blocks in separate fences stay separate

Tested

  • NVIDIA GeForce RTX 3060 (Windows driver 32.0.16.2101), Intel Core i5-11400F, Windows 10 22H2 (build 19045), D3D12 Agility SDK 1.620.2 via XCL_D3D12_DIR, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug
  • python scripts/test_pr_check.py: 5 passed; the new test_two_blocks_in_one_fence_are_two_blocks failed before the fix (['1234567890'] instead of both commits)
  • cargo build --workspace && cargo test --workspace -- --test-threads=4: 724 passed, 0 failed, 41 ignored (run on main 9aec53d with this diff in the working tree; the diff touches no Rust)
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)

Regression run

  • not needed: no file under crates/xcl/src changes

Not tested

  • the PR checks workflow itself on a real PR body with both blocks in one fence (only the unit tests above)
  • AMD / wave64 GPUs

AI use

  • Claude Code with Claude Opus 5.5: wrote the fix, the tests and this description; I reviewed the diff and ran the tests

🤖 Generated with Claude Code

**@⁠aarushkha** on GitHub · 2026-11-24 09:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/988) `aarushkha:pr-checks-smoke-blocks-one-fence` → `main` · +19 −3 · 2 files · 1 commits · merged 2026-11-24 10:10 UTC `smoke_blocks()` ended an `xcl-smoke v1` block only at the next code fence, so when main's and the PR's blocks were pasted inside one fence the first match took both: the second block's keys overwrote the first's and the check reported the main run as missing. A block now also ends at the next `xcl-smoke v1` header. Fixes #966. **What is in it** - `scripts/pr_check.py`: the block regex stops at the next `xcl-smoke v1` line (lookahead) as well as at a fence or the end - `scripts/test_pr_check.py`: two blocks in one fence are read as two (and `check()` then finds main's run); blocks in separate fences stay separate **Tested** - NVIDIA GeForce RTX 3060 (Windows driver 32.0.16.2101), Intel Core i5-11400F, Windows 10 22H2 (build 19045), D3D12 Agility SDK 1.620.2 via `XCL_D3D12_DIR`, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug - `python scripts/test_pr_check.py`: 5 passed; the new `test_two_blocks_in_one_fence_are_two_blocks` failed before the fix (`['1234567890']` instead of both commits) - `cargo build --workspace && cargo test --workspace -- --test-threads=4`: 724 passed, 0 failed, 41 ignored (run on main 9aec53d with this diff in the working tree; the diff touches no Rust) - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) **Regression run** - not needed: no file under `crates/xcl/src` changes **Not tested** - the `PR checks` workflow itself on a real PR body with both blocks in one fence (only the unit tests above) - AMD / wave64 GPUs **AI use** - Claude Code with Claude Opus 5.5: wrote the fix, the tests and this description; I reviewed the diff and ran the tests 🤖 Generated with [Claude Code](https://claude.com/claude-code)
smoke_blocks() ended a block only at the next code fence, so when main's
and the PR's blocks were pasted inside one fence the first match took
both: the second block's keys overwrote the first's, and the check then
reported the main run as missing. A block now also ends at the next
`xcl-smoke v1` header.

Fixes #966

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:16 +00:00
github manually merged commit 6522c2459d into gh-pr/988/base 2026-11-26 04:39:21 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-24 10:10 UTC · original

Merged in 6efdabc. python scripts/test_pr_check.py: 5 tests OK on the merged tree; with main's pr_check.py the new one-fence test fails, as expected. Thanks, also for the separate-fences case.

**@⁠ivall** on GitHub · 2026-11-24 10:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/988#issuecomment-7128411453) Merged in 6efdabc. `python scripts/test_pr_check.py`: 5 tests OK on the merged tree; with main's `pr_check.py` the new one-fence test fails, as expected. Thanks, also for the separate-fences case.
This discussion has been locked. Commenting is limited to contributors.
No description provided.