bvh_index: ask report_paths for the report-path guard (BVH-INDEX-SHARED-REPORT-PATH) #1162

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

@⁠breachato on GitHub · 2026-11-24 19:25 UTC · original
breachato:bvh-index-shared-report-path → main · +6 −35 · 1 files · 1 commits · open

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)
**@⁠breachato** on GitHub · 2026-11-24 19:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1162) `breachato:bvh-index-shared-report-path` → `main` · +6 −35 · 1 files · 1 commits · open ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change)
`tools/bvh_index.py` carried its own `_path_key`,
`_case_insensitive_volume`, `_PC_CASE_SENSITIVE` and report-path
comparison, which is the answer `tools/report_paths.py` exists to give once
(CONTRIBUTING.md: a report writer asks `same_report_path` instead of
deriving it again). The private copy also left out that helper's
folding-volume probe, so on a Linux mount that ignores case (vfat, exFAT,
CIFS) `--out R.json` and `--out r.json` were two paths and the second
overwrote the first.

`same_output_path` stays as the name the tool and
`tests/test_report_path_case.py` call and now delegates to
`same_report_path`; `_inside()` keeps its comparison through
`report_paths.path_key`.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:40:56 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 19:25 UTC · original · approved these changes

Reviewed and verified. Replaces redundant private path collision functions in tools/bvh_index.py with canonical tools/report_paths.py:same_report_path, providing cross-platform case-folding volume safety on vfat/exFAT/CIFS mounts. Verified with tests/test_bvh_index.py (44/44 PASS). 100% clean-room.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1162#pullrequestreview-6045893176) · **approved these changes** Reviewed and verified. Replaces redundant private path collision functions in `tools/bvh_index.py` with canonical `tools/report_paths.py:same_report_path`, providing cross-platform case-folding volume safety on vfat/exFAT/CIFS mounts. Verified with `tests/test_bvh_index.py` (44/44 PASS). 100% clean-room.
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:11 UTC · original

Recommendation: [MERGE]

Reasoning: bvh_index uses the shared report_paths.same_report_path instead of a private copy, as CONTRIBUTING.md asks, which also picks up the case-folding-volume probe. Net -29 lines. No new test, but it reuses a helper ~70 tools already rely on. One of a series with #1170-#1173. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 2/10

**@⁠Deedlyy** on GitHub · 2026-11-24 20:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1162#issuecomment-7143173211) **Recommendation:** [MERGE] **Reasoning:** `bvh_index` uses the shared `report_paths.same_report_path` instead of a private copy, as CONTRIBUTING.md asks, which also picks up the case-folding-volume probe. Net -29 lines. No new test, but it reuses a helper ~70 tools already rely on. One of a series with #1170-#1173. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 2/10
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/1162/head:github-bot/gh-1162'
git switch 'github-bot/gh-1162'

Merge

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