skin_streams: ask report_paths for the report-path guard #2640
Closed
github-bot
wants to merge 2 commits from
github-bot/gh-2640 into main
AGit
pull from: github-bot/gh-2640
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!2640
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2640"
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:skin-streams-shared-report-path→main· +7 −9 · 2 files · 2 commits · closed without mergingClaimed in the coordination issue as: SKIN-STREAMS-SHARED-REPORT-PATH
What and why
tools/skin_streams.pycompares the archive it reads with its--jsonreport through its ownsame_output_path. That answer is wrong in a case-insensitive APFS volume and in a case-sensitive Windows directory, which is exactly the pairtools/report_paths.pydecides. The private function becomes an alias ofreport_paths.same_report_path; the file also gets theROOT/sys.path.insertblock that-Ineeds to import the helper fromtools/.The tool also joins
SHAREDintests/test_report_paths.py.Tested
python -I tests/test_skin_streams.py— OKpython -I tests/test_report_paths.py— OK (1 skipped: the macOS-only case), withskin_streamsinSHAREDpython -I tests/test_report_path_case.py— OK (1 skipped, same)python -I tools/skin_streams.py --help— cleanSynthetic archives 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.
@fiestorra on GitHub · 2026-11-30 05:57 UTC · original
Verified on this machine (Windows 11, Python 3.13.14).
1. It applies.
merge-treeclean; the commit cherry-picks ontomain0ae217cebwithout a conflict.2. The test suite is unchanged and passes:
3. The tool still starts, which is the part a move can break because these are run as scripts where
tools/is not onsys.path:What the tests cannot show: as with the other four in this set, it is a refactor - the private
same_output_pathreplaced by the sharedsame_report_path- so passing with and without the change is the expected result, not proof of equivalence. I compared the two implementations: they differ on theOSErrorbranch, where the shared helper can returnTrueon a folded-path match that the private copy answeredFalseto. That is a stricter check, and a fair one, but reviewers should read this as a behaviour change in the safe direction rather than a pure move.And the standing note for the set: #2636-#2640 all conflict with each other (10 pairs, 10 conflicts, all on the
SHAREDtuple intests/test_report_paths.py). At most one can land as written; the other four need a rebase that re-adds their name to the tuple. is orthogonal - it is the tuple line that collides.Written with an AI assistant.
@fiestorra on GitHub · 2026-11-30 05:58 UTC · original
Correction to the comment above: two placeholders did not expand when I posted it, so it says
python3 tools/ --helpand "`` is orthogonal". The intended text:and the tool being refactored (
skin_streams) is orthogonal to theSHAREDtuple collision - it is the tuple line intests/test_report_paths.pythat makes all ten pairs of this set conflict.The measurement stands as reported:
tests/test_report_paths.py-> 26 passed, 22 subtests, andtools/skin_streams.py --helpexits 0. I could not edit the original comment (the API returns 404 for the PATCH from this account), so this is the correction rather than a silent leave.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 "skin_streams" 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 "skin_streams" 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 \
0b2bab55f5to6a76f09695@breachato on GitHub · 2026-11-30 19:23 UTC · original · edited 2026-12-01 13:50 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_skin_streams.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/skin_streams.py).New head:
6a76f0969507ad6598ca76379c375b05fb2bdc97.Measured on that head, standard library only, Windows, Python 3.14, no game data:
@fiestorra @KelboLive — your checks are on the pre-rebase commits (
b8bd37111and the pre-rebase head). Could you re-run the guard on6a76f096and approve if it still holds? Merging on the old head would land code none of you has looked at.This is the sibling that also carries the import bootstrap, so the startup path is worth one more run:
python -I tools/skin_streams.py --helpstill exits 0 on the new head.The diff is unchanged in substance: same two commits, same
SHAREDentry, only the tuple context under it moved.@imShangLi on GitHub · 2026-12-01 05:02 UTC · original
VERIFY-2640 — Linux, Python 3.15, CPU only, no game files
Claimed as
VERIFY-2640.python3 -I tests/test_report_paths.pymain86c30fcemain+ this pull requestmain+ only this pull request's test changeRow 3 is
main's file with the pull request's own 15-line diff patched in, nothing else checked out. The failure there is anAssertionError, not an import or attribute error, and it names the changed file:tests/test_report_paths.pyreadstools/skin_streams.pyand asserts it imports the shared helper. Without the change the import is not there, so the test reaches the changed code rather than merely failing to load. Reverse control holds: the change is what turns it green.The part the test does not cover
The change is two things, and the test only sees the first:
tools/skin_streams.pygainsfrom report_paths import same_report_path— this is what the test asserts.same_output_pathis replaced by an alias to that helper:Nothing in the test executes either function, so I ran both over 14 path pairs — the same file, a hard link, a symlink, two distinct files, the same name in another directory, differing case, both paths missing, one missing, relative vs absolute, and empty strings:
The two implementations are not equivalent in general, though. The local copy compared
os.path.normcase(realpath(a)) == os.path.normcase(realpath(b)); the shared one compares the resolved names first, thensamefile, and only folds in theOSErrorfallback (_same_windows_folded_path,_same_resolved_name).normcaseis the identity function on Linux, so that difference is not measurable here — I did not run Windows. Where it does apply, the shared helper is the stricter of the two: it returnsFalsefor two distinct files whose names only fold together, which is what its comment says it is for. Both directions of a guard whose job is "refuse an--jsonthat would overwrite an input" fail safe.Verified. The change does what the description says, its test catches it, and it merges cleanly with
main86c30fce.AI-assisted: yes — MiMo-V2.6-Flash (OpenCode). It built the worktrees, applied row 3 as a patch, ran the 14-case comparison and drafted this report.
@aslan2142 on GitHub · 2026-12-01 11:50 UTC · original · requested changes
Reviewed the diff against
main: delegating the report-path guard intools/skin_streams.pytoreport_paths.same_report_pathis clean and clean-room verified, but this branch currently conflicts withmainintests/test_report_paths.py:8-12(SHAREDtuple updated by#2639and earlier merges). Please rebase onto currentmainso CI runs cleanly.(AI-assisted review.)
@merzleckeier on GitHub · 2026-12-01 14:28 UTC · original
I resolved the tuple conflict locally at
6a76f096+b3910e5eby addingskin_streamsand retaining main'smeshlet_pageentry. The 41 skin-stream tests and both shared path suites pass (one platform-dependent skip in each path suite).I exercised
skin_streams.mainwith a synthetic one-mesh archive and real filesystem identity checks. Linux provided two distinct files differing only by case, while I substituted Windows-stylenormcaseto model a case-sensitive Windows directory.mainrejects the separate report file as an alias (exit 2). The PR writes its one-mesh report (exit 0). Both reject a real hard link to the input (exit 2) and leave its bytes unchanged. The case-sensitive Windows directory rules were simulated on Linux. MEASURED, AI-assisted (Codex).6a76f09695to7ef75fb1117ef75fb111tofc49b79695@aslan2142 on GitHub · 2026-12-02 05:10 UTC · original
Thank you @breachato! Both commits from this PR (
skin_streams) have been landed onmainwith full original authorship preserved in batch PR #3024 (commit4dfd90c35), which consolidated all 15tools/report_paths.pyPRs together to avoid sequentialtests/test_report_paths.pymerge conflicts. Closing this PR now that it is merged!Pull request closed