Repository navigation
Self-sourced cleanup: dead CLI flag and duplicated doc rows - #2843
Conversation
|
Docs and code read of AI-assisted review (Claude Code). |
Kam471
left a comment
There was a problem hiding this comment.
Verified on the PR head: tests/test_docs_table_rows.py 2 OK; the four docs suites 5+2+2+2 OK; tests/test_analyze_4240_full.py 14 OK; test_tool_stdout_encoding.py 2 OK; compileall and --help clean. --verbose/args.verbose has 0 refs in tools, tests, docs or CI, so the flag is genuinely dead. Both duplicate-row removals are byte-identical to the kept rows. No game data or absolute paths. Approve.
Non-blocking: the PR body says "one commit each" and omits the new tests/test_docs_table_rows.py.
|
Tested at the head on Windows 11 / Python 3.13.0: The dead flag is real: nothing reads One row should not go: the first removed row is byte-identical to The removed one is the only Linux datapoint and an 8-of-8 hardware claim. It is orphaned, but if it is a real measurement it belongs in the table, not the bin - please confirm before deleting it. The AI-assisted review, docs only. |
The flag is declared but never read, and no caller or test passes it.
The same question and answer were appended twice to the table; keep the first one.
Two rows were appended after the prose with no table header; the same results are already in the table above.
Appended result rows can end up after prose with no header, as happened in shader_validation.md. Scan all docs markdown and fail on a table row that has no header above it.
Extend the docs table check with an exact-duplicate-row assertion, covering the stale rows removed from design.md, d3d12_vulkan.md and shader_validation.md.
f1682de to
1173836
Compare
# Conflicts: # docs/d3d12_vulkan.md
Three independent self-sourced fixes, one commit each. Claim: #2716#issuecomment-7083630062.
tools/analyze_4240_full.py:--verbosewas declared but never read (args.verboseappears nowhere, no caller or test passes it). Removed the dead option.docs/d3d12_vulkan.md: open-question row 19 was appended twice, byte-identical. Removed the later copy.docs/shader_validation.md: two result rows sat after the explanatory prose with no table header, repeating the results already in the table above. Removed them.No game data, keys or decryption. AI-assisted. Tested:
python -m compileall -q tools/analyze_4240_full.py,python -I tools/analyze_4240_full.py --help,python -I tests/test_analyze_4240_full.py(14 tests OK),python -I tests/test_docs_design_rows.py(2 tests OK). No GPU needed.Merge note:
tests/test_docs_table_rows.pyadded here currently fails on upstream main at16282101on exactly the two cases this PR fixes (the duplicate open-question 19 row indocs/d3d12_vulkan.mdand the appended rows without a table header indocs/shader_validation.md). Merging this PR makes that check green; no other known failures.