mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #566] [MERGED] bink_play: honor --no-cache without persistent storage (BINK-NO-CACHE) #611
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#611
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/566
Author: @JiyouProt
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:codex/bink-no-cache📝 Commits (1)
58d6fe2bink_play: keep --no-cache independent of persistent storage (BINK-NO-CACHE)📊 Changes
2 files changed (+80 additions, -9 deletions)
View changed files
📝
tests/test_bink_play.py(+67 -0)📝
tools/bink_play.py(+13 -9)📄 Description
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
1c93c86970.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 #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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.