PR checks: the template's hints are comments, so an untouched one fails #991
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!991
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/991/head"
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?
@aarushkha on GitHub · 2026-11-24 10:03 UTC · original
aarushkha:pr-checks-template-hints-in-comments→main· +134 −4 · 3 files · 4 commits · closed without mergingStacked on #527; only the top commit (
72edc50) belongs here.The hint lines under Tested and AI use in
.github/pull_request_template.mdwere 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_refusedexpects all three sections refused, not only Not testedTested
python scripts/pr_check.tests.pyon this branch: 12 passed; with the old template the changed test fails (only Not tested refused)check()returns no problemsgit merge-treeof this branch with main9aec53d: no conflictscargo test --workspace -- --test-threads=4was not rerun on this branch: the diff touches no Rust (last run on main9aec53d: 724 passed, 0 failed, 41 ignored; SKIPPED 2, no wave64)Regression run
crates/xcl/srcchangesNot tested
PR checksworkflow on a real PR opened from the new templateAI use
🤖 Generated with Claude Code
@Conrage on GitHub · 2026-11-24 10:25 UTC · original
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.
@jmal423 on GitHub · 2026-11-24 10:39 UTC · original
Checked the clean merge of #991 head
3a1cf0ewith main6efdabc(tree98e2edf30cc5a0ae02a412611735bda45a43c67d). One test discovery detail matters for #1019:python -m unittest discover -s scripts -p "test_*.py"runs 5 tests. It missestest_untouched_template_is_refusedbecause the stacked suite is namedpr_check.tests.py.python scripts/pr_check.tests.pyruns 12 tests and all pass, including the untouched-template regression. Please consider renaming that suite to a distinct discoverable name such astest_pr_check_sections.pyin #527; main already has a separatetest_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.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 on GitHub · 2026-11-24 11:04 UTC · original
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 ofmain.Pull request closed