meshlet_page: ask report_paths for the report-path guard #2639
No reviewers
Labels
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
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2639
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2639"
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?
@breachato on GitHub · 2026-11-29 20:37 UTC · original
breachato:meshlet-page-shared-report-path→main· +8 −9 · 2 files · 2 commits · merged 2026-12-01 07:01 UTCClaimed in the coordination issue as: MESHLET-PAGE-SHARED-REPORT-PATH
What and why
tools/meshlet_page.pyrefuses a report path that would overwrite an input or an existing report through its ownsame_output_path. That answer is wrong in a case-insensitive APFS volume and in a case-sensitive Windows directory. The private function becomes an alias ofreport_paths.same_report_path; the file also gets theROOT/sys.path.insertblock (python -Ikeeps only the script's folder on the path, and the helper lives intools/), aspe_inspect.pyandworld_census.pyalready do.The tool also joins
SHAREDintests/test_report_paths.py, so the no-private-copy test guards the change.Tested
python -I tests/test_meshlet_page.py— OKpython -I tests/test_report_paths.py— OK (1 skipped: the macOS-only case), withmeshlet_pageinSHAREDpython -I tests/test_report_path_case.py— OK (1 skipped, same)python -I tools/meshlet_page.py --help— cleanSynthetic pages in a temporary folder; no game data.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.@fiestorra on GitHub · 2026-11-30 00:38 UTC · original
Verified on
mainb8bd37111(Windows, Python 3.13): the two commits apply cleanly, the shared list still passes, and this tool's own tests pass.This is the third of the five siblings I have checked (
#2636,#2637and here), all with the same shape and all correct individually. The one thing that will bite is the shared tuple: every one of the five adds its name toSHARED = (...)on the same line oftests/test_report_paths.py, so whichever merges after the first needs a rebase, and that conflict is mechanical - both names belong, alphabetically - rather than a disagreement between branches.Nothing in this one needs a decision of its own.
Written with an AI assistant.
@aegish-zagi on GitHub · 2026-11-30 04:49 UTC · original
VERIFY-2639 — PASS
644bcb54aa| merge state vs main1d22590b9: CLEAN (scratch merge, no conflicts)python -I tests/test_report_paths.py(the test file this PR touches)python -I scripts/check_no_game_data.pyon both changed files: pass; tool compiles.AI-assisted: yes (Muse Wonder, Muse by Meta)
@fiestorra on GitHub · 2026-11-30 05:43 UTC · original
Verified the two siblings that carry more than the tuple edit, because they add an import bootstrap and that is the part that can break a tool at startup.
#2639 (
meshlet_page) and #2640 (skin_streams) both add, on top of theSHAREDtuple line and the move:which the smaller three do not need. That matters because these tools are run as scripts (
python tools/meshlet_page.py …), where the tools directory is not onsys.path, sofrom report_paths import same_report_pathfails without it.#2639, applied to
main1d22590b9and run here:So the bootstrap works: the tool imports the shared helper when started directly, and the test suite is unchanged.
What I also checked, since it is the risk in a move like this: I compared all five private
same_output_pathimplementations against each other and against the sharedsame_report_path. The five private copies are the same logic (normcase(realpath(…)) == normcase(realpath(…)), thensamefile, thenFalse); the only difference is the shared helper's richerOSErrorbranch, which I described separately. So these five are consistent with each other - there is no fourth variant hiding in one of them.What I did not do: run the tools against real archives.
--helpproves the import path, not the output; the report-writing path needs game data.Written with an AI assistant.
@fiestorra on GitHub · 2026-11-30 09:40 UTC · original
Heads-up: this branch now conflicts on one line, and the conflict has a mechanical fix.
main merged a sibling of this pull request (#2637,
3cd08cfc7"tests: list bink_index in SHARED") at 08:33 today. #2636, #2638, #2639, #2640 and #2637 all edit the same tuple, so the other four now conflict against the merged one:What main has now:
What this branch needs: insert "meshlet_page" in its alphabetical place in that tuple, and keep the rest of the branch unchanged. Everything else in the diff applies cleanly - the tuple line is the only conflict.
Note on ordering, since it is easy to get wrong on a rebase: the tuple is alphabetical, and "meshlet_page" goes between the entries that bracket it. A rebase that appends it at the end would still pass the test but would break the file's convention and the next sibling's merge.
Why I am commenting: I verify open pull requests against current main by applying them in a scratch worktree and building their test targets. This one went from "replays cleanly" to "conflicts" between 09:20 and 10:36 today, and the cause was #2637 landing - not anything in this branch.
Written with an AI assistant.
@KelboLive on GitHub · 2026-11-30 16:45 UTC · original
Independent check on Windows at \
644bcb54a: \python -I tests/test_report_paths.py\ — 26 tests OK (9.9 s). \meshlet_page\ is now covered by the shared report-path guard. Windows 11 26200.9711, Python 3.12.10. AI-assisted: yes (opencode).644bcb54aatoe9b2529a96@breachato on GitHub · 2026-11-30 19:23 UTC · original · edited 2026-11-30 20:05 UTC
Rebased onto
main(8f41d7d0) to clear theSHAREDtuple conflict that #2637 (bink_index) opened for every sibling: the entry now sits in the tuple next tobink_index, and the branch is two commits again.Verified on the new head:
python -I tests/test_report_paths.py— OK (26 tests, 1 skipped)python -I tests/test_meshlet_page.py— OKgit diff main— 2 files: the tool andtests/test_report_paths.pyNo behaviour change beyond the shared helper.
Ready to merge:
MERGEABLE/CLEAN, all five checks green. Every sibling PR touches the sameSHAREDline, so please merge one at a time — I'll rebase the remaining ones after each merge and keep them green.@breachato on GitHub · 2026-11-30 21:21 UTC · original
Rebased onto
mainafter #2637 landed, so theSHAREDtuple conflict is gone and the branch is two commits again on top ofmain(8f41d7d0;mainis nowd8ca1824, which does not touchtests/test_report_paths.pyortools/meshlet_page.py).New head:
e9b2529a967071dd54397352abcb1cf452661397.Measured on that head, standard library only, Windows, Python 3.14, no game data:
@fiestorra @aegish-zagi @KelboLive — your checks are on
644bcb54a, i.e. before the rebase. Could you re-run the guard one9b2529aand approve if it still holds? Merging on the old head would land code none of you has looked at.The diff is unchanged in substance: same two commits, same
SHAREDentry, only the tuple context under it moved.@fiestorra on GitHub · 2026-11-30 21:33 UTC · original
Verified on Windows at your new head
e9b2529a9, and the change is load-bearing: withtools/meshlet_page.pyfrommainthe suite fails.Cherry-picked onto
maind8ca18240in a clean worktree, Python 3.13.14:So the local guard this removes is not dead code that the tuple test happens to tolerate - the test reaches the path it replaces and fails when the old code is put back. That is the control I would want on a refactor whose whole claim is "the same answer, from one place".
Your rebase also holds: the tree applies without the
SHAREDtuple conflict, and the diff is two files (tools/meshlet_page.pyandtests/test_report_paths.py), matching what you reported.What I did not test: anything that needs a real
report_pathstarget on disk - the other two PRs in this family cover that shape, and the three together are consistent, but each one alone only proves its own tool asks the same function.AI-assisted: yes - DeepSeek v4.1 (flash) applied the head and ran both arms on the machine above.
Written with an AI assistant.
@MoonEyes on GitHub · 2026-12-01 07:01 UTC · original
Merging. Head
e9b2529a9merges cleanly withmainf918e5145and does not force a rebase of #2566. CI green on this head. Red/green by fiestorra (Windows) on it, earlier ones by KelboLive and aegish-zagi on older heads; I ran it on main + PR (Windows, Python 3.14): test_report_paths and test_meshlet_page OK, and the shared list fails without this change. A tool and its test only, no game code. Merged by MoonEyes.AI-assisted (Claude Code).