report_paths: respect case-sensitive Windows directories (OLD-9412) #490
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/490"
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?
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-24T06:15:15Z.
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
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
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-24T10:04:54Z.
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.Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-25T15:23:52Z.
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.)
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T19:45:37Z.
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).