Skip to content

docs: close the unclosed fence in runtime/README.md and the dead local-note link (test_docs_links red on main) - #8169

Open
evilclanker9000 wants to merge 3 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/7-docs-fence-balance
Open

evilclanker9000 wants to merge 3 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/7-docs-fence-balance

Conversation

@evilclanker9000

Copy link
Copy Markdown
Contributor

python -I tests/test_docs_links.py is red on main right now, on two links. Both come from pages merged yesterday, and one of them is a rendering bug in runtime/README.md: a code fence that is never closed.

What changed

  • runtime/README.md: the d3d12_placed_dimensions_test commands open a powershell code fence that nothing closes. Every heading and link from "1D render targets and depth buffers" to the end of the page therefore renders as code, and the anchor docs/dev-tools.md links to ("A 600-frame headless guest scene") is gone from the page. One closing fence fixes the page.
  • docs/gpu_test_results.md: the Entry column linked gpu-test-results/RX9070GRE.txt, a note the reporter kept on their own machine; the file has never been in the repository. The run itself is already quoted in the section below the table, so the cell now says where the note is instead of linking a missing file.
  • tests/test_docs_links.py: odd_fence_pages() counts the fence markers of every tracked page and names a page with an odd count. The link check only found this one because a heading the fence swallowed happened to be linked from another page, and it reported it as "anchor not found" - the consequence, not the cause. A negative control pins that a fence indented four spaces is a code block, not a fence, and that a closed page and a page without fences are not flagged.

Test

No GPU, no game files. Standard library only.

Before, on upstream/main (dde82f27e, unmodified):

$ python -I tests/test_docs_links.py
Ran 7 tests in 1.896s
FAILED (failures=1)
docs\dev-tools.md: ../runtime/README.md#a-600-frame-headless-guest-scene (anchor not found)
docs\gpu_test_results.md: gpu-test-results/RX9070GRE.txt (missing file)

After:

$ python -I tests/test_docs_links.py
Ran 9 tests in 1.421s
OK

The new check against main's runtime/README.md alone, with only the fence fix stashed:

$ python -I tests/test_docs_links.py
FAIL: test_every_page_closes_its_code_fences
AssertionError: Lists differ: ['runtime\\README.md'] != []
 : a code fence is never closed, so the rest of the page renders as code

Also run, all green: python -I tests/test_docs_table_rows.py, tests/test_docs_repeated_lines.py, tests/test_docs_repo_paths.py, and python -I scripts/check_no_game_data.py docs/gpu_test_results.md runtime/README.md tests/test_docs_links.py (exit 0).

Notes

  • I counted the fence markers of all 105 tracked Markdown pages: runtime/README.md (35 markers) was the only odd one, so the new check needs no exceptions or skip list.
  • I did not add the missing local note as a repository file: its content is already quoted verbatim in the section under the table, and a .txt copy would only duplicate the page.
  • Two other tests are red on main for unrelated reasons (test_bvh_slot_check, test_text_write_line_endings); the latter's two sites (tools/leonida_tui.py:753, tools/wave_diff.py:373) are already claimed in Coordinating who works on what (49) (moved to #8186) #8047 and are not touched here.
  • docs/dev-tools.md and docs/gpu_test_results.md are still not listed in the docs/README.md index; that is a separate item, left alone here.

Item: EGEN-DOCS-FENCE-BALANCE

AI-assisted.

The d3d12_placed_dimensions_test commands open a powershell code fence that
nothing closes, so every heading and link from "1D render targets and depth
buffers" to the end of the page renders as code. The anchor docs/dev-tools.md
links to ("A 600-frame headless guest scene") disappeared with it, and the page
had one odd fence marker out of the 105 tracked Markdown pages.
The Entry column linked gpu-test-results/RX9070GRE.txt, a note the reporter kept
on their own machine, so tests/test_docs_links.py reported a missing file. The
run itself is already quoted in the section below the table; the cell now says
where the note is instead of linking a file that was never committed.
An unclosed fence renders every heading, link and table after it as code. The
link check only noticed the one in runtime/README.md because a heading it
swallowed was linked from another page, and it reported that as a missing
anchor: the consequence, not the cause. odd_fence_pages() counts the fence
markers per page and names the page; a negative control pins that a fence
indented four spaces is a code block, not a fence, and that a closed page and a
page without fences are not flagged.

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified via Tier 2 Free Cloud & local test execution: Replaces the uncommitted local note link in docs/gpu_test_results.md and adds parity check test_every_page_closes_its_code_fences in test_docs_links.py. All 9 tests in test_docs_links.py pass cleanly (green).

@morodirule

