Skip to content

runtime/README.md: close the code fence that hid the headings after the 1D render targets section (EGEN-RUNTIME-README-FENCE) - #7351

Open
evilclanker9000 wants to merge 3 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/5-runtime-readme-fence
Open

evilclanker9000 wants to merge 3 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/5-runtime-readme-fence

Conversation

@evilclanker9000

Copy link
Copy Markdown
Contributor

runtime/README.md opened a second ```powershell fence at line 453 (the d3d12_placed_dimensions_test block) and never closed it before ### 1D render targets and depth buffers. GitHub pairs the fence with the next opening marker, so everything from that heading through the first-boot trace rendered as code: the headings First-boot D3D12 trace and A 600-frame headless guest scene existed in the source but produced no anchors, and docs/d3d12_vulkan.md and docs/dev-tools.md link to them.

This closes the block (one closing fence and the blank line before the heading), and extends tests/test_docs_links.py with a fence check so a page that leaves a fence open is named with its line instead of showing up only as a missing anchor somewhere else:

  • unclosed_fences() reports an opening fence that a later closing fence never pairs with. A closing fence carries no info string, so a line such as ```powershell inside an open block is a new opener: that is exactly the shape the runtime README had, and the synthetic page in the self-check uses it.
  • test_every_code_fence_closes runs the check over the tracked Markdown pages.

Test

No GPU needed; standard library only.

python -I tests/test_docs_links.py

Before (on upstream/main), 1 test failed:

FAIL: test_every_relative_link_resolves
('docs\\d3d12_vulkan.md', '../runtime/README.md#first-boot-d3d12-trace', 'anchor not found')
('docs\\dev-tools.md', '../runtime/README.md#a-600-frame-headless-guest-scene', 'anchor not found')

With the new check present and only the README change reverted, it also reports the fence itself:

FAIL: test_every_code_fence_closes
code fences left open, so the rest of the page renders as code: runtime\README.md:453

After the change (3 commits):

Ran 9 tests in 1.699s
OK

The other standalone docs tests (test_docs_env_vars, test_docs_repo_paths, test_docs_table_rows, test_docs_repeated_lines) still pass. test_docs_cli_flags fails on upstream/main as well (five scripts/dev.py guest-scene flags in docs/dev-tools.md), which is a separate finding posted in the coordination issue.

Notes

  • Kept the detector line-based and standard library only, like the rest of the file; it treats a line whose stripped form starts with three backticks as a marker. No page in the tree uses a longer or tilde fence today.
  • A stray closing fence with nothing open is ignored: it renders nothing and is not what hid the headings here.

AI-assisted.

The 1D render targets and depth buffers section added a second `powershell opener where the previous block's closing fence belongs, so GitHub rendered everything from that heading through the first-boot trace as code and the 600-frame headless guest scene heading produced no anchor.
A closing fence carries no info string, so a line such as `powershell inside an open block means the page left the previous block unclosed and the rest of it renders as code. The synthetic page in the self-check has the shape runtime/README.md had.
An unclosed fence hides the headings after it from GitHub and from this checker's anchors, so the page whose fences stay open is named with its line: runtime/README.md:453 before the previous commit.
@best2135

Copy link
Copy Markdown

Tested 6d82e5a on Linux (kernel 7.2), Python 3.14.8, CPU only: pass

On main (26ecd9f) test_docs_links fail; at this head and with this head merged onto 26ecd9f they pass.

python -I tests/test_docs_links.py

AI-assisted check (Claude Code); counts and pass/fail only, no game data.

@Jadiac5

Jadiac5 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 6d82e5a on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: pass

  • Python 3.12.10, CPU only: python -I tests/test_docs_links.py: 9 tests OK. The existing Linux run in the comments is the only other one, so this adds Windows.
  • Negative control: runtime/README.md put back to the merge base, new test kept. 2 tests fail: test_every_code_fence_closes (new) and test_every_relative_link_resolves (the runtime/README.md#a-600-frame-headless-guest-scene anchor from docs/dev-tools.md is missing). Restored, 9 OK.
  • Old test file with old README: 7 tests, 1 fails (the link test), so the new fence test is what names the cause.
  • Not done: other Markdown renderers. Not run against the retail executable.

AI-assisted (Claude Code).

@Daazd

Daazd commented Nov 23, 2026

Copy link
Copy Markdown

Independent check (Linux, Python 3.12.3, Node 24.13, CPU only, no game files): head 6d82e5aa2 merged onto main 6a4299563: merges clean.

  • python3 -I tests/test_docs_links.py: Ran 9 tests in 0.106s FAILED (failures=1) (exit 1)

Clears the runtime/README.md#a-600-frame-headless-guest-scene anchor failure in test_docs_links. Same fix as #7217 and #7228. The remaining RX9070GRE link is #7531 / #7532.

AI-assisted (Claude Code).

@airp1ane

Copy link
Copy Markdown
Contributor

Tested 6d82e5a on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass.

Ran the test files this PR adds or changes, from a clean checkout of the PR head: test_docs_links.py - all exit 0.

AI-assisted (Claude Code).

@PingasMech

Copy link
Copy Markdown

I checked GitHub’s rendered HTML for runtime/README.md. On main at dde82f27 it has 19 headings. On this PR (6d82e5aa) and #7217 (1fec1921) it has 20. The one heading the fix restores is 1D render targets and depth buffers. GitHub already emits the a-600-frame-headless-guest-scene anchor on main. The local link checker reports that anchor missing because its regular expression pairs the opening fence with the next three backticks, even when that line carries a language tag. 600-frame section on main · Restored 1D section on this PR

The README fix works. I would narrow the regression test before merging. For example, unclosed_fences() reports lines 1 and 5 in this valid example of a Markdown page showing a Python code block:

````markdown
```python
pass
```
````

The four-backtick fence encloses the shorter markers as literal text. A focused assertion that anchors(runtime_readme) contains 1d-render-targets-and-depth-buffers failed on the original README and passed with the fix. That checks the section readers actually lost. With the independent RX 9070 GRE link correction applied alongside this PR, all nine existing link tests passed on Windows. AI-assisted review. GitHub Flavored Markdown fence rules

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.

6 participants