vertex_types: ask report_paths for the report-path guard (VERTEX-TYPES-SHARED-REPORT-PATH) #1170

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

@⁠breachato on GitHub · 2026-11-24 19:32 UTC · original
breachato:rpt-vertex-types → main · +2 −11 · 1 files · 1 commits · open

Claimed in the coordination issue as: 7142219882 (#14)

Depends on: none

Fixes: none

What and why

tools/vertex_types.py already imported report_paths.path_key for its --json guard at :49, and then
carried a private same_output_path at :682 that derived the same answer again (realpath, normcase,
samefile). CONTRIBUTING.md asks a report writer to call report_paths.same_report_path rather than derive
it again, and the private copy also left out that helper's folding-volume probe: on a Linux mount that
ignores case (vfat, exFAT, CIFS) --json R.json and --json r.json were two report paths and the second
overwrote the first. The one guard site now calls same_report_path; no test calls the private name, so it
goes with the duplication.

Tested

  • tests/test_vertex_types.py: 44 passed, 1 skipped, 8 subtests passed.
  • tests/test_vertex_types_wide_group.py: 1 passed.
  • python -I tools/vertex_types.py --help: prints its usage (the import works under -I).
  • python -m compileall -q tools/vertex_types.py: clean.
  • Not tested: the folding-volume case this fixes, which needs a case-folding mount (vfat/exFAT/CIFS);
    this machine is NTFS, where normcase already folds case. tests/test_report_paths.py covers the
    helper's own folding-volume answer.
  • No game files, no GPU; nothing was built.

GPUs tested: n/a

AI-assisted: yes

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:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1170) `breachato:rpt-vertex-types` → `main` · +2 −11 · 1 files · 1 commits · open Claimed in the coordination issue as: 7142219882 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Depends on: none Fixes: none ### What and why `tools/vertex_types.py` already imported `report_paths.path_key` for its `--json` guard at `:49`, and then carried a private `same_output_path` at `:682` that derived the same answer again (realpath, normcase, samefile). CONTRIBUTING.md asks a report writer to call `report_paths.same_report_path` rather than derive it again, and the private copy also left out that helper's folding-volume probe: on a Linux mount that ignores case (vfat, exFAT, CIFS) `--json R.json` and `--json r.json` were two report paths and the second overwrote the first. The one guard site now calls `same_report_path`; no test calls the private name, so it goes with the duplication. ### Tested - `tests/test_vertex_types.py`: **44 passed, 1 skipped**, 8 subtests passed. - `tests/test_vertex_types_wide_group.py`: **1 passed**. - `python -I tools/vertex_types.py --help`: prints its usage (the import works under `-I`). - `python -m compileall -q tools/vertex_types.py`: clean. - **Not tested:** the folding-volume case this fixes, which needs a case-folding mount (vfat/exFAT/CIFS); this machine is NTFS, where `normcase` already folds case. `tests/test_report_paths.py` covers the helper's own folding-volume answer. - No game files, no GPU; nothing was built. GPUs tested: n/a AI-assisted: yes ### 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)
The tool carried its own `same_output_path` (realpath, normcase, samefile) while it already imported `report_paths.path_key`, so it answered the report-path question two ways; CONTRIBUTING.md asks a report writer to ask `same_report_path` instead of deriving it again. The private copy also missed the helper's folding-volume probe, so on a Linux mount that ignores case (vfat/exFAT/CIFS) `--json R.json` and `--json r.json` were two paths and the second overwrote the first.

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

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

Reviewed and verified. Replaces custom same_output_path implementation in tools/vertex_types.py with canonical tools/report_paths.py:same_report_path, protecting against accidental file self-truncation across case-folding filesystems and links. 100% clean-room.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1170#pullrequestreview-6046021451) · **approved these changes** Reviewed and verified. Replaces custom `same_output_path` implementation in `tools/vertex_types.py` with canonical `tools/report_paths.py:same_report_path`, protecting against accidental file self-truncation across case-folding filesystems and links. 100% clean-room.
Author
Owner

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

Recommendation: [MERGE]

Reasoning: vertex_types drops its private same_output_path and calls report_paths.same_report_path, picking up the case-folding-volume probe. Net -9 lines, part of the #1162/#1171-#1173 series. Low risk; it reuses the shared helper. 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:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1170#issuecomment-7143152421) **Recommendation:** [MERGE] **Reasoning:** `vertex_types` drops its private `same_output_path` and calls `report_paths.same_report_path`, picking up the case-folding-volume probe. Net -9 lines, part of the #1162/#1171-#1173 series. Low risk; it reuses the shared helper. 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/1170/head:github-bot/gh-1170'
git switch 'github-bot/gh-1170'

Merge

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