mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1216] [MERGED] feature_scan: ask report_paths for the report-path guard (FEATURE-SCAN-SHARED-REPORT-PATH) #1248
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#1248
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/1216
Author: @breachato
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD
Base:
main← Head:feature-scan-shared-report-path📝 Commits (2)
772efbbfeature_scan: ask report_paths for the report-path guard495ff9etests: cover feature_scan refusing an --out that names the optional SPIR-V index📊 Changes
2 files changed (+35 additions, -13 deletions)
View changed files
📝
tests/test_feature_scan.py(+33 -0)📝
tools/feature_scan.py(+2 -13)📄 Description
Claimed in the coordination issue as: FEATURE-SCAN-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143542431)
Depends on: none
Fixes: none
What and why
tools/feature_scan.pycarried its ownsame_path(:532, abspath + normcase + samefile) for the--outguard at
:573, which refuses a report written overdxbc/index.jsonorspirv/index.json: files the scanreads on the next run. That is the answer
tools/report_paths.same_report_pathexists to give, andCONTRIBUTING.md asks a report writer to call it rather than derive it again.
The private copy also missed that helper's folding-volume probe, so on a Linux mount that ignores case (vfat,
exFAT, CIFS)
--out INDEX.jsonpassed as another path and replaced the index the scan reads.The duplicated logic goes (2 insertions, 13 deletions). The tool already puts its own folder on
sys.pathforshader_carve, so the import is one line; nothing else in the repository importsfeature_scan.same_path, sothe name goes with the duplication.
inside_dirkeeps its own check: containment in a folder is a differentquestion from two paths naming one file, and
report_pathsdoes not answer it.Tested
tests/test_feature_scan.py,tests/test_feature_scan_bad_index.py,tests/test_feature_scan_code_base.py,tests/test_feature_scan_order.pyandtests/test_cpu_feature_scan.py: 42 passed, 10 subtests passed.python -I tools/feature_scan.py --help: prints its usage (the import works under-I).python -m compileall -q tools/feature_scan.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.