reports: detect case-folded aliases before creating output folders #1403

Open
github-bot wants to merge 1 commit from github-bot/gh-1403 into main AGit
Owner

@⁠PyZikYG on GitHub · 2026-11-24 23:29 UTC · original
PyZikYG:report-path-missing-parent → main · +39 −6 · 2 files · 1 commits · open

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.

**@⁠PyZikYG** on GitHub · 2026-11-24 23:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1403) `PyZikYG:report-path-missing-parent` → `main` · +39 −6 · 2 files · 1 commits · open Claimed as [REPORT-PATH-MISSING-PARENT](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:50:11 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 09:27 UTC · original

Reviewed 25323b2: ran tests/test_report_paths.py (23 OK) and the report-path neighbours on the PR and, with
the PR's test file copied in, on main — all pass on both; the tests compare against volume_folds_case(), so
on this case-sensitive host they pass on main too, and I checked the folding branch with a probe simulating
a case-folding volume: two not-yet-created nested outputs differing only by case give (False, []) on main
and (True, []) on the PR, with no folders created and no scratch left. No finding.
AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 09:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1403#issuecomment-7158344893) Reviewed 25323b2: ran tests/test_report_paths.py (23 OK) and the report-path neighbours on the PR and, with the PR's test file copied in, on main — all pass on both; the tests compare against volume_folds_case(), so on this case-sensitive host they pass on main too, and I checked the folding branch with a probe simulating a case-folding volume: two not-yet-created nested outputs differing only by case give (False, []) on main and (True, []) on the PR, with no folders created and no scratch left. No finding. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1403/head:github-bot/gh-1403'
git switch 'github-bot/gh-1403'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1403'
git switch 'github-bot/gh-1403'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1403'
git switch 'github-bot/gh-1403'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1403'
git switch 'main'
git merge --squash 'github-bot/gh-1403'
git switch 'main'
git merge --ff-only 'github-bot/gh-1403'
git switch 'main'
git merge 'github-bot/gh-1403'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.