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). |
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