navmesh_decode: ask report_paths for the report-path guard (the last legacy copy) #2949
Closed
github-bot
wants to merge 1 commit from
github-bot/gh-2949 into main
AGit
pull from: github-bot/gh-2949
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2949
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2949"
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?
@erdemcisse on GitHub · 2026-12-01 20:51 UTC · original
erdemcisse:chore/navmesh-decode-report-paths→main· +6 −43 · 2 files · 1 commits · closed without mergingClaimed in the coordination issue as: REPORT-PATHS-NAVMESH-DECODE — #2570
Depends on: #2741 (the same chore for
text_tables; the two PRs touch the same two lines oftests/test_report_paths.py, so whichever lands first, the other rebases — this one does not build on its code)Fixes:
What and why
tools/navmesh_decode.pywas the last tool inLEGACY_COPIES: it carried its ownsame_report_path—— which is older than
tools/report_paths.pyand misses both cases the shared guard grew for:normcasedoes not fold (vfat, exFAT, CIFS on Linux/macOS):same_name_on_folding_volumeasks the volume itself with one scratch folder. Without it,--out R.jsonagainst a carve manifestr.jsonin a carved directory on such a volume is not refused, and the run overwrites the manifest it scanned._same_windows_folded_pathprobes the directory, so two genuinely distinct filesr.jsonandR.jsonare not refused as one.The comment above
LEGACY_COPIESasks for exactly this import ("Do not add to this list: import report_paths instead"), and #2741 did it fortext_tables.The change: import the shared guard (
from report_paths import same_report_path), delete the 37-line local copy with_PC_CASE_SENSITIVE,_case_insensitive_volumeand_path_key, drop the now unusedunicodedata, addnavmesh_decodetoSHARED, emptyLEGACY_COPIES, and cover the re-exported name intest_tools_still_expose_same_report_path— the namenavmesh_nodes,navmesh_linksandnavmesh_cell_fitimport from it.Tested
python -Ifor the standard-library tests, on Windows 11 (10.0.26100), Python 3.13.15. No game files and no GPU: every test builds its own temporary files, as the suite's own headers say.Red on
main(50e97c1's parent), the test change kept, the tool restored:Green with the PR:
navmesh_decode.same_report_path is report_paths.same_report_pathisTrueafter the change (checked directly), and the tool's own CLI guard tests (test_cli_refuses_to_overwrite_its_input) still pass unchanged.GPUs tested: n/a (a Python report-path guard; nothing here runs on a GPU)
AI-assisted: yes — DeepSeek Harness (lead agent). No separate reviewer model was run, which the contributor guide asks for; the tests above are the check I ran.
Checklist
mainand merges cleanly (one textual overlap with #2741, named above).check_no_game_data.pyon both files.docs/design.md— n/a, no translator change.@merzleckeier on GitHub · 2026-12-01 21:01 UTC · original
Independent decoder entry-point check for the shared path guard on
50e97c19merged intobc332322e. The report-path, decoder and index suites passed 79 executed tests on each tree under Linux, with two skips. Windows CPython 3.12.10 under Wine passed 42 executed report-path and decoder tests on each tree, with one skip. The decoder now exposes the sharedsame_report_pathfunction.I called the real decoder entry point with synthetic temporary paths. Both trees accepted distinct Linux output files and kept the bytes of a real hardlinked input unchanged when its alias was rejected. With folding normalized keys injected for two existing files whose real identities differ, main refused the outputs and the PR wrote separate JSON and CSV reports. With case-folding lookup simulated for the volume probe and nested output paths that do not yet exist, main accepted the pair and the PR rejected it before creating either output. These last two cases simulate the relevant filesystem rules.
MEASURED with OpenAI Codex and a separate read-only review.
@andrew-ai on GitHub · 2026-12-01 21:24 UTC · original
Native Windows 11 / NTFS, CPython 3.14.0, base
1e3e316c5versus PR50e97c193. I ran the actual decoder CLI against an empty synthetic input directory with two report destinations. I checked filesystem identity separately by creating the first spelling and looking up the second. No path functions were mocked.The Deseret pair U+10400 / U+10428 (each followed by
.txt) demonstrates the improvement on this volume. Python'snormcasemaps the names together, but NTFS lets both exist as distinct files.The remaining refusal for new Deseret files is a conservative false positive shared with base. The change fixes the existing-file case on a real volume. Coordination claim. AI-assisted with OpenAI Codex (GPT-6).
@KelboLive on GitHub · 2026-12-01 21:38 UTC · original · reviewed
LGTM on the code:
navmesh_decodenow re-exports the shared guard (tools/navmesh_decode.py:59), and the shared implementation preserves the old macOS_PC_CASE_SENSITIVE/NFD behaviour while adding the folding-volume probe and the case-sensitive-Windows handling. I found no case where the removed guard returned True and the shared one returns False; the only divergence is two distinct files in a case-sensitive Windows directory, which are now correctly allowed, not an overwrite risk.Tests are effective:
test_report_paths26/0,test_report_path_case, and all the navmesh suites pass; reverting the tool fails 3 tests, and stubbing the shared guard to plainrealpathequality fails 6.One wording issue: this is the last entry in
LEGACY_COPIES, but not the last legacy copy repo-wide —tools/bvh_index.py:476-509still has the identical_case_insensitive_volume/_path_key/same_output_pathguard (same macOS logic, same gap on a Linux case-folding mount), andtools/text_tables.py:466-472is the open #2741. The body is correctly scoped ("the last tool inLEGACY_COPIES"), but the title and the comment attests/test_report_paths.py:27("No tool carries its own copy any more") overstate it.Please scope those two to
same_report_path-named copies, or file abvh_indexfollow-up. Merge is clean against current main; the textual overlap with #2741 means whichever lands second should rebase.@aslan2142 on GitHub · 2026-12-02 05:10 UTC · original
Thank you for putting this together @erdemcisse!
navmesh_decodewas already covered by earlier PR #1243 (by @breachato), which just landed onmainas part of batch PR #3024 (commit4dfd90c35), clearingLEGACY_COPIEStoset(). Closing this as superseded — really appreciate the help keepingtests/test_report_paths.pyclean!@erdemcisse on GitHub · 2026-12-02 18:19 UTC · original
Main has since settled the point the review raised. Batch #3024 (
4dfd90c35) converted both tools named there: onmain,tools/bvh_index.py:477-481keeps the namesame_output_pathbut delegates tosame_report_path, andtools/text_tables.py:64imports the shared guard directly.tests/test_report_paths.pynow carriesLEGACY_COPIES = set()with both tools inSHARED, so the sentence the review called overstated ("No tool carries its own copy any more") holds as written and there is nobvh_indexfollow-up to file. Nothing further is needed from this branch; thank you for the review.Pull request closed