fix(tools): check doc links whose text is inline code #8638
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8638"
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?
Imported from boykopovar/AnyPS5. Originally posted by Tripchipp on 2026-10-20T19:38:33Z.
What
links()intools/check_conventions.pyremoved inline code before it looked for links. When a link's text is entirely inline code, such as[`DrawPipeline::HeldReads`](path), the text was left empty and the link was skipped.doc-linktherefore never checked these links. There are 55 of them in the repository. Inline code is now replaced with placeholder text instead of being removed, so the link is still found. Code spans that only look like links, such as[](auto), still yield no link.With this change, a scan of every tracked
.mdfile finds one dead link: [DrawPipeline::HeldReads] in the "Storage image write-back" entry ofdocs/dev/debt/libSceAgcDriver.md. It points toExecution/src/Driver/Draw/DrawPipeline.hpp, but the header is inExecution/include/Driver/Draw/. #7912 edits that line, so this PR leaves it alone to avoid a conflict. Once this is merged, #7912 needs that path corrected to pass the check. The check only looks at changed lines, so no other existing line fails.Tested
macOS (Apple Silicon), Python 3.14.4:
links()test fails without the fix and passes with it.tools/tests/test_*.pyfiles pass when run as CMake runs them.test_shader_cache_runtime_sources.pywas not run: it needs CMake, which is not installed here.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pywas too heavy to run on this machine. I checked overlap by hand instead: no open PR changeslinks(),INLINEor the doc-link tests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-20T22:35:13Z.
Windows data point for
e58fcc9c3b: Windows 10.0.19045, Python 3.12.10,python -I -m unittest discover -s tools/tests -p test_check_conventions_doc_links.py, PR head checked out (not merged ontomain).tools/check_conventions.pyrestored tomain(new test kept): 6 tests, 1 failure.Not tested: other platforms, a merge onto current
main.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T03:11:33Z.
Linux data point for
e58fcc9c3b(WSL2, Ubuntu 24.04, kernel 6.18 - a virtualised kernel, not bare-metal Linux; Python 3.12.3), this head merged ontomain5d10ea9ea(clean merge),python3 -I tools/tests/test_check_conventions_doc_links.py:test_check_conventions_doc_links.pyon top ofmainwithout the PR's source change): FAILED (1 failure).Not tested: macOS, Windows (Windows data from another run is not part of this comment).
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T03:29:29Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
tools/check_conventions.py