Commit Graph

10 Commits

Author SHA1 Message Date
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
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
1baf436fc2 report_paths: use macOS case rules when resolving for darwin 2026-11-22 19:40:47 +00: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