PR checks: the template's hints are comments, so an untouched one fails #985

Closed
aarushkha wants to merge 4 commits from upstream-pr/991 into main
aarushkha commented 2026-11-24 10:03:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by aarushkha on 2026-11-24T10:03:19Z.


Stacked on #527; only the top commit (72edc50) belongs here.

The hint lines under Tested and AI use in .github/pull_request_template.md were plain text, so a description left as the template passed both section checks (#527 already catches the lone - under Not tested). With #527 a comment is not something written under a heading, so the hints move into comments and each section keeps an empty - to fill in. Fixes #965.

What is in it

  • .github/pull_request_template.md: the Tested and AI use hints are HTML comments, followed by an empty list item (same hint text)
  • scripts/pr_check.tests.py: test_untouched_template_is_refused expects all three sections refused, not only Not tested

Tested

  • NVIDIA GeForce RTX 3060 (Windows driver 32.0.16.2101), Intel Core i5-11400F, Windows 10 22H2 (build 19045), Python 3.10
  • python scripts/pr_check.tests.py on this branch: 12 passed; with the old template the changed test fails (only Not tested refused)
  • the template with one line written under each of the three sections: check() returns no problems
  • git merge-tree of this branch with main 9aec53d: no conflicts
  • cargo test --workspace -- --test-threads=4 was not rerun on this branch: the diff touches no Rust (last run on main 9aec53d: 724 passed, 0 failed, 41 ignored; SKIPPED 2, no wave64)

Regression run

  • not needed: no file under crates/xcl/src changes

Not tested

  • the PR checks workflow on a real PR opened from the new template
  • how GitHub renders the new template in the PR form (comments are hidden in the preview, as the Regression run hint already is)

AI use

  • Claude Code with Claude Opus 5.5: wrote the change, the test and this description; I reviewed the diff and ran the tests

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:6579303204 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/991). Originally posted by [aarushkha](https://github.com/aarushkha) on 2026-11-24T10:03:19Z. --- Stacked on #527; only the top commit (72edc50) belongs here. The hint lines under **Tested** and **AI use** in `.github/pull_request_template.md` were plain text, so a description left as the template passed both section checks (#527 already catches the lone `-` under **Not tested**). With #527 a comment is not something written under a heading, so the hints move into comments and each section keeps an empty `-` to fill in. Fixes #965. **What is in it** - `.github/pull_request_template.md`: the **Tested** and **AI use** hints are HTML comments, followed by an empty list item (same hint text) - `scripts/pr_check.tests.py`: `test_untouched_template_is_refused` expects all three sections refused, not only **Not tested** **Tested** - NVIDIA GeForce RTX 3060 (Windows driver 32.0.16.2101), Intel Core i5-11400F, Windows 10 22H2 (build 19045), Python 3.10 - `python scripts/pr_check.tests.py` on this branch: 12 passed; with the old template the changed test fails (only **Not tested** refused) - the template with one line written under each of the three sections: `check()` returns no problems - `git merge-tree` of this branch with main 9aec53d: no conflicts - `cargo test --workspace -- --test-threads=4` was not rerun on this branch: the diff touches no Rust (last run on main 9aec53d: 724 passed, 0 failed, 41 ignored; SKIPPED 2, no wave64) **Regression run** - not needed: no file under `crates/xcl/src` changes **Not tested** - the `PR checks` workflow on a real PR opened from the new template - how GitHub renders the new template in the PR form (comments are hidden in the preview, as the **Regression run** hint already is) **AI use** - Claude Code with Claude Opus 5.5: wrote the change, the test and this description; I reviewed the diff and ran the tests 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Conrage commented 2026-11-24 11:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Conrage on 2026-11-24T10:25:34Z.


I opened #965. I read the top commit: with #527's comment stripping, the hints under Tested and AI use are now comments, so an untouched template fails all three sections, which fixes it.

Since this comes from my report, could you add me as co-author on 3a1cf0e when you next push?

Co-authored-by: Conrage <[email protected]>

Thanks!

AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request.

<!-- greyfinch-sync:ivall/xcl:comment:7128764285 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/991#issuecomment-7128764285). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T10:25:34Z. --- I opened #965. I read the top commit: with #527's comment stripping, the hints under **Tested** and **AI use** are now comments, so an untouched template fails all three sections, which fixes it. Since this comes from my report, could you add me as co-author on 3a1cf0e when you next push? `Co-authored-by: Conrage <65290519+[email protected]>` Thanks! AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request.
jmal423 commented 2026-11-24 11:05:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jmal423 on 2026-11-24T10:39:05Z.


Checked the clean merge of #991 head 3a1cf0e with main 6efdabc (tree 98e2edf30cc5a0ae02a412611735bda45a43c67d). One test discovery detail matters for #1019:

  • python -m unittest discover -s scripts -p "test_*.py" runs 5 tests. It misses test_untouched_template_is_refused because the stacked suite is named pr_check.tests.py.
  • python scripts/pr_check.tests.py runs 12 tests and all pass, including the untouched-template regression. Please consider renaming that suite to a distinct discoverable name such as test_pr_check_sections.py in #527; main already has a separate test_pr_check.py. Verified in an isolated local copy: changing only that filename made the same discovery command run all 17 tests successfully, including test_untouched_template_is_refused.
  • The PR checker rejected all three empty sections with the new template, and accepted it with one substantive line added to each section.

Also ran the full debug workspace on the merged tree, native Windows 11 Pro / RX 9070 XT, driver 32.0.32029.2010, Rust 1.99.1: 727 passed, 0 failed, 41 ignored. Two debug-layer skips counted as passed; retail sample variables unset.

AI use: OpenAI Codex ran the checks and wrote this note from the results.

<!-- greyfinch-sync:ivall/xcl:comment:7129063302 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/991#issuecomment-7129063302). Originally posted by [jmal423](https://github.com/jmal423) on 2026-11-24T10:39:05Z. --- Checked the clean merge of #991 head `3a1cf0e` with main `6efdabc` (tree `98e2edf30cc5a0ae02a412611735bda45a43c67d`). One test discovery detail matters for #1019: - `python -m unittest discover -s scripts -p "test_*.py"` runs 5 tests. It misses `test_untouched_template_is_refused` because the stacked suite is named `pr_check.tests.py`. - `python scripts/pr_check.tests.py` runs 12 tests and all pass, including the untouched-template regression. Please consider renaming that suite to a distinct discoverable name such as `test_pr_check_sections.py` in #527; main already has a separate `test_pr_check.py`. Verified in an isolated local copy: changing only that filename made the same discovery command run all 17 tests successfully, including test_untouched_template_is_refused. - The PR checker rejected all three empty sections with the new template, and accepted it with one substantive line added to each section. Also ran the full debug workspace on the merged tree, native Windows 11 Pro / RX 9070 XT, driver 32.0.32029.2010, Rust 1.99.1: 727 passed, 0 failed, 41 ignored. Two debug-layer skips counted as passed; retail sample variables unset. AI use: OpenAI Codex ran the checks and wrote this note from the results.
ivall commented 2026-11-24 11:06:03 +00:00 (Migrated from github.com)

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


Thanks. #965 is fixed by #1037 (merged in dc6a283), so this is superseded. Moving the template's hints into comments is still a good idea – it fits best together with #527 if that one goes in, as a follow-up on top of main.

<!-- greyfinch-sync:ivall/xcl:comment:7129623382 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/991#issuecomment-7129623382). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T11:04:36Z. --- Thanks. #965 is fixed by #1037 (merged in dc6a283), so this is superseded. Moving the template's hints into comments is still a good idea – it fits best together with #527 if that one goes in, as a follow-up on top of `main`.
upstream-sync closed this pull request 2026-11-24 12:05:08 +00:00

Pull request closed

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!985
No description provided.