PR checks: an untouched CONTRIBUTING outline fails the required sections #1539

Open
vladbondarenko97 wants to merge 1 commit from upstream-pr/1549 into main
vladbondarenko97 commented 2026-11-24 17:32:24 +00:00 (Migrated from github.com)

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


#1037 made the hint lines of the PR template count as empty, but the outline in CONTRIBUTING.md ("PR description"), the one AGENTS.md tells agents to write to, has hint lines of its own. Pasted unedited, it passed the Tested, Not tested and AI use checks (check() returns [] on main). Its six hint lines under those sections are placeholders now too.

What is in it

  • scripts/pr_check.py: the CONTRIBUTING outline's hint lines in TEMPLATE_PLACEHOLDERS. +8 −1.
  • scripts/test_pr_check.py: test_untouched_contributing_outline_fails_all_required_sections reads the outline from CONTRIBUTING.md and expects the three section problems. +14.

Tested

  • macOS, Python 3: cd scripts && python3 -m unittest test_pr_check: 14 passed. Against main's pr_check.py the new test fails (FAILED (failures=1)).
  • check() of main and of this branch on the descriptions of 1,200 PRs of this repository: no verdict changes.
  • Windows 11 (build 26300), RTX 3080 Ti (driver 32.0.16.1060), i7-12700KF, rustc 1.100.0, debug: cargo build --workspace ok; cargo test --workspace --no-fail-fast -- --test-threads=4: 775 passed, 1 failed, 41 ignored. SKIPPED: 2 (no wave64), 1 (no heap windows). The failure is e2e::test_title_runs_and_game_folder_is_untouched (presents: 0; the run was over SSH without a desktop session). This branch changes nothing that is built, so main fails it the same way there. python -m unittest test_pr_check there: 14 passed.

Regression run

  • Not needed: only scripts/pr_check.py and its tests change, nothing built into xcl.exe.

Not tested

  • The PR checks workflow itself on GitHub (it runs main's copy of the checker).
  • If the outline's hint lines change in CONTRIBUTING.md, the new test fails until the set is updated, which is intended.

AI use

  • Claude Code with Claude Opus 5.5: found the gap, wrote the change and the test, and ran the tests above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hri58aiQKmMwqS6K8CHq2s

<!-- greyfinch-sync:ivall/xcl:issue:5477168761 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1549). Originally posted by [vladbondarenko97](https://github.com/vladbondarenko97) on 2026-11-24T17:32:24Z. --- #1037 made the hint lines of the PR template count as empty, but the outline in CONTRIBUTING.md ("PR description"), the one AGENTS.md tells agents to write to, has hint lines of its own. Pasted unedited, it passed the **Tested**, **Not tested** and **AI use** checks (`check()` returns `[]` on main). Its six hint lines under those sections are placeholders now too. **What is in it** - `scripts/pr_check.py`: the CONTRIBUTING outline's hint lines in `TEMPLATE_PLACEHOLDERS`. +8 −1. - `scripts/test_pr_check.py`: `test_untouched_contributing_outline_fails_all_required_sections` reads the outline from CONTRIBUTING.md and expects the three section problems. +14. **Tested** - macOS, Python 3: `cd scripts && python3 -m unittest test_pr_check`: 14 passed. Against main's `pr_check.py` the new test fails (`FAILED (failures=1)`). - `check()` of main and of this branch on the descriptions of 1,200 PRs of this repository: no verdict changes. - Windows 11 (build 26300), RTX 3080 Ti (driver 32.0.16.1060), i7-12700KF, rustc 1.100.0, debug: `cargo build --workspace` ok; `cargo test --workspace --no-fail-fast -- --test-threads=4`: 775 passed, 1 failed, 41 ignored. SKIPPED: 2 (no wave64), 1 (no heap windows). The failure is `e2e::test_title_runs_and_game_folder_is_untouched` (`presents: 0`; the run was over SSH without a desktop session). This branch changes nothing that is built, so main fails it the same way there. `python -m unittest test_pr_check` there: 14 passed. **Regression run** - Not needed: only `scripts/pr_check.py` and its tests change, nothing built into xcl.exe. **Not tested** - The `PR checks` workflow itself on GitHub (it runs main's copy of the checker). - If the outline's hint lines change in CONTRIBUTING.md, the new test fails until the set is updated, which is intended. **AI use** - Claude Code with Claude Opus 5.5: found the gap, wrote the change and the test, and ran the tests above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hri58aiQKmMwqS6K8CHq2s
futurepro62 commented 2026-11-24 19:07:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T18:34:30Z.


Tested exact head 4542382, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest -q scripts/test_pr_check.py at the head: 14 passed, 23 subtests passed.
  • The PR's test file against current main's pr_check.py (9e3831e): 1 failed, test_untouched_contributing_outline_fails_all_required_sections; the other 13 pass. So the new test catches the problem the PR fixes.

Not tested

  • The CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7140835650 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1549#issuecomment-7140835650). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T18:34:30Z. --- Tested exact head `4542382`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `python -m pytest -q scripts/test_pr_check.py` at the head: 14 passed, 23 subtests passed. - The PR's test file against current main's `pr_check.py` (`9e3831e`): 1 failed, `test_untouched_contributing_outline_fails_all_required_sections`; the other 13 pass. So the new test catches the problem the PR fixes. **Not tested** - The CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-24 21:08:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:19:16Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7141923720 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1549#issuecomment-7141923720). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T19:19:16Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
github-actions[bot] commented 2026-11-28 08:00:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:54Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7236305521 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1549#issuecomment-7236305521). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:00:54Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 06:04:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:04:29Z.


Triage (#1607) – head 4542382

No open or merged PR adds the CONTRIBUTING.md outline lines to TEMPLATE_PLACEHOLDERS in scripts/pr_check.py; main still lists only the .github/pull_request_template.md lines. The new test reads the outline from CONTRIBUTING.md, so it will catch drift between the two.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7302450035 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1549#issuecomment-7302450035). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:04:29Z. --- **Triage (#1607)** – head 4542382 No open or merged PR adds the CONTRIBUTING.md outline lines to `TEMPLATE_PLACEHOLDERS` in `scripts/pr_check.py`; main still lists only the `.github/pull_request_template.md` lines. The new test reads the outline from CONTRIBUTING.md, so it will catch drift between the two. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1549:upstream-pr/1549'
git switch 'upstream-pr/1549'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1549'
git switch 'upstream-pr/1549'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1549'
git switch 'upstream-pr/1549'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1549'
git switch 'main'
git merge --squash 'upstream-pr/1549'
git switch 'main'
git merge --ff-only 'upstream-pr/1549'
git switch 'main'
git merge 'upstream-pr/1549'
git push origin 'main'
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!1539
No description provided.