meshlet_page: ask report_paths for the report-path guard (MESHLET-PAGE-SHARED-REPORT-PATH) #1431
Closed
leonida/mandy
Dashhhhhhhh wants to merge 0 commits from
fix/meshlet-page-report-path into main
pull from: fix/meshlet-page-report-path
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!1431
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/meshlet-page-report-path"
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 closed
This pull request cannot be reopened because the branch was deleted.
Claimed in the coordination issue as: MESHLET-PAGE-SHARED-REPORT-PATH
What and why
tools/meshlet_page.pycompared report paths withos.path.normcase, which does not fold case on macOS, andos.path.samefile, which cannot see a file that has not been created.--json CARVE/index.jsonfor a folder created ascarveis that folder's carve manifest on APFS, and the check used to allow it.The tool now uses
tools/report_paths.py.Tested
python -I tests/test_meshlet_page.py CliTests(14 tests) on macOS APFS. The new test refusesCARVE/index.jsonfor a folder created ascarve. No game files.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md(not a translator change).Made with Cursor
Reviewed ba4e7ef65:
meshlet_page.py's--jsonguard now usesreport_paths(same_report_pathandpath_key). Ran in a sandbox on the branch and onorigin/mainwith the new tests copied in:tests/test_meshlet_page.py(73 OK, 2 skipped on this case-sensitive volume),tests/test_report_paths.py(22 OK),tests/test_report_path_case.py(4 OK, 1 skipped), andcompileallclean;tests/test_tool_stdout_encoding.pypasses on the branch (fails on currentorigin/mainonly overtools/compute_heap_layout_census.py, added after the fork). Under theMacVolumeTestsfolded-volume patch,mainaccepts--json CARVE/index.json(rc=0, creates the manifest) where the branch refuses it (rc=2) and refusesCARVE/0000.binupfront at the guard; existingCARVE/index.jsonrefuses at the guard viasamefileon both, while existing validCARVE/0000.binrefuses via walk-timesamefileonmain(so the second new test also passes there as a regression lock). AI-assisted review.Recommendation: Merge
Verified by OreoFR
3408969a7+ PR headba4e7ef65python -I tests/test_meshlet_page.pyAI-assisted (Claude Code, Claude Opus 5.5).
#1431 | head ba4e7ef6572527ff08dfd9a03fc9724279f25fa2 (merged cleanly onto origin/main a3484ceebc) | Windows 11 (10.0.26200.9974, NTFS), Python 3.12.10 | AI-assisted: yes
Independent Verification (Windows 11 + NTFS)
tools/meshlet_page.pyandtests/test_meshlet_page.pyupdatingsame_output_pathandis_scanned_inputto usereport_paths.same_report_pathandreport_paths.path_key.python -I scripts/check_no_game_data.py tools/meshlet_page.py tests/test_meshlet_page.pypassed (rc=0).python -I tests/test_meshlet_page.py->75/75passed (OK,0skipped) on a real case-insensitive NTFS volume, executing bothtest_json_cannot_create_the_manifest_under_another_case(carvevsCARVE\index.json) andtest_json_cannot_replace_a_page_under_another_case_of_the_folder(carve\0000.binvsCARVE\0000.bin).carve\0000.binand an NTFS directory junctionmklink /J CarveJunc carve, verifyingis_scanned_input("...\\CarveJunc\\INDEX.JSON", carve) == True,is_scanned_input("...\\CarveJunc\\0000.BIN", carve) == True, andis_scanned_input("...\\report.json", carve) == False.Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 2 commit(s) not there, and 13 of the 35 lines it adds are already present. No duplicate found: its claimMESHLET-PAGE-SHARED-REPORT-PATHappears in no other open pull request and in nomaincommit.AI-assisted (Claude Code).
RUN report for #1431 (MESHLET-PAGE-SHARED-REPORT-PATH)
Kind: Python (
tools/meshlet_page.pyplus its testtests/test_meshlet_page.py).Heads: PR head
ba4e7ef65, based on1154976d4; origin/mainc22a0a732(merged locally withgit merge --no-edit --no-ff, clean, 2 files; main changed both files since the base, no conflict).Commands (repo root, Python 3.13.12):
python -I -B tests/test_meshlet_page.py, and the same one process per file for the tests of the tools that importmeshlet_page, plus thereport_pathsones: test_tool_stdout_encoding, test_analyze_4240_full, test_draw_ownership, test_missing_input_exit_codes, test_vertex_types, test_vertex_types_wide_group, test_report_paths, test_report_path_case.Results:
test_meshlet_page.py73 tests OK; both new tests (test_json_cannot_create_the_manifest_under_another_case,test_json_cannot_replace_a_page_under_another_case_of_the_folder) ran and passed (not skipped: NTFS ignores case).test_meshlet_page.py75 tests OK, and all 8 other files OK (test_report_path_case and test_vertex_types with 1 skip each).tools/meshlet_page.pyreverted to the PR base (tests kept), the file still passes 73 of 73 including the two new tests. Reason: on Windowsrealpathreturns the on-disk case andnormcaselowercases, so the old code already refusedCARVE/...; the bug is the macOS path rules (case kept), which needs a macOS run.is_scanned_input): withos.path.normcasekeeping case,os.path.realpathset toabspathandreport_paths.case_insensitive_volumeforced to True, the old code answers "NOT refused" for bothCARVE/0000.binandCARVE/index.jsonnext tocarve; the PR code answers "refused" for both. This shows the logic difference under macOS-like rules; it is not a macOS run.Machine: Windows 11 Pro x64, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (
python -I).Tested
ba4e7ef65merged (no commit) withmain7c330c76d: Python 3.12.4, Windows 11 10.0.26300, CPU only.tests/test_meshlet_page.pygives 75 tests OK (main's own: 73).tools/meshlet_page.pyback tomain, the 75 tests still pass on this Windows/NTFS machine. So the case this PR fixes is not covered here.check_no_game_data.pyis clean.AI-assisted (Claude Code).
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive, NFD), Python 3.12.16, main dd87aa405, PR head ba4e7ef65 : red 1 failure / green 75 OK, 0 skipped
Complements the Windows run (no red on NTFS there).
git merge-tree); does not force a rebase of #2566.test_json_cannot_create_the_manifest_under_another_case(0 != 2) — APFS shows the red (MEASURED n=3). The other new test,test_json_cannot_replace_a_page_under_another_case_of_the_folder, already passes on main (likely covered by an existing guard).test_tool_stdout_encoding: OK on both.same_output_pathis replaced byreport_paths.same_report_path(samefile + folded key);is_scanned_inputusespath_key;sys.path.insertof the tools folder so the import works under-I. No game data.Verdict: READY
AI-assisted: Claude Code
@Dashhhhhhhh #2639 landed the first half of this (
meshlet_pageasksreport_paths.same_report_path), so this branch now conflicts withmain501b3e6c5. It is not a duplicate: the other half is still missing there.is_scanned_inputinmaindecides whether a path is inside the carve folder withos.path.normcase(os.path.abspath()), which keeps the typed case on macOS, and neither of your two tests is inmain.Could you merge
maininto this branch (a merge, no rebase or force-push) and keep what is left:path_keyfor the folder comparison, and the two tests? OreoFR saw one of them,test_json_cannot_create_the_manifest_under_another_case, fail on APFS before #2639; after the merge it is worth knowing whether it still fails onmain, and whether the second one (test_json_cannot_replace_a_page_under_another_case_of_the_folder) does. Neither shows a red on Windows.Posted by an AI agent (Claude Code) for MoonEyes.
This duplicates #2639: both make
tools/meshlet_page.pyaskreport_paths.same_report_path, and both cover--json CARVE/index.jsonfor a folder created ascarve.#2639 is the same change reduced to what the repository asks for (one topic: the tool plus its
SHAREDentry intests/test_report_paths.py, no rewrite oftests/test_meshlet_page.py), rebased onto currentmainand green there. This branch is nowCONFLICTINGagainstmainfor theSHAREDline alone — the same mechanical conflict every sibling had after #2637 landed, not a problem with the change itself.Suggestion: merge #2639 and close this one, so the same behaviour lands once and the per-tool test additions can be their own PR. If you would rather keep this branch, it needs the tuple rebuilt from current
mainplus the addedtests/test_meshlet_page.pycases rebased on top; I can do that instead if you say so.For information: this pull request is carried in #3086, which merges your head (your commits are kept) into current
main, resolves the conflicts keeping both sides, and fixes the points raised in review here (details in its description). This one stays open until a maintainer decides; if you pick it up again, say so and the carry can be closed.AI-assisted (Claude Code, Claude Opus 5.5)
Closing: this pull request no longer applies to current
main(merge conflict intools/meshlet_page.py), and open pull requests that have fallen out of step withmainare being closed so the list stays workable. Your work is not lost: it is carried in #3086, which keeps your commits and resolves the conflict on current
main.AI-assisted (Claude Code).