Copy link
Copy Markdown

Tested a40b202 on Arch Linux, Python 3.14.10, CPU only: pass — new fence + dead-link coverage green (odd_fence_pages empty on fixed tree, 35->36 markers; fails 2 on base README as designed). Overlap verified: the README hunk is byte-identical to closed-unmerged #7228 and conflicting #7242 — this PR is the mergeable vehicle (fence fix + gpu-results dead-link fix + only regression test). Recommend closing #7228/#7242 as superseded if this lands. No game files. AI-assisted.

@lines9686-rgb

Copy link
Copy Markdown
Contributor

Tested a40b20296 merged onto main dde82f27e on Windows 11, Python 3.12.0 (Windows PowerShell 5.1), user profile path with non-ASCII characters: pass.

  • python -I tests/test_docs_links.py: 9 tests OK (red on main before this PR).
  • Fails on main: with only runtime/README.md put back to main's version, test_every_page_closes_its_code_fences fails with ['runtime\\README.md'] != [], and test_every_relative_link_resolves fails on docs\dev-tools.md: ../runtime/README.md#a-600-frame-headless-guest-scene (anchor not found).
  • CRLF: with runtime/README.md and docs/gpu_test_results.md converted to CRLF, test_docs_links.py is still 9 OK, so the fence count does not depend on line endings.
  • python -I tests/test_docs_table_rows.py (2 OK), tests/test_docs_repeated_lines.py (2 OK), tests/test_docs_repo_paths.py (3 OK); python -I scripts/check_no_game_data.py docs/gpu_test_results.md runtime/README.md tests/test_docs_links.py: exit 0.

No game files. AI-assisted (Claude Code).

@rideinstead

Copy link
Copy Markdown

TEST validation — Approve

Validated on CPU (no GPU, no game files). Pure Python test, standard library only.

What changed: runtime/README.md — adds closing code fence to unclosed PowerShell fence. docs/gpu_test_results.md — replaces dead link with text. tests/test_docs_links.py — adds odd_fence_pages() and test_every_page_closes_its_code_fences plus negative controls. Went from 7 to 9 tests.

Verification (author): On main (dde82f27e), test_docs_links.py fails: test_every_page_closes_its_code_fences flags runtime/README.md (35 fence markers — only odd one among 105 tracked pages), and test_every_relative_link_resolves reports the dev-tools.md anchor as missing. After fix: 9/9 OK.

Independent verification:

  • morodirule (Arch Linux, Python 3.14.10): pass — new fence + dead-link coverage green; odd_fence_pages empty on fixed tree; fails 2 on base README as designed.
  • lines9686-rgb (Windows 11, Python 3.12.0): 9/9 OK; all related tests pass (test_docs_table_rows.py, test_docs_repeated_lines.py, test_docs_repo_paths.py, check_no_game_data.py exit 0).
  • devnull34: Approved via Tier 2 Free Cloud & local test execution.

Note: Two related but unmerged PRs (#7228, #7242) overlap on the README fence fix — #8169 is the mergeable vehicle (fence + dead-link + regression test).

Recommendation: Approve / merge. CPU-validatable, verified by three contributors on two OSes, well-scoped, with genuine regression test.

@sergiocr06

Copy link
Copy Markdown

Tested a40b202 on Windows 11 Pro (10.0.26300), Python 3.14.7, CPU only: pass.

  • python -I tests/test_docs_links.py on upstream/main: 7 tests, 1 failure (test_every_relative_link_resolves: the docs/dev-tools.md → ../runtime/README... link, from the unclosed fence).
  • Same at the PR head: 9 tests, OK.
  • Read the diff: the added closing fence in runtime/README.md ends the PowerShell block before ### 1D render targets and depth buffers, and the gpu_test_results.md cell no longer links a file that is not in the repository.

AI-assisted (Claude Code).

@memorypressure

Copy link
Copy Markdown

Heads tested: a40b202 vs main dde82f2; merged tree contains dfe4e4a; recheck clean vs d612f65/867d922f0 (tree ba517432e). On the merged tree test_docs_links Ran 9 OK — including test_every_relative_link_resolves, red on main before this PR (reproduced byte-identically on a clean worktree). Vacuity: the new test_every_page_closes_its_code_fences injected into main's file runs Ran 1, failures=1, naming runtime/README.md; that page's fence count goes 35→36, and your independent repo-wide parity count found it the only odd page — no exception list needed. The negative control has real teeth (4-space fence stays code; closed and fence-free pages not flagged). Companion suites green merged; check_no_game_data clean. This closes the standing docs-links red from the #6691 odd-fence regression — verified independently. CI pending at check time. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants