report_paths: probe missing output parents on folding volumes #2080

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

@⁠whoalin1 on GitHub · 2026-11-25 19:41 UTC · original
whoalin1:report-paths-casefold → main · +29 −4 · 2 files · 1 commits · open

Summary

  • fix same_report_path/same_name_on_folding_volume for report paths checked before the writer creates their output parent
  • probe case folding beside the nearest existing directory instead of returning false when the output folder is missing
  • keep the probe non-invasive: it does not create the missing output folder and still leaves no scratch directory behind
  • update the synthetic regression so the missing-parent answer follows the host volume's case behavior

Claim: #1608 (REPORT-PATHS-MISSING-PARENT-CASEFOLD)

No game data, keys, decryption, or online services.

Test plan

  • python -I tests/test_report_paths.py — 22 tests, OK (1 skipped) on Windows 11
  • focused missing-parent regression failed before the fix (False != True on this case-folding volume) and passes after it
  • python -m compileall -q tools tests
  • git diff --check

AI-assisted with Devin.

**@⁠whoalin1** on GitHub · 2026-11-25 19:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2080) `whoalin1:report-paths-casefold` → `main` · +29 −4 · 2 files · 1 commits · open ## Summary - fix `same_report_path`/`same_name_on_folding_volume` for report paths checked before the writer creates their output parent - probe case folding beside the nearest existing directory instead of returning false when the output folder is missing - keep the probe non-invasive: it does not create the missing output folder and still leaves no scratch directory behind - update the synthetic regression so the missing-parent answer follows the host volume's case behavior Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608 (`REPORT-PATHS-MISSING-PARENT-CASEFOLD`) No game data, keys, decryption, or online services. #### Test plan - [x] `python -I tests/test_report_paths.py` — 22 tests, OK (1 skipped) on Windows 11 - [x] focused missing-parent regression failed before the fix (`False != True` on this case-folding volume) and passes after it - [x] `python -m compileall -q tools tests` - [x] `git diff --check` AI-assisted with Devin.
Callers can ask same_report_path before the writer creates the output
folder. Treat that missing folder as a probe miss rather than a negative
answer, so case-only report paths still collide on Linux volumes that fold
case while leaving the filesystem untouched.

REPORT-PATHS-MISSING-PARENT-CASEFOLD

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:17:08 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 20:57 UTC · original

Re-verified locally on the current head 8a7dcdfe1 while CI is queued: python -I tests/test_report_paths.py — 22 tests, all pass (1 skipped), Windows 11, Python 3.14. AI-assisted with Devin.

**@⁠whoalin1** on GitHub · 2026-11-25 20:57 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2080#issuecomment-7174422622) Re-verified locally on the current head `8a7dcdfe1` while CI is queued: `python -I tests/test_report_paths.py` — 22 tests, all pass (1 skipped), Windows 11, Python 3.14. AI-assisted with Devin.
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:00 UTC · original · edited 2026-11-26 10:30 UTC

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

  • tests/test_report_paths.py: 23 passed, 1 skipped, 22 subtests passed. The skip is the symlink case (Developer Mode is off here, WinError 1314), not related to this change.

(AI-assisted test run; output checked by hand.)

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2080#issuecomment-7188791775) · edited 2026-11-26 10:30 UTC Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. - `tests/test_report_paths.py`: 23 passed, 1 skipped, 22 subtests passed. The skip is the symlink case (Developer Mode is off here, WinError 1314), not related to this change. (AI-assisted test run; output checked by hand.)
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/2080/head:github-bot/gh-2080'
git switch 'github-bot/gh-2080'

Merge

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