Repository navigation
Conversation
The check of **Tested** / **Not tested** / **AI use** looked for any non-space character after the heading, so the next section's heading, or the template's lone "-", counted as the section's text: the pull request template pasted unchanged passed as "description ok". Only an empty last section was caught. A section now ends at the next heading of the outline, and comments and list markers with nothing after them are not text. A line in bold that is not one of the outline's headings still belongs to the section. scripts/pr_check.tests.py covers it without GitHub or git (python3 scripts/pr_check.tests.py): 4 of its 8 tests fail on the old check. Assisted-by: Claude Code (Claude Fable 5.2)
…there Review of xcl-dev#527 (shdann): the heading search could start inside an HTML comment, so a description with the whole Tested section commented out passed, and a section name in bold at the end of a sentence was taken for its heading. Comments are removed from the description before the headings are looked for, and a heading has to be a line of its own (leading and trailing spaces allowed). Two tests cover both; they fail on the commit before. Assisted-by: Claude Code (Claude Fable 5.2)
… hides the rest Review of xcl-dev#527 (Kalmarv), points 1 and 2: - The end of a section had no line-of-its-own rule, so a sentence under a section that began with a heading name in bold ended it: a filled Tested section was reported empty. - An unclosed <!-- hides the rest of the description on GitHub but was still read as text. It now takes the rest of the description with it. Two tests cover both; they fail on the commit before. Assisted-by: Claude Code (Claude Fable 5.2)
|
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?
Thanks! AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request. |
|
Checked the clean merge of #991 head
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. |
The hint lines under **Tested** and **AI use** in the PR template were plain text, so a description left as the template passed both section checks. With xcl-dev#527 a comment is not something written under a heading: the hints move into comments, each section keeps an empty list item to fill in, and the template test now expects all three sections refused. Fixes xcl-dev#965 Co-authored-by: Conrage <65290519+Conrage@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3a1cf0e to
72edc50
Compare
Stacked 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 main 9aec53d: no conflictscargo test --workspace -- --test-threads=4was 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
crates/xcl/srcchangesNot tested
PR checksworkflow on a real PR opened from the new templateAI use
🤖 Generated with Claude Code