Repository navigation
bink_play: honor --no-cache without persistent storage (BINK-NO-CACHE) - #566
Conversation
|
Reviewed on Windows 11 x64 ( Verdict: Looks good — Checks run locally
Additional Windows edge-case probes
AI-assisted: yes |
|
Rechecked head 58d6fe2 against current main 58be9cd on Windows / Python 3.14.3. It merges cleanly. On the combined tree: test_bink_play 14/14, test_bink_play_cache_write 3/3, CI registration 15/15 and LF writers 3/3 pass; changed-file no-game-data and whitespace checks are clean. CI registration was run outside the local sandbox because it needs Git Bash. I also merged #840 (d6cee3e, the fd-cleanup follow-up to #568) into that local integration tree: no conflicts, test_bink_play 16/16 and test_bink_play_cache_write 3/3 pass. Thus the no-cache behavior here composes with that cache-error cleanup. No code or branch update is needed for #566. Synthetic inputs only, no GPU or game files. AI-assisted with Codex. |
|
Merged, thanks! The new test fails on
AI-assisted (Claude Code, Claude Opus 5.5). |
…n review The previous commit proves that a loop's compares select the lanes of the access and that its retry keeps exactly the lanes still waiting. Every failure of that proof was reported with one reason. They now say which part failed: - the access is in no single-block loop ending in s_cbranch_execnz; - the loop is nested in another or split over blocks; - the compares do not select the access's lanes; - the retry does not keep the lanes still waiting. Without the per-lane form the proof cannot run. Nothing is emitted then, and that failure is the one reported, as before. Tests, all hand-assembled: - the case ifBars reported on upstream PR ProjectLeonida#566 (the compares never narrow EXEC), an access under a further mask, a retry that keeps other lanes than those waiting, a wave64 retry of one half: refused, each with its reason; - the waterfall LLVM writes for GFX10 and later (a v_cmpx_eq chain, the retry as todo & !EXEC, also folded into s_andn2_wrexec) is accepted in wave32 and wave64, and each lane samples its own texture on the GPU; - one loop per operand, the sampler's inside the resource's, is refused by name. The console gives each lane its own pair there; following the outer loop's reads into the inner block is left for later. Other per-lane work in a waterfall loop is still taken to run once for each lane; marked as a shortcut. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Shaders: per-lane descriptors chosen by control flow (stacked on ProjectLeonida#307)
Claimed in the coordination issue as: BINK-NO-CACHE
What and why
--no-cachestill consulted the persistent cache path, created its parent directory and placed the temporary names report there. Thus listing with caching disabled failed if that cache directory was unavailable (reproduced with an existing file at the directory path), and a successful uncached lookup still created persistent directories.Only resolve, read and create the persistent cache when caching is enabled. Uncached lookups use the system temporary directory and retain the existing report cleanup on success and failure. Existing cache contents remain untouched. The cached path, invalidation keys and concurrent lookup behavior are unchanged.
Four synthetic regressions cover CLI listing with an unusable cache directory, no directory creation, preservation of an existing cache and cleanup after report-generation failure. All four fail on the original source.
Tested
Windows 11 build 26300.9974, Python 3.14.3, based on main 1c93c86.
python -I tests/test_bink_play.py: 14 passed, including the existing cache/invalidation/concurrency tests.python -I tests/test_text_write_line_endings.py: 3 passed.make_game.py --helpandbink_play.py --help, changed-file no-game-data scan andgit diff --check: passed.test_bink_names.py: 35/36 passed. The Windows path-representation assertion intest_unreadable_mount_directory_preserves_the_reportfails identically in an untouched checkout of the same main. This is already covered by tests: expect the unreadable path as OSError prints it (bink_names, opus_tags, world_names) #312 and is independent of this change.GPUs tested: n/a — only synthetic CSV/XML fixtures, no movie data, codec or GPU needed.
AI-assisted: yes, Codex.
Checklist