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

Closed
Andretuta wants to merge 1 commit from upstream-pr/103 into main
Andretuta commented 2026-11-24 02:18:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:18:26Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464830880 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/103). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:18:26Z. --- > 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)
DadaCap commented 2026-11-28 10:32:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T10:32:38Z.


Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures.

Reason: stale carried-over PR, conflicting.

If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7237964308 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/103#issuecomment-7237964308). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T10:32:38Z. --- Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures. Reason: stale carried-over PR, conflicting. If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

Pull request closed

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
ProjectLeonida/mandy!103
No description provided.