Commit Graph

31 Commits

Author SHA1 Message Date
d8876ec0e3 tests: list text_tables in 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.
2026-12-01 19:44:43 -05:00
3cc295a3c2 tests: list skin_streams in 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.
2026-12-01 19:44:43 -05:00
301bec535c tests: list instance_lists in 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.
2026-12-01 19:44:43 -05:00
e51ec83b37 tests: list anim_clips in 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.
2026-12-01 19:44:42 -05:00
0c2eec6d99 tests: list restofworld_model_join in 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.
2026-12-01 19:44:42 -05:00
46743b4609 tests: move navmesh_decode from LEGACY_COPIES to SHARED
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.
2026-12-01 19:44:42 -05:00
048bb348ce tests: list rtti_scan in 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.
2026-12-01 19:44:42 -05:00
940a89fef2 tests: list rbf0_index in 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.
2026-12-01 19:44:42 -05:00
9bb2dfa701 tests: list odrp_7a in 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.
2026-12-01 19:44:41 -05:00
1a35563b31 tests: list rbf0_tree in 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.
2026-12-01 19:44:41 -05:00
c3bedd5526 tests: list ttpf_mips in 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.
2026-12-01 19:44:41 -05:00
d50e0baede tests: list shader_profile in 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.
2026-12-01 19:44:40 -05:00
d55404f5f5 tests: list tex_headers in 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.
2026-12-01 19:44:40 -05:00
1cff737c47 tests: list vertex_types in 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.
2026-12-01 19:44:40 -05:00
83e69c1d81 tests: list bvh_index in 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.
2026-12-01 19:44:40 -05:00
e9b2529a96 tests: list meshlet_page in 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.
2026-11-30 19:43:24 +01:00
3cd08cfc78 tests: list bink_index in 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.
2026-11-29 18:59:49 +01:00
5ddd7fa134 Merge pull request #1403 from PyZikYG/report-path-missing-parent
reports: detect case-folded aliases before creating output folders
2026-11-28 15:39:11 +01:00
2130199f1b conformance: reject diff heatmap path collisions 2026-11-26 23:04:27 +01:00
25323b2a25 reports: detect case-folded aliases before creating output folders 2026-11-25 04:29:20 +05:00
448dae0f85 report_paths: respect Windows directory case for missing paths
(cherry picked from commit eb122c1b019294e1eb4d67f1f77b8f164229187d)
2026-11-24 11:12:22 +05:00
1597218034 report_paths: use file identity before folding existing names
(cherry picked from commit 600e70f885dad56a3c82f19672eb9bc38c991061)
2026-11-24 11:12:22 +05:00
152c58bf94 world_index: use shared report_paths.same_report_path for report guards (BUILD-589) 2026-11-23 21:06:40 +01:00
2a0b4fd9e1 gen_d3d12_stubs: use the shared path comparison for the collision checks (#2809)
Squash-merged after diff review of PR #2809
2026-11-23 09:38:26 -06:00
437b0cc013 report_paths: resolve each path once in same_report_path, not twice (EGEN-REPORTPATHS-RESOLVE-ONCE) (#6268)
Squash-merged after diff review of PR #6268 - report_paths: resolve each path once in same_report_path, not twice (EGEN-REPORTPATHS-RESOLVE-ONCE)
2026-11-23 08:23:49 -06:00
dc78624b55 report_paths: find a case-folding volume, and convert world_lights_paths
os.path.normcase folds case only on Windows and the pathconf probe answers
only on macOS, so a Linux mount that ignores case (vfat, exFAT, CIFS) passed
R.json and r.json as two reports and let the second one overwrite the first.
world_lights_paths already asked the volume itself; that probe moves into
report_paths as same_name_on_folding_volume, which same_report_path asks
when the name rules call a case-only pair different. The scratch folder is
only made for a pair that differs by case alone.

world_lights_paths then imports the shared helper instead of carrying the
third copy. That also drops its None return for a missing file, and takes
it off LEGACY_COPIES, so a private copy reappearing there fails.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-22 18:20:42 -06:00
63f202d3d3 anim_index: import the shared same_report_path (BUILD-589 follow-up)
The tool carried a verbatim copy of report_paths.case_insensitive_volume,
path_key and same_report_path — the same logic in 36 lines — and the test
that guards the shared helper lists it as a legacy copy still to convert.
Import the helper instead, with the tools folder on sys.path as the other
converted tools do, and move anim_index from LEGACY_COPIES to SHARED so a
private copy re-appearing there fails the test.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-22 17:35:31 -06:00
27ea533c26 Merge pull request #2833 from Nicolas Abosch 2026-11-22 15:12:26 -05:00
62c44234c9 glb_inspect: label duplicate JSON chunks and share the path guard test 2026-11-22 19:37:11 +00:00
f7c7d57bce test_report_paths: the macOS mock uses POSIX normcase
test_macos_case_sensitive_volume_keeps_case always failed on Windows. The
test mocks macOS, but path_key still called the host's os.path.normcase,
which folded R.json and r.json into one key before the volume check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:25:19 -03:00
9f2086e6de tools/report_paths.py: one same_report_path for seven tools instead of seven copies (BUILD-589)
same_report_path was copied into ten tools, and each new "refuse an output that overwrites an input" change added
another copy or a variant. Four copies (anim_index, gamedata_index, gamedata_xml, navmesh_decode) also folded case and
accents on a case-insensitive macOS volume (through _path_key), the other six did not, so the same report pair was
refused by one tool and written by another.

tools/report_paths.py holds one version (the stricter one: realpath, normcase, case-folded NFD on a case-insensitive
volume, then os.path.samefile) and awc_manifest, gamedata_index, gamedata_xml, navmesh_index, rpf_probe, tile_probe
and world_names import it. The tools keep exposing the name same_report_path. On Windows and Linux nothing changes;
on macOS the five tools that lacked the case/accent step now refuse a case-only alias of a report that doesn't exist
yet, as the other five already did.

anim_index, navmesh_decode and world_lights_paths keep their copy for now because open pull requests edit them
(#2051, #2050, #2052, #2107); tests/test_report_paths.py fails if any other tool adds a copy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SAjLH2L6R72dBvVaRG8hka
2026-11-22 16:09:57 +00:00