[PR #566] [MERGED] bink_play: honor --no-cache without persistent storage (BINK-NO-CACHE) #611

Closed
opened 2026-11-26 20:18:27 +01:00 by 4ld0 · 0 comments
Owner

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

  • 58d6fe2 bink_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-cache still 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.
  • Full semantic suite with SPIRV-Tools available: 465 files, 6,107 tests, 0 files failed (515 s, 8 jobs).
  • compileall, both make_game.py --help and bink_play.py --help, changed-file no-game-data scan and git diff --check: passed.
  • Adjacent test_bink_names.py: 35/36 passed. The Windows path-representation assertion in test_unreadable_mount_directory_preserves_the_report fails 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

  • Based on current main at task start and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.
  • No translator rule changed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/566 **Author:** [@JiyouProt](https://github.com/JiyouProt) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `codex/bink-no-cache` --- ### 📝 Commits (1) - [`58d6fe2`](https://github.com/ubiquitarianism/leonida/commit/58d6fe27c11ebea71ac3c443353662445ba5eff9) bink_play: keep --no-cache independent of persistent storage (BINK-NO-CACHE) ### 📊 Changes **2 files changed** (+80 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bink_play.py` (+67 -0) 📝 `tools/bink_play.py` (+13 -9) </details> ### 📄 Description Claimed in the coordination issue as: [BINK-NO-CACHE](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125938432) ### What and why `--no-cache` still 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 1c93c8697078c3ccbd6f374caf5bb3ab0b6bc8e4. - `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. - Full semantic suite with SPIRV-Tools available: **465 files, 6,107 tests, 0 files failed** (515 s, 8 jobs). - compileall, both `make_game.py --help` and `bink_play.py --help`, changed-file no-game-data scan and `git diff --check`: passed. - Adjacent `test_bink_names.py`: 35/36 passed. The Windows path-representation assertion in `test_unreadable_mount_directory_preserves_the_report` fails 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 - [x] Based on current main at task start and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. - [x] No translator rule changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:27 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#611
No description provided.