WIP: docs: fence command block in semantic README and unbacktick unmerged note path #165

Closed
leonida/mandy
Andretuta wants to merge 0 commits from old-pr/9899 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Andretuta commented 2026-11-24 02:32:57 +00:00

Carried over from old PR 9899 by neoisg8 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9899, 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.
neoisg8: 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 the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677

Depends on: none.

What and why

Two documentation tests were failing on main (e56d97950):

  1. tests/test_docs_repeated_lines.py:
FAIL: test_docs_have_no_repeated_neighbouring_lines
AssertionError: Lists differ: ['tests/semantic/README.md:5 and :7'] != [] : a line repeated just below itself (keep the current one): tests/semantic/README.md:5 and :7

tests/semantic/README.md lines 5-7 had indented commands without a fenced code block (```sh), causing test_docs_repeated_lines.py to evaluate them as prose with identical first 40 characters within 3 lines of each other. Fencing them in ```sh marks them as code and resolves the failure.

  1. tests/test_docs_repo_paths.py:
FAIL: test_docs_name_existing_paths
AssertionError: Lists differ: [('docs/retail_boot_intel_host.md:4', 'docs/retail_boot_frame_loop.md')] != [] : backticked paths that name no tracked file: docs/retail_boot_intel_host.md:4 docs/retail_boot_frame_loop.md

docs/retail_boot_intel_host.md:4 backticked `docs/retail_boot_frame_loop.md` referring to unmerged PR #8554 (stops 13-28, not merged yet). The path validation regex checks backticked repository paths. Removing backticks from the reference avoids the false claim of a tracked file.

Tested

  • Windows 11 Pro 26100, Python 3.12.10, CPU only, no GPU, no game files.
  • Negative controls on main (e56d97950):
    python -I tests/test_docs_repeated_lines.py -> FAILED (failures=1)
    python -I tests/test_docs_repo_paths.py -> FAILED (failures=1)
  • Positive controls on fix/docs-repeated-lines-and-paths (4d4e9486f):
    python -I tests/test_docs_repeated_lines.py -> Ran 2 tests in 0.062s - OK
    python -I tests/test_docs_repo_paths.py -> Ran 3 tests in 0.066s - OK
  • Hygiene checks:
    python -I scripts/check_no_game_data.py docs/retail_boot_intel_host.md tests/semantic/README.md: clean.
    git diff --check origin/main: clean.

AI-assisted: yes.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: docs-only change.)
> Carried over from **old PR 9899** by `neoisg8` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9899`, 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. > `neoisg8`: 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 the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677 Depends on: none. ### What and why Two documentation tests were failing on `main` (`e56d97950`): 1. `tests/test_docs_repeated_lines.py`: ```text FAIL: test_docs_have_no_repeated_neighbouring_lines AssertionError: Lists differ: ['tests/semantic/README.md:5 and :7'] != [] : a line repeated just below itself (keep the current one): tests/semantic/README.md:5 and :7 ``` `tests/semantic/README.md` lines 5-7 had indented commands without a fenced code block (` ```sh `), causing `test_docs_repeated_lines.py` to evaluate them as prose with identical first 40 characters within 3 lines of each other. Fencing them in ```` ```sh ```` marks them as code and resolves the failure. 2. `tests/test_docs_repo_paths.py`: ```text FAIL: test_docs_name_existing_paths AssertionError: Lists differ: [('docs/retail_boot_intel_host.md:4', 'docs/retail_boot_frame_loop.md')] != [] : backticked paths that name no tracked file: docs/retail_boot_intel_host.md:4 docs/retail_boot_frame_loop.md ``` `docs/retail_boot_intel_host.md:4` backticked `` `docs/retail_boot_frame_loop.md` `` referring to unmerged PR `#8554` (`stops 13-28, not merged yet`). The path validation regex checks backticked repository paths. Removing backticks from the reference avoids the false claim of a tracked file. ### Tested - Windows 11 Pro 26100, Python 3.12.10, CPU only, no GPU, no game files. - Negative controls on `main` (`e56d97950`): `python -I tests/test_docs_repeated_lines.py` -> `FAILED (failures=1)` `python -I tests/test_docs_repo_paths.py` -> `FAILED (failures=1)` - Positive controls on `fix/docs-repeated-lines-and-paths` (`4d4e9486f`): `python -I tests/test_docs_repeated_lines.py` -> `Ran 2 tests in 0.062s - OK` `python -I tests/test_docs_repo_paths.py` -> `Ran 3 tests in 0.066s - OK` - Hygiene checks: `python -I scripts/check_no_game_data.py docs/retail_boot_intel_host.md tests/semantic/README.md`: clean. `git diff --check origin/main`: clean. AI-assisted: yes. ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: docs-only change.)
aslan2142 commented 2026-12-01 10:53:40 +00:00

Closing this carried-over draft (old-pr/9899): both fixes are already on main (tests/semantic/README.md already uses a fenced sh block and docs/retail_boot_intel_host.md no longer backticks docs/retail_boot_frame_loop.md).

(AI-assisted review.)

Closing this carried-over draft (`old-pr/9899`): both fixes are already on `main` (`tests/semantic/README.md` already uses a fenced ```sh``` block and `docs/retail_boot_intel_host.md` no longer backticks `docs/retail_boot_frame_loop.md`). *(AI-assisted review.)*
Sign in to join this conversation.
No description provided.