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

Merged
aarushkha merged 1 commit from upstream-pr/988 into main 2026-11-24 10:10:06 +00:00
aarushkha commented 2026-11-24 09:56:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by aarushkha on 2026-11-24T09:56:14Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6579175289 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/988). Originally posted by [aarushkha](https://github.com/aarushkha) on 2026-11-24T09:56:14Z. --- `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)
upstream-sync closed this pull request 2026-11-24 11:05:18 +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:14Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7128411453 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/988#issuecomment-7128411453). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T10:10:14Z. --- 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.
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!982
No description provided.