report_paths: respect case-sensitive Windows directories (OLD-9412) #490
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!490
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/490/head"
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?
@sodove on GitHub · 2026-11-24 06:15 UTC · original
sodove:fix/ntfs-report-path-case→main· +68 −4 · 2 files · 2 commits · merged 2026-11-25 19:45 UTCClaimed 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
8f481cfto 10/10 with the patch. It covers two existing files, one or both missing, missing parent components, a hard link, and case-insensitive controls.GPUs tested: n/a, CPU-only.
AI-assisted: yes, carryover and verification.
Checklist
@sodove on GitHub · 2026-11-24 10:04 UTC · original
Rechecked the published head
448dae0on upstream main21625bc. 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.@DeadlyChirp on GitHub · 2026-11-25 15:23 UTC · original
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.)
@aslan2142 on GitHub · 2026-11-25 19:45 UTC · original
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).