Scripts: match smoke report headers on their own lines #2634
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2644"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T04:52:43Z.
smoke.ps1acceptsxcl-smoke v1in a-Titlelabel. 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.pymatches complete header lines and still accepts two reports in one fence.scripts/test_pr_check.pycovers a title ending inxcl-smoke v1in both reports.Tested
python -m unittest discover -s scripts -p test_pr_check.pyon Windows. The new test failed onb49be18and all 14 tests passed with the fix.scripts/smoke-title.tests.ps1passed in PowerShell 7 and Windows PowerShell 5.1.Regression run
Not tested
AI use
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
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:33:01Z.
Triage (#1607) – head
61920f9No open or merged PR makes the same change. #2010 also edits the
smoke_blocksregex (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 containingxcl-smoke v1starts 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.
Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T09:00:51Z.
merge-check
base:
1c8b551475head:
61920f94b9merge: clean (
git merge --no-editonto1c8b5514,git diff --checkclean;scripts/pr_check.pyandscripts/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 (base1c8b5514: 13 passed; newtest_smoke_header_in_title_does_not_end_blockpassed);python -m unittest discover -s scripts -p "test_*.py"-> 66 passed, 1 error (test_discord_mirror.pymissing%ComSpec%/%SystemRoot%on Windows, same failure on base1c8b5514). Rust workspace tests not run (Tier 0).review: Read the full diff (+6/-1). Anchoring
xcl-smoke v1to its own line (^[ \t]*xcl-smoke v1[ \t]*\r?\nwithre.S | re.M) inscripts/pr_check.py:46-47prevents atitle:value containingxcl-smoke v1from 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)
Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T18:42:09Z.
merge-check
base:
c53e969602head:
61920f94b9merge: clean (
git merge --no-ffontoc53e9696, 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 atitle: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