report_paths: respect case-sensitive Windows directories (OLD-9412) #490
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!490
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ntfs-report-path-case"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: OLD-9412 (claim)
What and why
On Windows the shared report-path guard currently folds case even in an NTFS directory that preserves it. A tool can refuse distinct input and output names before either report is written.
This carries over both commits by IsidroEmirPelli from the former PR #9412, retaining their authorship. Existing files are compared by identity. For missing Windows paths the case-only name comparison follows the actual parent directory, or the nearest existing ancestor. Hard links and the usual case-insensitive NTFS aliases still collide.
Tested
GPUs tested: n/a, CPU-only.
AI-assisted: yes, carryover and verification.
Checklist
Rechecked the published head 448dae0 on upstream main 21625bc. On Windows 11 and Python 3.12, applying only this PR's tests reproduced one ordinary failure and four failed subtests, including the real case-sensitive NTFS directory. With the whole PR, test_report_paths and test_runtime_paths passed all 29 tests and 22 subtests. The PR applies cleanly. AI-assisted verification, synthetic inputs only.
Tested on Windows 11, Python 3.12.10, with this PR merged onto upstream main b0f3d3998 (merge commit e8d05ad62).
python -I tests/test_report_paths.py:[WinError 1314] A required privilege is not held by the client(Developer Mode is off). Both new tests run and pass.(AI-assisted test run; output checked by hand.)
Merged, thanks! The new test fails on
mainand passes with this.main5da72d19f+448dae0f8: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_report_pathspass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.AI-assisted (Claude Code, Claude Opus 5.5).