mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1243] navmesh_decode: ask report_paths for the report-path guard (NAVMESH-DECODE-SHARED-REPORT-PATH) #1275
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1275
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1243
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:navmesh-decode-shared-report-path📝 Commits (1)
9ba1fa9navmesh_decode: ask report_paths for the report-path guard📊 Changes
1 file changed (+1 additions, -37 deletions)
View changed files
📝
tools/navmesh_decode.py(+1 -37)📄 Description
Claimed in the coordination issue as: NAVMESH-DECODE-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143974964)
Depends on: none
Fixes: none
What and why
tools/navmesh_decode.pycarried a full private copy oftools/report_paths.py(:1049-1081):_PC_CASE_SENSITIVE,_case_insensitive_volume(the macOSpathconfprobe),_path_key(realpath + normcase + NFD casefold) and its ownsame_report_path, all used by the four output guards at:1101(--csvagainst--out),:1108(the input),:1112(the carve folder'sindex.json) and:1115(each carved entry). CONTRIBUTING.md asks a report writer tocall
report_paths.same_report_pathinstead of deriving the answer again.The copy was also missing the part the shared helper has and it does not: the folding-volume probe
(
same_name_on_folding_volume). Its macOS probe answers only on APFS/HFS+ andnormcasefolds only on Windows, soon a Linux mount that ignores case (vfat, exFAT, CIFS)
--out R.jsonand--csv r.jsonpassed as two report pathsand the second replaced the first.
The four private helpers and the now-unused
unicodedataimport go (1 insertion, 37 deletions). The module keepsthe name
same_report_pathbecausetests/test_report_path_case.pyresolvesnavmesh_decode.same_report_path; it isnow the imported function. Different topic from NAVMESH-JOAAT-LATIN1 (
joaat_csencoding). No behaviour change onWindows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_navmesh_decode.pyandtests/test_report_path_case.py: 20 passed, 1 skipped, 15 subtests passed.python -I tools/navmesh_decode.py --help: prints its usage (the import works under-I).python -m compileall -q tools/navmesh_decode.py: clean.machine is NTFS, where
normcasealready folds case.tests/test_report_paths.pycovers the helper's ownfolding-volume answer.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.