Scripts: match smoke report headers on their own lines #2634

Merged
luckyteagirl merged 1 commit from upstream-pr/2644 into main 2026-12-03 02:26:25 +00:00
luckyteagirl commented 2026-11-26 04:52:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T04:52:43Z.


smoke.ps1 accepts xcl-smoke v1 in a -Title label. The PR check can mistake that text for the next report header, drop the remaining fields, and reject the run. Require the header to occupy its own line.

This changes the same parser line as #2010, which adds v2 blocks and retains the substring boundary. That PR can keep its v2 change when rebasing by using v[12] in this line-anchored header.

What is in it

  • scripts/pr_check.py matches complete header lines and still accepts two reports in one fence.
  • scripts/test_pr_check.py covers a title ending in xcl-smoke v1 in both reports.

Tested

  • python -m unittest discover -s scripts -p test_pr_check.py on Windows. The new test failed on b49be18 and all 14 tests passed with the fix.
  • scripts/smoke-title.tests.ps1 passed in PowerShell 7 and Windows PowerShell 5.1.
  • The local PR description check passed on this exact commit.

Regression run

  • Not applicable: no runtime source changed.

Not tested

  • Cargo workspace suite and retail-title smoke runs. The diff changes only the checker and its Python test.

AI use

  • Codex with GPT-6.2 Sol wrote the patch, test, and draft and ran the checks above.
<!-- greyfinch-sync:ivall/xcl:issue:5504219411 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2644). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T04:52:43Z. --- `smoke.ps1` accepts `xcl-smoke v1` in a `-Title` label. The PR check can mistake that text for the next report header, drop the remaining fields, and reject the run. Require the header to occupy its own line. This changes the same parser line as #2010, which adds v2 blocks and retains the substring boundary. That PR can keep its v2 change when rebasing by using `v[12]` in this line-anchored header. **What is in it** - `scripts/pr_check.py` matches complete header lines and still accepts two reports in one fence. - `scripts/test_pr_check.py` covers a title ending in `xcl-smoke v1` in both reports. **Tested** - `python -m unittest discover -s scripts -p test_pr_check.py` on Windows. The new test failed on `b49be18` and all 14 tests passed with the fix. - `scripts/smoke-title.tests.ps1` passed in PowerShell 7 and Windows PowerShell 5.1. - The local PR description check passed on this exact commit. **Regression run** - Not applicable: no runtime source changed. **Not tested** - Cargo workspace suite and retail-title smoke runs. The diff changes only the checker and its Python test. **AI use** - Codex with GPT-6.2 Sol wrote the patch, test, and draft and ran the checks above.
github-actions[bot] commented 2026-12-01 02:32:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:03Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298719090 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2644#issuecomment-7298719090). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:32:03Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:33:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:33:01Z.


Triage (#1607) – head 61920f9

No open or merged PR makes the same change. #2010 also edits the smoke_blocks regex (v1/v2 headers) and #2715 reads blocks from the Regression run section; they will conflict textually but solve other problems.
With main's regex, a title: line containing xcl-smoke v1 starts a second block, so the new test would fail without the fix. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305466001 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2644#issuecomment-7305466001). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:33:01Z. --- **Triage (#1607)** – head 61920f9 No open or merged PR makes the same change. #2010 also edits the `smoke_blocks` regex (v1/v2 headers) and #2715 reads blocks from the Regression run section; they will conflict textually but solve other problems. With main's regex, a `title:` line containing `xcl-smoke v1` starts a second block, so the new test would fail without the fix. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Decodere commented 2026-12-02 09:00:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T09:00:51Z.


merge-check
base: 1c8b551475
head: 61920f94b9
merge: clean (git merge --no-edit onto 1c8b5514, git diff --check clean; scripts/pr_check.py and scripts/test_pr_check.py, +6/-1)
build: not run (Tier 0 Python script diff; no Rust code changed)
tests: python -m unittest discover -s scripts -p "test_pr_check.py" -v -> 14 passed, 0 failed (base 1c8b5514: 13 passed; new test_smoke_header_in_title_does_not_end_block passed); python -m unittest discover -s scripts -p "test_*.py" -> 66 passed, 1 error (test_discord_mirror.py missing %ComSpec%/%SystemRoot% on Windows, same failure on base 1c8b5514). Rust workspace tests not run (Tier 0).
review: Read the full diff (+6/-1). Anchoring xcl-smoke v1 to its own line (^[ \t]*xcl-smoke v1[ \t]*\r?\n with re.S | re.M) in scripts/pr_check.py:46-47 prevents a title: value containing xcl-smoke v1 from prematurely splitting a smoke block while still accepting both single-fence and separate-fence blocks and CRLF endings. No problems found.
performance: none (CI script in scripts/; zero runtime impact)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Python 3.15.2, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)

