docs: fix the four doc-test failures on main (repeated lines, CLI flags, a missing path) #103

Open
github-bot wants to merge 1 commit from github-bot/gh-103 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:18 UTC · original
ubiquitarianism:old-pr/9835 → main · +13 −9 · 4 files · 1 commits · draft

Carried over from old PR 9835 by Kiril-Donec in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9835, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
This branch conflicts with the current main and needs a rebase.
Kiril-Donec: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in #9677. test_docs_repeated_lines, both test_docs_cli_flags tests and test_docs_repo_paths fail on main at 2d53a80, after the batch of merges.

Failure Cause Fix
test_docs_repeated_lines: tests/semantic/README.md:5 and :7 the three run commands were an indented code block, which the checker reads as prose fenced sh block
test_docs_name_existing_flags: docs/embedded_shaders.md:372-377 the page quotes spirv-opt passes (--ssa-rewrite, --merge-blocks, ...) added to FOREIGN in tests/test_docs_cli_flags.py, next to gh's and pip's flags
same test: docs/i18n/pt-PT/quickstart.md:45-46 --profile the paragraph still described tools/pc_checker.py, which main no longer has points at the browser checker, as README.md does
test_fenced_commands_use_the_flags_of_their_tool: docs/testing.md:318 --prefix $(brew --prefix llvm) is Homebrew's flag, not bench_wave64.py's --prefix added to FOREIGN
test_docs_repo_paths: docs/retail_boot_intel_host.md:4 names docs/retail_boot_frame_loop.md, which is only in #8554 names those notes without a repository path

Testing (Windows 11, Python 3.12): test_docs_links, test_docs_repeated_lines, test_docs_list_items, test_docs_cli_flags, test_docs_repo_paths, test_i18n_index, test_docs_table_rows, test_docs_table_ids: 32 tests OK; 4 failures on main before. No game data.

AI-assisted (Claude Code): ran the doc tests on main, traced each failure to its line, made the fixes above and reran the tests.

🤖 Generated with Claude Code

**@⁠Andretuta** on GitHub · 2026-11-24 02:18 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/103) `ubiquitarianism:old-pr/9835` → `main` · +13 −9 · 4 files · 1 commits · draft > Carried over from **old PR 9835** by `Kiril-Donec` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9835`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > This branch conflicts with the current `main` and needs a rebase. > `Kiril-Donec`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in `#9677`. `test_docs_repeated_lines`, both `test_docs_cli_flags` tests and `test_docs_repo_paths` fail on `main` at `2d53a80`, after the batch of merges. | Failure | Cause | Fix | |---|---|---| | `test_docs_repeated_lines`: `tests/semantic/README.md:5 and :7` | the three run commands were an indented code block, which the checker reads as prose | fenced `sh` block | | `test_docs_name_existing_flags`: `docs/embedded_shaders.md:372-377` | the page quotes `spirv-opt` passes (`--ssa-rewrite`, `--merge-blocks`, ...) | added to `FOREIGN` in `tests/test_docs_cli_flags.py`, next to gh's and pip's flags | | same test: `docs/i18n/pt-PT/quickstart.md:45-46` `--profile` | the paragraph still described `tools/pc_checker.py`, which `main` no longer has | points at the browser checker, as `README.md` does | | `test_fenced_commands_use_the_flags_of_their_tool`: `docs/testing.md:318` `--prefix` | `$(brew --prefix llvm)` is Homebrew's flag, not `bench_wave64.py`'s | `--prefix` added to `FOREIGN` | | `test_docs_repo_paths`: `docs/retail_boot_intel_host.md:4` | names `docs/retail_boot_frame_loop.md`, which is only in `#8554` | names those notes without a repository path | **Testing** (Windows 11, Python 3.12): `test_docs_links`, `test_docs_repeated_lines`, `test_docs_list_items`, `test_docs_cli_flags`, `test_docs_repo_paths`, `test_i18n_index`, `test_docs_table_rows`, `test_docs_table_ids`: 32 tests OK; 4 failures on `main` before. No game data. AI-assisted (Claude Code): ran the doc tests on `main`, traced each failure to its line, made the fixes above and reran the tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
test_docs_repeated_lines, test_docs_cli_flags (both tests) and test_docs_repo_paths fail on
main at 2d53a80, after the batch of merges:

- tests/semantic/README.md: the three run commands were an indented block, so the checker read
  them as prose and lines 5 and 7 as a repeat. They are now a fenced sh block.
- docs/embedded_shaders.md quotes spirv-opt passes (--ssa-rewrite, --merge-blocks, ...) and
  docs/testing.md runs `brew --prefix llvm` inside $(...); both are other programs' flags, so
  they join FOREIGN in test_docs_cli_flags.py, next to gh's and pip's.
- docs/i18n/pt-PT/quickstart.md still described tools/pc_checker.py --profile, which main no
  longer has; it now points at the browser checker, as README.md does.
- docs/retail_boot_intel_host.md named docs/retail_boot_frame_loop.md, which is only in #8554;
  it now names those notes without a repository path.

The doc tests (links, repeated lines, list items, CLI flags, repo paths, i18n index, table rows,
table ids) pass: 32 tests, 4 failures before.

AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:44:34 +00:00
This pull request has changes conflicting with the target branch.
  • docs/i18n/pt-PT/quickstart.md
  • docs/retail_boot_intel_host.md
  • tests/semantic/README.md
  • tests/test_docs_cli_flags.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/103/head:github-bot/gh-103'
git switch 'github-bot/gh-103'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-103'
git switch 'github-bot/gh-103'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-103'
git switch 'github-bot/gh-103'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-103'
git switch 'main'
git merge --squash 'github-bot/gh-103'
git switch 'main'
git merge --ff-only 'github-bot/gh-103'
git switch 'main'
git merge 'github-bot/gh-103'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.