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

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

@⁠Andretuta on GitHub · 2026-11-24 02:32 UTC · original
ubiquitarianism:old-pr/9899 → main · +6 −4 · 2 files · 1 commits · draft

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.)
**@⁠Andretuta** on GitHub · 2026-11-24 02:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/165) `ubiquitarianism:old-pr/9899` → `main` · +6 −4 · 2 files · 1 commits · draft > 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.)
Fence the command block in tests/semantic/README.md with \\\sh so that
test_docs_repeated_lines.py does not treat identical command prefixes as repeated prose.
Unbacktick the reference to retail_boot_frame_loop.md of unmerged PR #8554 in
docs/retail_boot_intel_host.md so test_docs_repo_paths.py does not assert tracked existence.

Fixes:
- tests/test_docs_repeated_lines.py: tests/semantic/README.md:5 and :7
- tests/test_docs_repo_paths.py: docs/retail_boot_intel_host.md:4 docs/retail_boot_frame_loop.md

AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:47:03 +00:00
This pull request has changes conflicting with the target branch.
  • docs/retail_boot_intel_host.md
  • tests/semantic/README.md
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/165/head:github-bot/gh-165'
git switch 'github-bot/gh-165'

Merge

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