Repository navigation
ci: run the documentation tests on docs-only pull requests - #1738
Merged
Merged
Conversation
This was referenced Nov 22, 2026
Contributor
Independent code review and test of PR #1738 (PROC-92)Commit tested: 81fa469 (head of PR #1738, branch What was verifiedStatic code review of
CPU tests executed: python -I tests/test_docs_links.py -v
python -I tests/test_i18n_index.py -v
python -m compileall -q tests/test_docs_links.py tests/test_i18n_index.pyResult: 5/5 OK ( ConclusionStatic review found no correctness issues. The fix correctly closes the CI gap where docs-only changes bypassed the documentation tests. YAML is well-formed. AI-assisted. No GPU or game-corpus run claimed. |
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A docs-only PR currently skips the only tests that read the documentation.
ci.yml'schange-scopejob marksREADME.md,CONTRIBUTING.md,AGENTS.mdanddocs/**/*.mdas docs-only, and every other job — includingcheck— is then skipped. Butcheckis the only job that runs:tests/test_docs_links.py, which walks every tracked Markdown file (including the ones in that path list);tests/test_i18n_index.py, which readsdocs/i18n/README.md.runtime.ymlignoresdocs/**andtests/**,no-game-data.ymlonly scans binary extensions, andjactionlint.ymlonly runs on.github/**, so nothing else covers them.Proof
On
a0acd33d(theci.ymllogic is identical at current main):[broken docs link](docs/does-not-exist.md)toREADME.md.docs-only=truepython3 -I tests/test_docs_links.py-> FAIL:README.md: docs/does-not-exist.md (missing file)frrow todocs/i18n/README.md.docs-only=truepython3 -I tests/test_i18n_index.py-> FAIL:Lists differ: ['fr'] != []Both broken states merge with green CI today. The proof commits were temporary and reset; this branch contains only the fix.
Fix
When
docs-onlyis true,change-scope(ubuntu-latest, Python 3 preinstalled) runs the two standard-library checks. It adds a few seconds to a docs-only run and no time to code PRs, because the step is gated on the existing output.Tests
YAML was parsed and the new step's position/condition asserted locally.
actionlintis not installed here, so the repo'sjactionlintworkflow will lint the.github/**change in CI.Scope note: this does not overlap #800's runtime allow-list/test-discovery work or #801-#803. It is the documentation-only branch of the same issue.