[PR #165] docs: fence command block in semantic README and unbacktick unmerged note path #217

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

📋 Pull Request Information

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

Base: main ← Head: old-pr/9899


📝 Commits (1)

  • 4d4e948 docs: fence command block in semantic README and unbacktick unmerged note path

📊 Changes

2 files changed (+6 additions, -4 deletions)

View changed files

📝 docs/retail_boot_intel_host.md (+1 -1)
📝 tests/semantic/README.md (+5 -3)

📄 Description

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.)

🔄 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/165 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9899` --- ### 📝 Commits (1) - [`4d4e948`](https://github.com/ubiquitarianism/leonida/commit/4d4e9486f5e5b540bfc92aace69085f706ef563e) docs: fence command block in semantic README and unbacktick unmerged note path ### 📊 Changes **2 files changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/retail_boot_intel_host.md` (+1 -1) 📝 `tests/semantic/README.md` (+5 -3) </details> ### 📄 Description > 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.) --- <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#217
No description provided.