bink_play: locate the player in CMake configuration folders #2251

Merged
kirigayakazima merged 1 commit from upstream-pr/2251 into main 2026-11-28 19:32:03 +00:00
kirigayakazima commented 2026-11-26 10:24:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T10:24:13Z.


Claimed in the coordination issue as: BINK-PLAY-CMAKE-CONFIG-DISCOVERY

What and why

Find the native player in RelWithDebInfo, Debug and MinSizeRel runtime build directories. Keep the existing lookup order for a flat build, Release and an explicitly supplied player. A synthetic directory fixture exercises each configuration and precedence.

Tested

Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.

  • python -I tests/test_bink_play.py
  • python -I tests/test_bink_play_cache_write.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5508237443 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2251). Originally posted by [kirigayakazima](https://github.com/kirigayakazima) on 2026-11-26T10:24:13Z. --- Claimed in the coordination issue as: [BINK-PLAY-CMAKE-CONFIG-DISCOVERY](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) ### What and why Find the native player in RelWithDebInfo, Debug and MinSizeRel runtime build directories. Keep the existing lookup order for a flat build, Release and an explicitly supplied player. A synthetic directory fixture exercises each configuration and precedence. ### Tested Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change. - `python -I tests/test_bink_play.py` - `python -I tests/test_bink_play_cache_write.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
DeadlyChirp commented 2026-11-26 10:42:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-26T10:42:28Z.


Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

  • tests/test_bink_play.py: 15 passed, 15 subtests passed (main: 14 passed, 10 subtests).

(AI-assisted test run; output checked by hand.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189725574 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2251#issuecomment-7189725574). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-11-26T10:42:28Z. --- Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. - `tests/test_bink_play.py`: 15 passed, 15 subtests passed (main: 14 passed, 10 subtests). (AI-assisted test run; output checked by hand.)
lixonik commented 2026-11-26 11:08:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T11:08:19Z.

Review: COMMENTED


Windows 11: 15/15 Bink launcher tests passed, including player discovery across all four CMake configurations, the top-level build output and an explicit --exe. The discovery tests use disposable file fixtures. Playback was outside this run. No findings.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6073065796 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2251#pullrequestreview-6073065796). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T11:08:19Z. **Review:** COMMENTED --- Windows 11: 15/15 Bink launcher tests passed, including player discovery across all four CMake configurations, the top-level build output and an explicit `--exe`. The discovery tests use disposable file fixtures. Playback was outside this run. No findings. AI-assisted.
tiguan26 commented 2026-11-27 04:35:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T04:35:04Z.

Review: APPROVED


Approving b05f1dd6f.

The player is found in every CMake configuration folder (none, Release, RelWithDebInfo, Debug, MinSizeRel), not just the first two.

Merged onto main d1dff7949 in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. tests/test_bink_play.py: 15 passed (main: 14). AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6083531118 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2251#pullrequestreview-6083531118). Originally posted by [tiguan26](https://github.com/tiguan26) on 2026-11-27T04:35:04Z. **Review:** APPROVED --- Approving b05f1dd6f. The player is found in every CMake configuration folder (none, Release, RelWithDebInfo, Debug, MinSizeRel), not just the first two. Merged onto `main` `d1dff7949` in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. `tests/test_bink_play.py`: 15 passed (main: 14). AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-28 19:32:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:32:00Z.


Red/green: tests/test_bink_play.py errors on main (player not found under MinSizeRel, Debug and RelWithDebInfo) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7244615258 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2251#issuecomment-7244615258). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T19:32:00Z. --- Red/green: tests/test_bink_play.py errors on main (player not found under MinSizeRel, Debug and RelWithDebInfo) and passes with the PR merged, on GitHub Actions Linux and natively on Windows. Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
OreoFR commented 2026-11-28 22:00:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:00:33Z.


Verified by OreoFR

  • Base: main 4a54aedcb + PR head b05f1dd6f
  • Test: python -I tests/test_bink_play.py
  • Red on main: 3 errors (MinSizeRel, Debug, RelWithDebInfo not found)
  • Green with the PR: 17 OK
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246430442 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2251#issuecomment-7246430442). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T22:00:33Z. --- **Verified by OreoFR** - Base: main `4a54aedcb` + PR head `b05f1dd6f` - Test: `python -I tests/test_bink_play.py` - Red on main: 3 errors (MinSizeRel, Debug, RelWithDebInfo not found) - Green with the PR: 17 OK - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2251
No description provided.