report_paths: respect case-sensitive Windows directories (OLD-9412) #490

Manually merged
github merged 2 commits from gh-pr/490/head into gh-pr/490/base 2026-11-26 09:03:54 +00:00
Owner

@⁠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 UTC

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

  • Windows 11 x64 build 26100, Python 3.12, synthetic files on real NTFS. The same 10-case probe went from 4/10 on main 8f481cf to 10/10 with the patch. It covers two existing files, one or both missing, missing parent components, a hard link, and case-insensitive controls.
  • 35 report-path and collision tests passed, with the APFS-only case skipped. Another 34 related CLI tests passed.
  • The user_sgpr_census folding-volume mock assertion failed on both main and this branch. The rest of that file passed on both (43 tests). The separate test fix in #368 passed all 44 tests on both branches (Windows comparison).
  • git diff --check and check_no_game_data.py on the changed files passed.

GPUs tested: n/a, CPU-only.

AI-assisted: yes, carryover and verification.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
**@⁠sodove** on GitHub · 2026-11-24 06:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/490) `sodove:fix/ntfs-report-path-case` → `main` · +68 −4 · 2 files · 2 commits · merged 2026-11-25 19:45 UTC Claimed in the coordination issue as: OLD-9412 ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)) ### 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 - Windows 11 x64 build 26100, Python 3.12, synthetic files on real NTFS. The same 10-case probe went from 4/10 on main 8f481cf to 10/10 with the patch. It covers two existing files, one or both missing, missing parent components, a hard link, and case-insensitive controls. - 35 report-path and collision tests passed, with the APFS-only case skipped. Another 34 related CLI tests passed. - The user_sgpr_census folding-volume mock assertion failed on both main and this branch. The rest of that file passed on both (43 tests). The separate test fix in #368 passed all 44 tests on both branches ([Windows comparison](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/368)). - git diff --check and check_no_game_data.py on the changed files passed. GPUs tested: n/a, CPU-only. AI-assisted: yes, carryover and verification. ### Checklist - [x] Based on current main and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption.
(cherry picked from commit 600e70f885dad56a3c82f19672eb9bc38c991061)
(cherry picked from commit eb122c1b019294e1eb4d67f1f77b8f164229187d)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:03:53 +00:00
github manually merged commit 448dae0f85 into gh-pr/490/base 2026-11-26 09:03:54 +00:00
Author
Owner

@⁠sodove on GitHub · 2026-11-24 10:04 UTC · original

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.

**@⁠sodove** on GitHub · 2026-11-24 10:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/490#issuecomment-7128288253) 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.
Author
Owner

@⁠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:

  • PR: 24 tests OK (1 skipped). main: 22 tests OK (1 skipped).
  • The skip is the existing symlink test: [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.)

**@⁠DeadlyChirp** on GitHub · 2026-11-25 15:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/490#issuecomment-7166778423) 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`: - PR: 24 tests OK (1 skipped). main: 22 tests OK (1 skipped). - The skip is the existing symlink test: `[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.)
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 19:45 UTC · original

Merged, thanks! The new test fails on main and passes with this.

  • Checked on main 5da72d19f + 448dae0f8: the semantic suite passes (491 files, 6,312 tests, 0 files failed); test_report_paths pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 2 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-25 19:45 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/490#issuecomment-7172729867) Merged, thanks! The new test fails on `main` and passes with this. - **Checked on `main` `5da72d19f` + `448dae0f8`:** the semantic suite passes (491 files, 6,312 tests, 0 files failed); `test_report_paths` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 2 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.