tools: batch report_paths consolidation (15 PRs by @breachato) #3024

Manually merged
github merged 30 commits from github-bot/gh-3024 into main 2026-12-02 01:22:47 +00:00 AGit
Owner

@⁠aslan2142 on GitHub · 2026-12-02 00:47 UTC · original
ProjectLeonida:batch/report-paths-consolidation → main · +68 −199 · 16 files · 30 commits · merged 2026-12-02 01:21 UTC

Batches all 15 open tools/report_paths.py consolidation PRs by @⁠breachato into a single merge so they land cleanly without hitting 14 sequential tests/test_report_paths.py merge conflicts.

Every commit preserves @⁠breachato's original authorship, timestamp, and commit message — the only conflict resolutions performed during cherry-picking were the additive SHARED / LEGACY_COPIES tuple updates in tests/test_report_paths.py.

Included PRs (all authored by @⁠breachato)

  • #1162 — bvh_index
  • #1170 — vertex_types
  • #1171 — tex_headers
  • #1172 — shader_profile
  • #1173 — ttpf_mips
  • #1214 — rbf0_tree
  • #1215 — odrp_7a
  • #1227 — rbf0_index
  • #1229 — rtti_scan
  • #1243 — navmesh_decode (clears the final entry in LEGACY_COPIES, leaving LEGACY_COPIES = set(); also supersedes duplicate #2949)
  • #1244 — restofworld_model_join
  • #2636 — anim_clips
  • #2638 — instance_lists
  • #2640 — skin_streams
  • #2741 — text_tables

Testing

  • python3 -I tests/test_report_paths.py -v — 26 tests, OK (1 skipped: Windows directory case sensitivity)
  • python3 -I scripts/check_no_game_data.py — exit 0
  • python3 -m compileall -q make_game.py tools tests — exit 0
  • All matching unit test suites for the 15 affected tools (test_anim_clips*.py, test_bvh_*.py, test_instance_lists*.py, test_navmesh_*.py, test_odrp_7a*.py, test_rbf0_*.py, test_report_path*.py, test_restofworld_model_join*.py, test_rtti_scan*.py, test_shader_profile*.py, test_skin_streams*.py, test_tex_headers*.py, test_text_tables*.py, test_ttpf_mips*.py, test_vertex_types*.py) — all passing on Linux (no game files, no GPU).

AI-assisted: yes (cherry-pick batching, conflict resolution in tests/test_report_paths.py, and test verification).

