Scripts: read smoke blocks from the Regression run section #2715

Open
github-bot wants to merge 2 commits from github-bot/gh-2715 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 08:09 UTC · original
luckyteagirl:codex/pr-check-regression-section → main · +117 −17 · 2 files · 2 commits · draft

scripts/pr_check.py accepted a runtime PR's xcl-smoke blocks anywhere in its description. A Regression run section saying “Pending” could therefore pass when old example blocks appeared under Not tested. Read smoke blocks only from the visible Regression run section, as required by CONTRIBUTING.md.

What is in it

  • scripts/pr_check.py: extract template sections while ignoring headings in HTML comments and fenced examples; preserve fenced smoke reports and literal inline code, and accept a BOM before the first heading.
  • scripts/test_pr_check.py: reproduce misplaced-block acceptance, verify valid in-section blocks, and cover commented/fenced headings and inline comment markers.
  • Follow-up: check banned model disclosures against the visible AI use section. A commented-out example before that section no longer supplies the model text used by the audit.

Tested

  • Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (driver 30.0.13002.13003), Python 3.11.9, Rust 1.99.0 MSVC.
  • Failing-first checker fixture: the unmodified checker returned no problems for two valid blocks under Not tested with Regression run pending. The new checker reports both missing runs.
  • Failing-first follow-up fixture: a hidden HTML comment naming a banned model falsely rejected an otherwise valid visible disclosure before the fix; it passes on this head.
  • python -B -m unittest discover -s scripts -p 'test_pr_check.py': 22 passed, 0 failed, exit 0.
  • python -m unittest discover -s scripts -p 'test_*.py': 34 passed, 0 failed, exit 0.
  • git diff 49a36411 HEAD --check: passed.

Not tested

  • The workspace GPU suite or a title smoke on this script-only change.

AI use

  • OpenAI Codex (GPT-6.2 Sol) reproduced the checker defect, wrote the code and fixtures, and ran the Python tests. A second GPT-6.2 Sol agent prepared and tested the visible AI disclosure follow-up. OpenAI Codex (GPT-6.2 Astra) reviewed both diffs and reran the full Python script test set.
**@⁠luckyteagirl** on GitHub · 2026-11-26 08:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2715) `luckyteagirl:codex/pr-check-regression-section` → `main` · +117 −17 · 2 files · 2 commits · draft `scripts/pr_check.py` accepted a runtime PR's `xcl-smoke` blocks anywhere in its description. A **Regression run** section saying “Pending” could therefore pass when old example blocks appeared under **Not tested**. Read smoke blocks only from the visible **Regression run** section, as required by `CONTRIBUTING.md`. **What is in it** - `scripts/pr_check.py`: extract template sections while ignoring headings in HTML comments and fenced examples; preserve fenced smoke reports and literal inline code, and accept a BOM before the first heading. - `scripts/test_pr_check.py`: reproduce misplaced-block acceptance, verify valid in-section blocks, and cover commented/fenced headings and inline comment markers. - Follow-up: check banned model disclosures against the visible **AI use** section. A commented-out example before that section no longer supplies the model text used by the audit. **Tested** - Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (driver 30.0.13002.13003), Python 3.11.9, Rust 1.99.0 MSVC. - Failing-first checker fixture: the unmodified checker returned no problems for two valid blocks under **Not tested** with **Regression run** pending. The new checker reports both missing runs. - Failing-first follow-up fixture: a hidden HTML comment naming a banned model falsely rejected an otherwise valid visible disclosure before the fix; it passes on this head. - `python -B -m unittest discover -s scripts -p 'test_pr_check.py'`: **22 passed, 0 failed**, exit 0. - `python -m unittest discover -s scripts -p 'test_*.py'`: **34 passed, 0 failed**, exit 0. - `git diff 49a36411 HEAD --check`: passed. **Not tested** - The workspace GPU suite or a title smoke on this script-only change. **AI use** - OpenAI Codex (GPT-6.2 Sol) reproduced the checker defect, wrote the code and fixtures, and ran the Python tests. A second GPT-6.2 Sol agent prepared and tested the visible AI disclosure follow-up. OpenAI Codex (GPT-6.2 Astra) reviewed both diffs and reran the full Python script test set.
Use the template section boundaries when collecting the two smoke runs. Check that runs under Not tested cannot satisfy a missing, empty, or pending Regression run section.

Assisted-by: OpenAI Codex (GPT-6.2 Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:14:32 +00:00
github-bot force-pushed github-bot/gh-2715 from b408fdc3cb to 49a364110a 2026-11-26 08:22:40 +00:00 Compare
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/2715/head:github-bot/gh-2715'
git switch 'github-bot/gh-2715'

Merge

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