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

Open
opened 2026-11-26 20:16:58 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/103
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9835


📝 Commits (1)

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

📊 Changes

4 files changed (+13 additions, -9 deletions)

View changed files

📝 docs/i18n/pt-PT/quickstart.md (+2 -4)
📝 docs/retail_boot_intel_host.md (+1 -1)
📝 tests/semantic/README.md (+5 -3)
📝 tests/test_docs_cli_flags.py (+5 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/103 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9835` --- ### 📝 Commits (1) - [`ed47f87`](https://github.com/ubiquitarianism/leonida/commit/ed47f8741694da21876b3d9eb58b97f42fa61536) docs: the four doc-test failures on main (repeated lines, CLI flags, a missing path) ### 📊 Changes **4 files changed** (+13 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/i18n/pt-PT/quickstart.md` (+2 -4) 📝 `docs/retail_boot_intel_host.md` (+1 -1) 📝 `tests/semantic/README.md` (+5 -3) 📝 `tests/test_docs_cli_flags.py` (+5 -1) </details> ### 📄 Description > 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#155
No description provided.