Skip to content

Remove four things the round-42 merges left in twice (testing.md, embedded_shaders.md, test_skinned_glb.py, world_build.py) - #3857

Open
TreXito wants to merge 2 commits into
ItsNotRexed:mainfrom
TreXito:docs/round42-duplicates
Open

TreXito wants to merge 2 commits into
ItsNotRexed:mainfrom
TreXito:docs/round42-duplicates

Conversation

@TreXito

@TreXito TreXito commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in #3796: #3796 (comment)

What

Four things on main (4c52ce27) are in twice since the round-42 merges. This removes the second copy of each, and nothing else.

file what was doubled on f847748c
docs/testing.md the whole "GPUs with 128 bytes of push constants" section, twice in a row and identical (lines 244 and 261). The first copy also had no blank line before its heading, which this adds once
docs/embedded_shaders.md §4 the "blocker then / now" table and the "disassembly count is unchanged" paragraph, repeated after the remaining-blocker table (lines 140-150). The repeat even disagrees with the first copy ((#1864, open) vs (#1864)) not doubled
tests/test_skinned_glb.py SkinnedGlbTest.test_full_export_without_numpy, defined at lines 357 and 405, identical. Python keeps only the second, so the first was dead code once
tools/world_build.py import tempfile, a second time after the fcntl/msvcrt fallbacks (line 49; the first is line 39) once

How I found them

I compared every 6-line window of each file changed in f847748c..4c52ce27 against the same file on f847748c, and kept the windows that appear more often now. I also ran pyflakes on tools, scripts, tests and runtime/test/shaders on both commits: these two (world_build.py, test_skinned_glb.py) are its only new findings, and there's no new undefined name. Most other hits are similar code by design, such as cmp_class and cmp_class_f64 in tools/rdna2spirv.py; these three are true copies. tests/semantic/test_salu_and_saveexec_b64.py also redefines four helpers, but that was already so on f847748c, so I left it alone.

Tests

Linux, Python 3.12:

  • tests/test_skinned_glb.py: 18 passed, 1 skipped, the same as on main (pytest only ever collected the one surviving definition).
  • tests/test_docs_*.py (cli_flags, design_rows, links, list_items, python_deps, repo_paths, table_rows) plus test_skinned_glb.py: 38 passed, 1 skipped.
  • tests/test_world_build.py and tests/test_world_build_output_lock.py: 61 passed, 125 subtests passed.
  • No link in the repo points at the -1 anchor that the duplicate heading generated.

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

🤖 Generated with Claude Code

docs/testing.md had the whole "GPUs with 128 bytes of push constants"
section twice in a row (identical), and the first copy had no blank line
before its heading. docs/embedded_shaders.md section 4 repeated the
"blocker then / now" table and the "disassembly count is unchanged"
paragraph after the remaining-blocker table. tests/test_skinned_glb.py
defined SkinnedGlbTest.test_full_export_without_numpy twice (identical),
so the first definition was dead.

The second copy of each goes; nothing else changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The round-42 merges added a second `import tempfile` after the
fcntl/msvcrt fallbacks; the module already imports it a few lines above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TreXito TreXito changed the title Remove three blocks the round-42 merges left in twice (testing.md, embedded_shaders.md, test_skinned_glb.py) Remove four things the round-42 merges left in twice (testing.md, embedded_shaders.md, test_skinned_glb.py, world_build.py) Nov 22, 2026
@Vonsek

Vonsek commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Second check on Windows at 446432a. Both original definitions of test_full_export_without_numpy and the retained definition have identical ASTs. unittest discovered the same 19 test IDs on the merge base and the PR, including this case once. All 19 passed on both. The retained test still checks the four-joint export and normalized vertex weights with NumPy disabled.

All 20 checks across the seven stdlib documentation test files passed. The push-constants heading, embedded-shader blocker table, and disassembly-count paragraph each appear once. No tracked file links to the duplicate heading's suffixed anchor, and the retained open status for #1864 matches GitHub. I also checked that world_build.py compiles with one tempfile import. Current main aa2988c has no changes to these four paths since the merge base.

AI-assisted.

@openmubr

Copy link
Copy Markdown

Code read (CPU only), not run. I compared each removal with main (aa2988c).

  • docs/testing.md: the two "GPUs with 128 bytes of push constants" sections (lines 244 and 261) are identical; removing the first one also fixes the missing blank line before its heading. Nothing in the repo links to the -1 anchor.
  • docs/embedded_shaders.md: lines 143-152 repeat the table and paragraph at 118-127, differing only in (#1864) vs (#1864, open). Keeping the "open" copy is right, rdna2spirv: 8/16-bit MUBUF loads and stores (buffer_load_ubyte/ushort/d16, buffer_store_byte/short) #1864 is still open.
  • tests/test_skinned_glb.py: the two test_full_export_without_numpy bodies (lines 357 and 405) are identical, so dropping the second changes nothing.
  • tools/world_build.py: the second import tempfile (line 49) is redundant with line 39.

I did not run the tests listed in the description.

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

@sds-228 sds-228 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review of 446432a: no issues found. The four duplicated blocks were removed while a single copy of each remains; the unused second import is gone. Targeted suite: 19 tests OK (1 skipped).

AI-assisted (OpenCode).

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.

4 participants