mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1244] restofworld_model_join: ask report_paths for the report-path guard (RESTOFWORLD-MODEL-JOIN-SHARED-REPORT-PATH) #1277
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#1277
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/1244
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:restofworld-model-join-shared-report-path📝 Commits (1)
9638d91restofworld_model_join: ask report_paths for the report-path guard📊 Changes
1 file changed (+7 additions, -9 deletions)
View changed files
📝
tools/restofworld_model_join.py(+7 -9)📄 Description
Claimed in the coordination issue as: RESTOFWORLD-MODEL-JOIN-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143975647)
Depends on: none
Fixes: none
What and why
tools/restofworld_model_join.pyderived the report-path answer itself inside_aliases_input(:1236-1257):realpath + normcase compared by hand twice (the source, then the carve folder's
index.json) andos.path.samefiletwice, to refuse an--outthat would overwrite the archive, the folder manifest or a carvedstream. CONTRIBUTING.md asks a report writer to call
report_paths.same_report_pathinstead of deriving it again,and the private copy missed that helper's folding-volume probe: on a Linux mount that ignores case (vfat, exFAT,
CIFS)
--out INDEX.jsonbeside an existingindex.jsonwas not refused and replaced the manifest.The equalities now go through
same_report_path; the last branch of_aliases_inputis untouched because it is acontainment rule, not an equality (an output inside the carve folder with a
.bin/.bk2name), andtests/test_carve_short_system_pages.pyasserts it. The tool had notools/entry onsys.path, so one is addedfor the import, as
tex_headersdoes. Different topic from OLD-7750 (#886, page-map slots andindex.jsonload).No behaviour change on Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_restofworld_model_join.py,tests/test_carve_short_system_pages.pyandtests/test_report_path_case.py: 23 passed, 1 skipped, 44 subtests passed.python -I tools/restofworld_model_join.py --help: prints its usage (the import works under-I).python -m compileall -q tools/restofworld_model_join.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.