PR checks: an untouched PR template passes the Tested and AI use checks #959

Closed
opened 2026-11-24 09:37:27 +00:00 by Conrage · 1 comment
Conrage commented 2026-11-24 09:37:27 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by Conrage on 2026-11-24T09:37:27Z.


The placeholder lines in .github/pull_request_template.md count as content:

  • under Tested: - hardware (GPU + driver, CPU), Rust version, debug / release: and the cargo test … N passed … line
  • under AI use: - none / tool and model, and what it did

On main, check() on the unedited template returns no problems for a docs-only PR: the \S in the section regex (pr_check.py:57) matches the placeholder text, and the lone - under Not tested too.

#527 fixes empty sections (a lone - no longer counts), so on its branch only Not tested is reported. Tested and AI use still pass with the placeholder text.

Repro (run locally on main and on #527's branch):

from pr_check import check
body = open(".github/pull_request_template.md").read()
print(check(body, "abc1234def", [("README.md", "modified", False, lambda: 10)], lambda s: True))
# main:  []
# #527:  ['the **Not tested** section is missing or empty']

Suggested fix: move the hints into HTML comments (#527 already strips comments), or treat a section whose only text is the template's placeholder line as empty.

AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.

<!-- greyfinch-sync:ivall/xcl:issue:6578856380 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/965). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T09:37:27Z. --- The placeholder lines in `.github/pull_request_template.md` count as content: - under **Tested**: `- hardware (GPU + driver, CPU), Rust version, debug / release:` and the `cargo test … N passed …` line - under **AI use**: `- none / tool and model, and what it did` On main, `check()` on the unedited template returns no problems for a docs-only PR: the `\S` in the section regex ([pr_check.py:57](https://github.com/ivall/xcl/blob/077ce40/scripts/pr_check.py#L57)) matches the placeholder text, and the lone `-` under **Not tested** too. #527 fixes empty sections (a lone `-` no longer counts), so on its branch only **Not tested** is reported. **Tested** and **AI use** still pass with the placeholder text. **Repro (run locally on main and on #527's branch):** ```python from pr_check import check body = open(".github/pull_request_template.md").read() print(check(body, "abc1234def", [("README.md", "modified", False, lambda: 10)], lambda s: True)) # main: [] # #527: ['the **Not tested** section is missing or empty'] ``` **Suggested fix:** move the hints into HTML comments (#527 already strips comments), or treat a section whose only text is the template's placeholder line as empty. **AI use:** found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
ivall commented 2026-11-24 11:06:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T11:04:32Z.


Fixed by #1037 (dc6a283): the template's placeholder lines, comments and lone bullets no longer count as an answer, so an untouched template fails Tested, Not tested and AI use.

<!-- greyfinch-sync:ivall/xcl:comment:7129621982 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/965#issuecomment-7129621982). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T11:04:32Z. --- Fixed by #1037 (dc6a283): the template's placeholder lines, comments and lone bullets no longer count as an answer, so an untouched template fails **Tested**, **Not tested** and **AI use**.
Sign in to join this conversation.
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#959
No description provided.