<!-- greyfinch-sync:ivall/xcl:comment:7340242895 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2644#issuecomment-7340242895). Originally posted by [Decodere](https://github.com/Decodere) on 2026-12-02T09:00:51Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: 61920f94b93ff6cdcf4a1620999a4b6c79757eb2 merge: clean (`git merge --no-edit` onto `1c8b5514`, `git diff --check` clean; `scripts/pr_check.py` and `scripts/test_pr_check.py`, +6/-1) build: not run (Tier 0 Python script diff; no Rust code changed) tests: `python -m unittest discover -s scripts -p "test_pr_check.py" -v` -> 14 passed, 0 failed (base `1c8b5514`: 13 passed; new `test_smoke_header_in_title_does_not_end_block` passed); `python -m unittest discover -s scripts -p "test_*.py"` -> 66 passed, 1 error (`test_discord_mirror.py` missing `%ComSpec%`/`%SystemRoot%` on Windows, same failure on base `1c8b5514`). Rust workspace tests not run (Tier 0). review: Read the full diff (+6/-1). Anchoring `xcl-smoke v1` to its own line (`^[ \t]*xcl-smoke v1[ \t]*\r?\n` with `re.S | re.M`) in `scripts/pr_check.py:46-47` prevents a `title:` value containing `xcl-smoke v1` from prematurely splitting a smoke block while still accepting both single-fence and separate-fence blocks and CRLF endings. No problems found. performance: none (CI script in `scripts/`; zero runtime impact) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Python 3.15.2, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)
Pipodi commented 2026-12-02 18:42:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T18:42:09Z.


merge-check
base: c53e969602
head: 61920f94b9
merge: clean (git merge --no-ff onto c53e9696, merge 364b2972; scripts/pr_check.py and scripts/test_pr_check.py, +6/-1)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3004 passed, 0 failed, 52 ignored; failing: none (SKIPPED 25: 22 no wave64, 2 no heap windows, 1 cannot disable the driver cache). CI does not run the script tests, so by hand: python -m unittest test_pr_check (in scripts/) -> 14 passed, 0 failed; with main's pr_check.py and the PR's test file -> 1 failure (the new test_smoke_header_in_title_does_not_end_block), so the test fails without the fix. PYTHONUTF8=1 python -m unittest discover -s scripts -p "test_*.py" -> 86 run, 1 error (test_discord_mirror test_nothing_is_written_when_the_state_cannot_be_saved; same error on main: 85 run, 1 error). Without PYTHONUTF8 on a cp1252 console, 8 test_discord_mirror tests error on main and on the merge alike (UnicodeEncodeError on U+200B), unrelated.
title run: none
review: read the whole diff. The header is now matched only at the start of a line (^[ \t]*xcl-smoke v1[ \t]*\r?\n, re.M), in the block start and in the lookahead that ends a block, so a title: value containing "xcl-smoke v1" no longer splits a block; two blocks in one fence and CRLF bodies still parse (existing tests pass). Behaviour change to know about: a header with other text before it on the same line (e.g. "- xcl-smoke v1" or "main xcl-smoke v1") is no longer recognised; smoke.ps1 prints it on its own line, so pasted blocks are unaffected. Overlap (Foniass's triage): #2010 (v1/v2 regex) and #2715 (reads blocks from the Regression run section) both merge cleanly into main alone but conflict textually with this merge result (git merge-tree); neither anchors the header, so whichever lands second needs a rebase that keeps the ^...$ anchoring.
performance: none (CI script in scripts/, no runtime code)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4090 24 GB, driver 621.40; Intel Core i9-13900K, 32 GB; Windows 11 build 26300; rustc 1.100.0; Python 3.13.15; Claude Code, Claude Opus 5.5

<!-- greyfinch-sync:ivall/xcl:comment:7355021715 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2644#issuecomment-7355021715). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-12-02T18:42:09Z. --- merge-check base: c53e96960265a82477a9c98677afb0402e98d486 head: 61920f94b93ff6cdcf4a1620999a4b6c79757eb2 merge: clean (`git merge --no-ff` onto c53e9696, merge 364b2972; scripts/pr_check.py and scripts/test_pr_check.py, +6/-1) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3004 passed, 0 failed, 52 ignored; failing: none (SKIPPED 25: 22 no wave64, 2 no heap windows, 1 cannot disable the driver cache). CI does not run the script tests, so by hand: `python -m unittest test_pr_check` (in scripts/) -> 14 passed, 0 failed; with main's pr_check.py and the PR's test file -> 1 failure (the new test_smoke_header_in_title_does_not_end_block), so the test fails without the fix. `PYTHONUTF8=1 python -m unittest discover -s scripts -p "test_*.py"` -> 86 run, 1 error (test_discord_mirror test_nothing_is_written_when_the_state_cannot_be_saved; same error on main: 85 run, 1 error). Without PYTHONUTF8 on a cp1252 console, 8 test_discord_mirror tests error on main and on the merge alike (UnicodeEncodeError on U+200B), unrelated. title run: none review: read the whole diff. The header is now matched only at the start of a line (`^[ \t]*xcl-smoke v1[ \t]*\r?\n`, re.M), in the block start and in the lookahead that ends a block, so a `title:` value containing "xcl-smoke v1" no longer splits a block; two blocks in one fence and CRLF bodies still parse (existing tests pass). Behaviour change to know about: a header with other text before it on the same line (e.g. "- xcl-smoke v1" or "**main** xcl-smoke v1") is no longer recognised; smoke.ps1 prints it on its own line, so pasted blocks are unaffected. Overlap (Foniass's triage): #2010 (v1/v2 regex) and #2715 (reads blocks from the Regression run section) both merge cleanly into main alone but conflict textually with this merge result (`git merge-tree`); neither anchors the header, so whichever lands second needs a rebase that keeps the `^...$` anchoring. performance: none (CI script in scripts/, no runtime code) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4090 24 GB, driver 621.40; Intel Core i9-13900K, 32 GB; Windows 11 build 26300; rustc 1.100.0; Python 3.13.15; Claude Code, Claude Opus 5.5
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!2634
No description provided.