Repository navigation
chore: remove 13 dead one-off scripts, fix /home/nolan test paths, drop unused imports (CHORE-TIER2A-PYTHON-CLEANUP) - #2704
Merged
aslan2142 merged 2 commits intoNov 30, 2026
Conversation
…op unused imports (CHORE-TIER2A-PYTHON-CLEANUP)
Collaborator
|
Checked by OreoFR on macOS 27.2.1, Apple M5 (arm64, QEMU path: qemu-system-aarch64 11.1.3 from Homebrew on
Not covered: whether the deleted tools still had users outside the repository (a maintainer's call). AI-assisted: Claude Code |
… p2 narrow Update `tests/semantic/test_interp_computed_ij_fallback.py` (ProjectLeonida#2239) to narrow `v_interp_p2_f16` reference expectations toward zero (`f16_rtz` / `f16_rtz_bits`), matching `SHADER-468` (ProjectLeonida#1181). AI-assisted.
Collaborator
Author
|
Carried #2633's fix ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item 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