[PR #490] [MERGED] report_paths: respect case-sensitive Windows directories (OLD-9412) #540

Closed
opened 2026-11-26 20:18:13 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/490
Author: @sodove
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: fix/ntfs-report-path-case


📝 Commits (2)

  • 1597218 report_paths: use file identity before folding existing names
  • 448dae0 report_paths: respect Windows directory case for missing paths

📊 Changes

2 files changed (+68 additions, -4 deletions)

View changed files

📝 tests/test_report_paths.py (+26 -1)
📝 tools/report_paths.py (+42 -3)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/490 **Author:** [@sodove](https://github.com/sodove) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/ntfs-report-path-case` --- ### 📝 Commits (2) - [`1597218`](https://github.com/ubiquitarianism/leonida/commit/159721803485e790521ae84eef54629f16be278f) report_paths: use file identity before folding existing names - [`448dae0`](https://github.com/ubiquitarianism/leonida/commit/448dae0f850113c460092442ce037d96922332d0) report_paths: respect Windows directory case for missing paths ### 📊 Changes **2 files changed** (+68 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_report_paths.py` (+26 -1) 📝 `tools/report_paths.py` (+42 -3) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9412 ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123692773)) ### 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://github.com/ubiquitarianism/leonida/pull/368#issuecomment-7123795172)). - 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:13 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#540
No description provided.