anim_clips: ask report_paths for the report-path guard #2636
Closed
github-bot
wants to merge 2 commits from
github-bot/gh-2636 into main
AGit
pull from: github-bot/gh-2636
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!2636
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2636"
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:36 UTC · original
breachato:anim-clips-shared-report-path→main· +5 −11 · 2 files · 2 commits · closed without mergingClaimed in the coordination issue as: ANIM-CLIPS-SHARED-REPORT-PATH
What and why
tools/anim_clips.pycompares the archive it reads with the--outreport through its ownsame_output_path:That answer is wrong in the two places
tools/report_paths.pyexists for. On a case-insensitive APFS volumeanim/clips.jsonandanim/Clips.jsonare one file, butnormcasekeeps case on macOS, so the guard passes the pair and the second write truncates the first. In a case-sensitive Windows directory the two spellings are two files, butnormcasefolds them on Windows, so the guard refuses a pair that does not collide.CONTRIBUTING.mdasks a report writer to callreport_paths.same_report_path(a, b)rather than deriving the answer again.The private function becomes an alias,
same_output_path = same_report_path, somain()and any importer keep the old name.anim_clipsalso joinsSHAREDintests/test_report_paths.py, so the no-private-copy test guards it from now on.Tested
python -I tests/test_anim_clips.py— OKpython -I tests/test_report_paths.py— OK (1 skipped: the macOS-only case), withanim_clipsinSHAREDpython -I tests/test_report_path_case.py— OK (1 skipped, same)python -I tools/anim_clips.py --help— cleanSynthetic archives built in a temporary folder; no game data.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.@fiestorra on GitHub · 2026-11-29 22:47 UTC · original
Verified independently on
main452d1d1b6(Windows, Python 3.13, no game data): the two commits apply cleanly and the tests pass.tools/anim_clips.py+10/-10 net -8: it now asksreport_pathsfor the guard instead of keeping its own copy, andtests/test_report_paths.pylistsanim_clipsinSHAREDso the shared list stays true.One practical note for whoever merges the set: this is one of five pull requests from the same author (
#2636-#2640) with the same shape, one per tool. They are independent files, so they do not conflict with each other, but they will each need the same review - if that is the intent, fine; if it was one change split five ways, a single pull request with five files would be one review instead of five.Not tested: on the game data itself (none is available or needed here); the tests are the synthetic fixtures in the repository.
Written with an AI assistant.
@breachato on GitHub · 2026-11-29 22:55 UTC · original
Thanks for the independent verification, and for measuring the tuple conflict — that is the useful part.
The split into five is deliberate: this repository asks for one topic per pull request, and each of these is a different tool with its own tests, so five reviews is the shape we chose rather than one change cut five ways. Nothing to re-plan there.
On merging: agreed, and it is what I will do. All five test-merge cleanly against
mainon their own right now, and the only collision is theSHAREDtuple line intests/test_report_paths.py. After each one lands I will rebase the next onmainwithgit rebase --reapply-cherry-picks(the entry is one line of the same tuple, so a plain rebase would otherwise drop the commit as an already-applied cherry-pick) and force-push with--force-with-lease. Both additions belong in the tuple alphabetically, so there is no disagreement between the branches to resolve — a conflict here is just the queue, not a review question.The head you verified is the current one:
#2636is atfc1e720ea(baseedf0ff5d0), the pairf984b4606/fc1e720ea.For the record, the other four at the same moment, each 2 files and
MERGEABLE:#26373cd08cfc7,#263891675f6e2,#2639644bcb54a,#26400b2bab55f.AI-assisted.
@aegish-zagi on GitHub · 2026-11-30 04:48 UTC · original
VERIFY-2636 — PASS
fc1e720ea9| 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 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 "anim_clips" 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 "anim_clips" 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 \c1e720ea: \python -I tests/test_report_paths.py\ — 26 tests OK (9.9 s). \nim_clips\ is now covered by the shared report-path guard. Windows 11 26200.9711, Python 3.12.10. AI-assisted: yes (opencode).
fc1e720ea9tod677a53f19@breachato on GitHub · 2026-11-30 19:23 UTC · original · edited 2026-11-30 20:04 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_anim_clips.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/anim_clips.py).New head:
d677a53f19fbcd12453524c9a9081192b74d39b3.Measured on that head, standard library only, Windows, Python 3.14, no game data:
@fiestorra @aegish-zagi @KelboLive — your checks are on
fc1e720ea, i.e. before the rebase. Could you re-run the guard ond677a53fand 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
d677a53f1, and the change is load-bearing: withtools/anim_clips.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/anim_clips.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.
@aslan2142 on GitHub · 2026-12-01 11:49 UTC · original · requested changes
Reviewed the diff against
main: delegating the report-path guard intools/anim_clips.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.)
d677a53f19to05dfffc2a105dfffc2a1tof866b196c6@aslan2142 on GitHub · 2026-12-02 05:10 UTC · original
Thank you @breachato! Both commits from this PR (
anim_clips) 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