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

Open
github-bot wants to merge 1 commit from github-bot/gh-2644 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 04:52 UTC · original
luckyteagirl:codex/smoke-header-line → main · +6 −1 · 2 files · 1 commits · open

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.
**@⁠luckyteagirl** on GitHub · 2026-11-26 04:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/2644) `luckyteagirl:codex/smoke-header-line` → `main` · +6 −1 · 2 files · 1 commits · open `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.
The title argument can contain xcl-smoke v1 on a field line. An unanchored match treats the text as a boundary and loses the following run measurements. Require standalone headers and cover a matched pair of regression reports with that title.

Assisted-by: Codex (GPT-6.2 Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:28 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2644/head:github-bot/gh-2644'
git switch 'github-bot/gh-2644'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2644'
git switch 'github-bot/gh-2644'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2644'
git switch 'github-bot/gh-2644'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2644'
git switch 'main'
git merge --squash 'github-bot/gh-2644'
git switch 'main'
git merge --ff-only 'github-bot/gh-2644'
git switch 'main'
git merge 'github-bot/gh-2644'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.