[PR #1403] reports: detect case-folded aliases before creating output folders #1433

Open
opened 2026-11-26 20:21:14 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1403
Author: @PyZikYG
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: report-path-missing-parent


📝 Commits (1)

  • 25323b2 reports: detect case-folded aliases before creating output folders

📊 Changes

2 files changed (+39 additions, -6 deletions)

View changed files

📝 tests/test_report_paths.py (+12 -2)
📝 tools/report_paths.py (+27 -4)

📄 Description

Claimed as REPORT-PATH-MISSING-PARENT.

On a case-folding volume that needs a filesystem probe, the shared report guard could miss two outputs such as New/reports/R.json and new/Reports/r.JSON when neither parent existed. Exporters can create both parents later and write both reports to the same file.

Probe relative path spellings from their nearest existing parent in a temporary directory. This catches aliases before creating the output tree and leaves the requested directories untouched. The change is separate from the Windows case-sensitive-directory handling in #490.

Tested

  • python -I tests/test_report_paths.py
  • python -I tests/test_character_census.py
  • python -I tests/test_navmesh_index.py
  • python -I tests/test_text_write_line_endings.py

AI-assisted: yes.


🔄 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/1403 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `report-path-missing-parent` --- ### 📝 Commits (1) - [`25323b2`](https://github.com/ubiquitarianism/leonida/commit/25323b2a2521f1b8da3a19c9d3b6a84de4d19466) reports: detect case-folded aliases before creating output folders ### 📊 Changes **2 files changed** (+39 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_report_paths.py` (+12 -2) 📝 `tools/report_paths.py` (+27 -4) </details> ### 📄 Description Claimed as [REPORT-PATH-MISSING-PARENT](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147436243). On a case-folding volume that needs a filesystem probe, the shared report guard could miss two outputs such as New/reports/R.json and new/Reports/r.JSON when neither parent existed. Exporters can create both parents later and write both reports to the same file. Probe relative path spellings from their nearest existing parent in a temporary directory. This catches aliases before creating the output tree and leaves the requested directories untouched. The change is separate from the Windows case-sensitive-directory handling in #490. ### Tested - `python -I tests/test_report_paths.py` - `python -I tests/test_character_census.py` - `python -I tests/test_navmesh_index.py` - `python -I tests/test_text_write_line_endings.py` AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1433
No description provided.