Skip to content

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

Open
vladbondarenko97 wants to merge 1 commit into
xcl-dev:mainfrom
vladbondarenko97:pr-checks/contributing-outline-hints
Open

vladbondarenko97 wants to merge 1 commit into
xcl-dev:mainfrom
vladbondarenko97:pr-checks/contributing-outline-hints

Conversation

@vladbondarenko97

Copy link
Copy Markdown
Contributor

#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

xcl-dev#1037 made the hint lines of .github/pull_request_template.md count as
empty, but the outline in CONTRIBUTING.md ("PR description") has hint
lines of its own, and AGENTS.md tells agents to write to that outline.
Pasted unedited, it passed the Tested, Not tested and AI use checks.
Its six hint lines under those sections are placeholders now too.

Checked against the descriptions of 1,200 PRs of this repository: no
verdict changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@futurepro62

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

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

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

Thanks!

@ivall ivall added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants