Repository navigation
docs: drop the two sections a repeated merge pasted twice, and catch the next one - #9637
noosko21-a11y wants to merge 3 commits into
Conversation
b372d87 to
5d20791
Compare
|
Claim: #8683 (comment) (two No checks have run on this head yet - a fork pull request waits for a maintainer to approve CI. Locally, on this exact tree: |
The '## GPUs with 128 bytes of push constants' section was on the page twice, word for word, after a repeated merge of the same pull request. Delete the second copy; the section, its links and its commands are unchanged.
Lines 568-652 were repeated verbatim at 653-737: the material -> effect paragraph, the effect-record list, the record format table and the two open questions, twice in one page. Delete the second copy. No text is lost: the removed range was byte-identical to the range kept.
The line check catches one sentence kept twice on neighbouring lines. A repeated merge also pastes a section whole - heading, table, code, 84 lines in docs/models.md - which that check cannot see. repeated_blocks() reports a block of BLOCK lines or more that is immediately followed by a copy of itself; the two sections removed in the previous commits are what it found on main. The detector has its own unit test (a repeated block, an under-length block, a block repeated with a line between) and the scan reads tracked Markdown only.
4c3d3d5 to
3d5205d
Compare
|
Scope reduced to the duplicated sections and the check that catches them. Dropped three commits that duplicate open work, so this does not ask anyone to reconcile two copies of the same fix:
What is left is the part nobody else has: If #9647 or #9666 stall, I can put my versions back - they were tested and green on a clean worktree at |
|
Tested |
|
Coordinator note: this looks like the same change as #5483 by @liang-kai-shui (opened 11:07 UTC, still open). Please compare the two and either close this one or say here what it adds. The maintainer decides which one is merged. |
|
Independent Windows check on
The repetition detector tests covered matching duplicate sections and avoiding reports for permitted repetitions. Scope: local fixtures, no retail files or live GPU run. AI-assisted verification. |
Claimed in the coordination issue (#9677) as:
claiming: docs - the two Markdown sections a repeated merge pasted twice.Depends on: none. Two other open pull requests cover work I had in this branch and did not keep here: #9647 (
tests/test_build_batch_launch.py, the-FilePath cmd.exelaunch line) and #9666 (tools/wave_diff.py,tools/leonida_tui.py, the two unpinnednewline=). This pull request is scoped to the duplicated sections and the check that catches them.What and why
Two Markdown sections were on the page twice, word for word.
docs/models.md568-652 was repeated at 653-737: 85 lines - the material -> effect paragraph, the effect-record list, the record format table, and the two open questions.docs/testing.md's "GPUs with 128 bytes of push constants" ran twice back to back: 18 lines.Both are repeated-merge artifacts, the shape the coordination issue already tracks (a rebase that keeps both sides). The copies are byte-identical, so the second is deleted and nothing is lost. The ranges were compared before writing, line by line - the deletion script asserts that the kept range equals the removed range and exits without touching the file otherwise.
tests/test_docs_repeated_lines.pycould not see this. It flags one sentence repeated on neighbouring lines, so a section pasted whole went through.repeated_blocks()is added next to it: a block ofBLOCK(6) lines or more immediately followed by a copy of itself. It has its own unit test (a repeated block, an under-length block, a block repeated with a line between) and the scan reads tracked Markdown only.On
mainit reports exactly the two sections above and nothing else:Checked by mutation, not by assertion. Re-inserting the removed 84-line block into a copy of the fixed
docs/models.mdmakesrepeated_blocksreport(568, 652, 84)at the original line numbers, whilerepeated_lineson that same text still reports nothing. The gap this closes is the line check's, and that is measured, not assumed.Tested
Clean worktree at the pull request head, not a working copy:
No game files, no GPU, no shader translation: Markdown plus one standard-library test. Windows 11, Python 3.12.10; nothing platform-specific in the change.
The rest of the
test_docs_*.pyset is unchanged by this pull request: the three that fail in this checkout fail identically onmain(test_docs_links.pyis an odd fence count inruntime/README.md, reported as a finding in the coordination issue; the other two read the uninitialisedthird_partysubmodule and onedesign.mdrow).AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. - not applicable, no translator change.