**@⁠aslan2142** on GitHub · 2026-12-02 00:47 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3024) `ProjectLeonida:batch/report-paths-consolidation` → `main` · +68 −199 · 16 files · 30 commits · merged 2026-12-02 01:21 UTC Batches all 15 open `tools/report_paths.py` consolidation PRs by @⁠breachato into a single merge so they land cleanly without hitting 14 sequential `tests/test_report_paths.py` merge conflicts. Every commit preserves @⁠breachato's original authorship, timestamp, and commit message — the only conflict resolutions performed during cherry-picking were the additive `SHARED` / `LEGACY_COPIES` tuple updates in `tests/test_report_paths.py`. ### Included PRs (all authored by @⁠breachato) - #1162 — `bvh_index` - #1170 — `vertex_types` - #1171 — `tex_headers` - #1172 — `shader_profile` - #1173 — `ttpf_mips` - #1214 — `rbf0_tree` - #1215 — `odrp_7a` - #1227 — `rbf0_index` - #1229 — `rtti_scan` - #1243 — `navmesh_decode` (clears the final entry in `LEGACY_COPIES`, leaving `LEGACY_COPIES = set()`; also supersedes duplicate #2949) - #1244 — `restofworld_model_join` - #2636 — `anim_clips` - #2638 — `instance_lists` - #2640 — `skin_streams` - #2741 — `text_tables` ### Testing - `python3 -I tests/test_report_paths.py -v` — 26 tests, OK (1 skipped: Windows directory case sensitivity) - `python3 -I scripts/check_no_game_data.py` — exit 0 - `python3 -m compileall -q make_game.py tools tests` — exit 0 - All matching unit test suites for the 15 affected tools (`test_anim_clips*.py`, `test_bvh_*.py`, `test_instance_lists*.py`, `test_navmesh_*.py`, `test_odrp_7a*.py`, `test_rbf0_*.py`, `test_report_path*.py`, `test_restofworld_model_join*.py`, `test_rtti_scan*.py`, `test_shader_profile*.py`, `test_skin_streams*.py`, `test_tex_headers*.py`, `test_text_tables*.py`, `test_ttpf_mips*.py`, `test_vertex_types*.py`) — all passing on Linux (no game files, no GPU). AI-assisted: yes (cherry-pick batching, conflict resolution in `tests/test_report_paths.py`, and test verification).
The private same_output_path becomes an alias of report_paths.same_report_path,
and the import keeps same_report_path on its own line: tests/test_report_paths.py
looks for that exact line when the tool is added to SHARED.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The tool carried its own `same_output_path` (realpath, normcase, samefile) while it already imported `report_paths.path_key`, so it answered the report-path question two ways; CONTRIBUTING.md asks a report writer to ask `same_report_path` instead of deriving it again. The private copy also missed the helper's folding-volume probe, so on a Linux mount that ignores case (vfat/exFAT/CIFS) `--json R.json` and `--json r.json` were two paths and the second overwrote the first.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS mounts let `R.json` and `r.json` pass as two reports). The name stays as a one-line delegation because `tests/test_tex_headers_report_paths.py` patches it to count its calls.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS). The name stays as a one-line delegation because `tests/test_shader_profile.py` calls it by name.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
Both output guards compared paths with a private `same_output_path`, a second derivation of `report_paths.same_report_path` that CONTRIBUTING.md asks a report writer to call, and one that missed the helper's folding-volume probe (vfat/exFAT/CIFS).
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
It was the last tool carrying its own copy, so LEGACY_COPIES is empty now.
With the SHARED entry on main, test_switched_tools_import_the_helper_and_define_no_copy
fails ("'from report_paths import same_report_path' not found"); with this branch it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 00:52:37 +00:00
Author
Owner

@⁠andrew-ai on GitHub · 2026-12-02 00:50 UTC · original

Windows verification at d8876ec0e merged locally into 4fe371f90: test_report_paths.py and test_report_path_case.py ran 30 tests on native NTFS, 28 passed and 2 skipped. The case-sensitive-directory test ran. The pending REPORT-PATHS-NTFS-MISSING-UNICODE fork commit d94b68ba1 also merges cleanly on top, with 29 passed and 2 skipped. I exercised bvh_index.py through the CLI on an empty synthetic directory. With this batch alone it correctly inherited the current shared guard behavior, rejecting two distinct Deseret-case output names. Adding the NTFS change allowed both files; I parsed the JSON and checked the CSV header. This confirms a newly consolidated caller picks up the separate shared-helper fix. Codex-assisted.

**@⁠andrew-ai** on GitHub · 2026-12-02 00:50 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3024#issuecomment-7331021305) Windows verification at d8876ec0e merged locally into 4fe371f90: test_report_paths.py and test_report_path_case.py ran 30 tests on native NTFS, 28 passed and 2 skipped. The case-sensitive-directory test ran. The pending REPORT-PATHS-NTFS-MISSING-UNICODE fork commit d94b68ba1 also merges cleanly on top, with 29 passed and 2 skipped. I exercised bvh_index.py through the CLI on an empty synthetic directory. With this batch alone it correctly inherited the current shared guard behavior, rejecting two distinct Deseret-case output names. Adding the NTFS change allowed both files; I parsed the JSON and checked the CSV header. This confirms a newly consolidated caller picks up the separate shared-helper fix. Codex-assisted.
github manually merged commit 4dfd90c35a into main 2026-12-02 01:22:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3024
No description provided.