Repository navigation
docs tests: close runtime/README.md's lost fence; spirv-opt passes are foreign flags - #7879
paratustra wants to merge 2 commits into
Conversation
…e foreign flags The ItsNotRexed#4454 merge dropped the closing fence of the d3d12_placed_dimensions_test block, so the rest of runtime/README.md renders as code and docs/dev-tools.md's link to #a-600-frame-headless-guest-scene finds no heading (tests/test_docs_links.py). docs/embedded_shaders.md (ItsNotRexed#6739) names spirv-opt passes, which tests/test_docs_cli_flags.py looked for in this repo's code; add them to FOREIGN, next to gh's and pip's.
|
Putting the I kept the seven passes in a separate set and applied that exception only in |
|
Tested d2e8168 on Arch Linux, Python 3.14.10, CPU only: pass — tests/test_docs_cli_flags.py 4/4 OK. Negative control both directions: base test file on PR tree → 2 failures (embedded_shaders FOREIGN gap); base README on PR tree → the dev-tools fence anchor reappears, gone with the PR README. Restored, green again. No game files. AI-assisted. |
…ed_shaders.md's prose only FOREIGN is also used by the fenced-command check, so a repository tool run with --merge-blocks would have passed. Keep the seven passes in PAGE_FOREIGN, applied by unknown_flags() to their one page, and test both directions.
|
@senyurah right, thanks: AI-assisted. |
|
Tested 96bde99 on Windows 11 (build 26100), Python 3.15.2: pass
No game files. AI-assisted. |
|
Tested 96bde99 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: AI-assisted (Claude Code). |
|
Tested
One thing for whoever merges: this PR and #7476 both change Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
gut0to
left a comment
There was a problem hiding this comment.
The README fence is now closed, and the docs flag checker allows spirv-opt flags only in the named prose page; the new test confirms those flags are still rejected inside commands invoking repository tools. py -3.12 -I tests/test_docs_cli_flags.py passed (5/5). est_docs_links.py has one unrelated pre-existing failure for missing docs/gpu_test_results/RX9070GRE.txt, a file not touched by this PR.
Claimed in the coordination issue as: new item
Depends on: #7532 (the third
test_docs_linksfailure,docs/gpu_test_results.md's missing file)What and why
Two docs tests are red on
maindde82f27, independent of each other:tests/test_docs_links.py: the d3d12: 1D render targets and depth buffers (created as the host does, 1D attachment views) #4454 merge dropped the closing fence of thed3d12_placed_dimensions_testblock inruntime/README.md(line 462). On GitHub, everything below it renders as one code block, including the "A 600-frame headless guest scene" heading. That is whydocs/dev-tools.md's link to#a-600-frame-headless-guest-scenefinds no anchor. This PR restores the fence and the blank line after it.tests/test_docs_cli_flags.py:docs/embedded_shaders.md:372-377(docs: the AMD driver took 34 minutes on LeafRehydration's dispatch-loop module; the current translation compiles in 3 s (SHADER-995) #6739) names sevenspirv-optpasses (--ssa-rewrite,--merge-blocks, …). The test looks for every documented flag in this repo's code, and these are SPIRV-Tools' flags. This PR adds them toFOREIGN, next to theghandpipflags already there, with a comment.Tested
main:test_docs_cli_flags.pyfails, and so doestest_docs_links.py, with 2 broken links.test_docs_cli_flags.pypasses.test_docs_links.pyhas 1 broken link left, the one docs/gpu_test_results: link the RX 9070 GRE note with ../ (test_docs_links red on main) #7532 fixes.python -I -m unittest discover -s tests -p "test_docs*.py"passes.runtime/README.mdnow has an even number of fences (36).git diff --checkis clean.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (Not applicable: docs and test only.)