chore: remove 13 dead one-off scripts, fix /home/nolan test paths, drop unused imports (CHORE-TIER2A-PYTHON-CLEANUP) #2704
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2704
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2704"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@aslan2142 on GitHub · 2026-11-30 09:01 UTC · original
aslan2142:chore/tier2a-python-cleanup→main· +36 −3398 · 23 files · 2 commits · merged 2026-11-30 09:31 UTCItem ID:
CHORE-TIER2A-PYTHON-CLEANUP(claimed in #2570, follow-up to #2668)AI-assisted: yes (implemented and independently audited via read-only adversarial review).
Summary
Removes 13 dead / completed one-off research scripts and their dedicated tests (
-3,370 LOC, all verified zero external callers and zero doc/workflow references), fixes the last 3 hardcoded/home/nolan/...QEMU paths intests/test_x64_recomp_*.py, and removes 7 verified unused imports across 6 surviving tools/scripts (22 files changed, +4 / -3,392).1. Deleted files (13 files,
-3,370 LOC— 0 callers, 0 doc/CI refs)tools/valu_int_diff.py+tests/test_valu_int_diff.py: redundant integer VALU fuzzer superseded byvint_diff.py+wint_diff.py+pk16_diff.py+sad_diff.py(72/73v_*opcodes duplicated; sole remaining opcodev_lerp_u8is already covered bytests/semantic/test_{alu,valu}_lerp_u8.py,tests/semantic/test_int_ext_fixture.py,runtime/test/shaders/cs_w32_int_ext.asm, andtools/int_hw_probe.py).tools/turing_atlas.py+tests/test_turing_atlas.py: completed one-off Turing PR-body atlas generator.tools/dpp_hw_probe.py+tests/test_dpp_hw_probe.py: completed one-off AMD RX 7800 XT DPP hardware probe.tools/draw_ownership.py+tests/test_draw_ownership.py: completed one-off ASSET-70 measurement campaign script.scripts/carve_all.ps1+tests/test_carve_all_brackets.py+tests/test_carve_all_paths.py: initial-commit research wrapper ((research tool; the build itself doesn't need it)).scripts/meta_to_xml.ps1+tests/test_meta_to_xml_paths.py: initial-commit PS 5.1 script requiring externalCodeWalker.Core.dll.2. Fixed & cleaned surviving files (9 files,
+4 / -22 LOC)/home/nolan/.nix-profile/bin/qemu-system-aarch64paths:tests/test_x64_recomp_bitops.py,tests/test_x64_recomp_rcl_rcr.py,tests/test_x64_recomp_std_str.pynow useos.environ.get("QEMU_AARCH64") or shutil.which("qemu-system-aarch64") or ""(matchingtools/x64_recomp.py:3924and sibling tests;git grep /home/nolannow returns 0 hits repo-wide).tools/image_fuzz.py:retools/leonida_launcher.py:shutiltools/probe_gfx1036_vcmp16.py:math,spirv_mini_interp as sitools/shader_link_check.py:Declarationscripts/bench_wave64.py:jsonscripts/bench_translate.py:statistics3. Intentionally kept (verified active or referenced)
tools/anim_skel_match.py&tools/anim_skeleton_match.py: distinct purposes, both cited indocs/animation.md(:154,:352) and enforced bytest_docs_repo_paths.py.tools/analyze_4240_full.py: referenced bytests/test_missing_input_exit_codes.pyandtests/test_tool_stdout_encoding.py.tools/batch_glb.py,tools/{cvt,dot,f16misc,mode,vrel}_diff.py,tools/int3_cause.py,scripts/{corpus_watch,shader_stats,bench_translate}.py: active CI fuzzers or actively maintained developer utilities.scripts/run_gpu_tests.py: left untouched to avoid conflicting with open PRs.Testing
Tested on Linux (x86-64, no GPU required):
python3 -m compileall -q make_game.py tools tests scripts— PASSpython3 -I make_game.py --help— PASSpython3 -I scripts/check_no_game_data.py— PASStests/test_ci_registration.py(18/18),tests/test_runtime_paths.py(5/5),tests/test_runner_calls_all_tests.py(3/3),tests/test_tool_startup.py(2/2) — ALL PASStests/test_docs_*.py— ALL PASStest_x64_recomp_{bitops,rcl_rcr,std_str}.py+ clean-skip check without QEMU,test_image_fuzz*.py98 passed / 1 skipped,test_leonida_launcher.py15/15,test_probe_gfx1036_vcmp16.py11/11,test_shader_link_check.py54 ran / 1 skipped,test_bench_wave64.py15/15,test_bench_translate.py10/10) — ALL PASS@OreoFR on GitHub · 2026-11-30 09:02 UTC · original
Checked by OreoFR on macOS 27.2.1, Apple M5 (arm64, QEMU path: qemu-system-aarch64 11.1.3 from Homebrew on
PATH), Python 3.12.16-I, maindcba958e5, PR head45df09b84. MEASURED:git grepofvalu_int_diff,turing_atlas,draw_ownership,dpp_hw_probe,carve_all,meta_to_xml: 0 hits each).tests/test_x64_recomp_bitops.py9/9,test_x64_recomp_rcl_rcr.py5/5,test_x64_recomp_std_str.py5/5, OK both on main and with this PR. No red here: on this Macqemu-system-aarch64is found onPATHeither way, so the hardcoded/home/nolan/...candidate on main is never needed; the change is a cleanup rather than a fix you can see fail.tools/image_fuzz.py,leonida_launcher.py,probe_gfx1036_vcmp16.py,shader_link_check.py,scripts/bench_translate.py,bench_wave64.py) compile (py_compile).Not covered: whether the deleted tools still had users outside the repository (a maintainer's call).
AI-assisted: Claude Code
@aslan2142 on GitHub · 2026-11-30 09:23 UTC · original
Carried #2633's fix (
c717967d0, author unchanged —@zmasi) to aligntests/semantic/test_interp_computed_ij_fallback.pywithSHADER-468toward-zerov_interp_p2_f16narrowing (which is currently failingCI/semantic-testsonmain). Verifiedtest_interp_computed_ij_fallback.py9/9 PASS locally; will drop cleanly on rebase if #2633 merges first. Thanks@OreoFRfor verifying on macOS!