mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1436] pe_inspect: ask report_paths for the report-path guard (PE-INSPECT-SHARED-REPORT-PATH) #1466
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#1466
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/1436
Author: @Anonymous78e
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:tools/pe-inspect-shared-report-path📝 Commits (1)
76b5d19pe_inspect: ask report_paths for the report-path guard (PE-INSPECT-SHARED-REPORT-PATH)📊 Changes
2 files changed (+21 additions, -10 deletions)
View changed files
📝
tests/test_pe_inspect.py(+16 -0)📝
tools/pe_inspect.py(+5 -10)📄 Description
Claimed in the coordination issue as: PE-INSPECT-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148263980)
What and why
tools/pe_inspect.pycarried a privatesame_output_path(realpath, normcase, then samefile). It uses this at the two checks that keep one image's JSON or Markdown report from overwriting another's. CONTRIBUTING asks a report writer to usetools/report_paths.same_report_pathinstead of deriving the answer again. That helper also folds case on a case-insensitive macOS volume, whereos.path.normcasekeeps case andsamefilecannot see a report that is not written yet.This is the same change as the other
*-SHARED-REPORT-PATHpull requests (#1430, #1435): import the shared helper, keepsame_output_pathas its alias so callers and tests are unchanged, and drop the private copy. The added test checks that a case-only spelling of a missing report is one path; it skips on a case-sensitive volume.Tested
Windows 11 Pro 26H2, CPython 3.13.15, on
main1154976d4:python -I tests/test_pe_inspect.py: 61 tests OK. The newtest_case_only_spelling_of_a_missing_report_is_one_pathruns and passes. One skip, which is unrelated:os.symlinkneeds a privilege on Windows.python -I tests/test_report_paths.py: OK.python -I tests/test_ci_registration.py: OK.python -m compileall -qon both files;python -I tools/pe_inspect.py --helpruns;scripts/check_no_game_data.pyon both files: clean.GPUs tested: n/a
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.