make_game: ignore partial vulkaninfo output after a failed probe (DRAFT-332) #937

Closed
fin-github wants to merge 1 commit from upstream-pr/937 into main
fin-github commented 2026-11-24 15:17:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T15:17:25Z.


Claimed in the coordination issue as: DRAFT-332 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)

Supersedes draft #332, carried over from the original repository. This is the same commit rebased onto current main, with the original author (AGInformatique81) kept and git cherry-pick -x recording where it came from. The change and its explanation are theirs; see #332 for the original description.

Tested

  • python -I tests/test_make_game_wave64.py: OK
  • python -I scripts/check_no_game_data.py on the changed files: clean.

Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.

AI-assisted (Claude Code): rebasing, conflict resolution and test runs.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474960002 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/937). Originally posted by [fin-github](https://github.com/fin-github) on 2026-11-24T15:17:25Z. --- Claimed in the coordination issue as: `DRAFT-332` (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620) Supersedes draft #332, carried over from the original repository. This is the same commit rebased onto current `main`, with the original author (AGInformatique81) kept and `git cherry-pick -x` recording where it came from. The change and its explanation are theirs; see #332 for the original description. ### Tested - `python -I tests/test_make_game_wave64.py`: OK - `python -I scripts/check_no_game_data.py` on the changed files: clean. Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online. AI-assisted (Claude Code): rebasing, conflict resolution and test runs.
KernelSmoker commented 2026-11-24 15:22:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T15:22:19Z.

Review: APPROVED


Reviewed exact head 5028c0c17277f62a9056204bcbd5097b029b6e00. wave64_settings(auto) now trusts vulkaninfo output only when the probe exits successfully; partial output from a failed probe falls back to conservative emulation. The new regression exercises that failure case and preserves the successful-probe paths. python3 -I tests/test_make_game_wave64.py -v: 39/39 passed; Python compile and diff checks passed. Synthetic probes only; no GPU/game data used.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6042090454 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/937#pullrequestreview-6042090454). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T15:22:19Z. **Review:** APPROVED --- Reviewed exact head `5028c0c17277f62a9056204bcbd5097b029b6e00`. `wave64_settings(auto)` now trusts `vulkaninfo` output only when the probe exits successfully; partial output from a failed probe falls back to conservative emulation. The new regression exercises that failure case and preserves the successful-probe paths. `python3 -I tests/test_make_game_wave64.py -v`: 39/39 passed; Python compile and diff checks passed. Synthetic probes only; no GPU/game data used.
wavehs commented 2026-11-26 18:49:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-26T18:49:26Z.


Same change as #736 (abnalstlll-byte, 2026-11-24 13:10, earlier), and both diffs now conflict with main f107ae044: wave64_settings() moved to make_game.py:1932 and max_subgroup_decider() returns size, decider, left_out, so the hunk no longer matches. Both PRs also claim to replace draft #332.

The defect is still real on current main: mocking vulkaninfo with returncode=1 and the partial 64-wide output real_format(("First adapter", 64, [])) makes wave64_settings("auto") return (False, True) instead of (True, True).

Recommendation: rebase #736 (earlier, identical content) with if r.returncode == 0: around size, decider, left_out = max_subgroup_decider(r.stdout), and close this one; there is no content difference to preserve. Details are in the #736 comment.

AI-assisted (review/verification only).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7200892116 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/937#issuecomment-7200892116). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-26T18:49:26Z. --- Same change as **#736** (abnalstlll-byte, 2026-11-24 13:10, earlier), and both diffs now conflict with `main` `f107ae044`: `wave64_settings()` moved to `make_game.py:1932` and `max_subgroup_decider()` returns `size, decider, left_out`, so the hunk no longer matches. Both PRs also claim to replace draft #332. The defect is still real on current main: mocking `vulkaninfo` with `returncode=1` and the partial 64-wide output `real_format(("First adapter", 64, []))` makes `wave64_settings("auto")` return `(False, True)` instead of `(True, True)`. Recommendation: rebase #736 (earlier, identical content) with `if r.returncode == 0:` around `size, decider, left_out = max_subgroup_decider(r.stdout)`, and close this one; there is no content difference to preserve. Details are in the #736 comment. AI-assisted (review/verification only).
wavehs commented 2026-11-26 18:54:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-26T18:54:55Z.


Correction: the canonical carrier for the vulkaninfo fix is now #2208, which consolidates the former #2217 (closed) with the crash-report and WINE changes. This PR and #736 are stale duplicates of that part; closing both once #2208 lands is the simplest path.

#2208 also needs the current-main adaptation (size, decider, left_out = max_subgroup_decider(r.stdout) behind if r.returncode == 0:); the live (False, True) reproduction from my previous comment is unchanged on 2d43417d4.

AI-assisted (review only).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7200990570 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/937#issuecomment-7200990570). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-26T18:54:55Z. --- Correction: the canonical carrier for the vulkaninfo fix is now **#2208**, which consolidates the former #2217 (closed) with the crash-report and WINE changes. This PR and #736 are stale duplicates of that part; closing both once #2208 lands is the simplest path. #2208 also needs the current-main adaptation (`size, decider, left_out = max_subgroup_decider(r.stdout)` behind `if r.returncode == 0:`); the live `(False, True)` reproduction from my previous comment is unchanged on `2d43417d4`. AI-assisted (review only).
MoonEyes commented 2026-11-27 23:20:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:20:28Z.


Hi @fin-github, thanks for this pull request. It currently conflicts with main (conflicting file(s): make_game.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230064758 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/937#issuecomment-7230064758). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:20:28Z. --- Hi @fin-github, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `make_game.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-30 12:07:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T12:07:03Z.


Closing as done on main ec1d85846: make_game.py asks for r.returncode == 0 before it reads vulkaninfo, and tests/test_make_game_wave64.py has the same case (returncode=1). #736 (same content) was closed before. Thank you for the work; please reopen it if something is missing.

AI-assisted (Claude Code). Closed at the owner's request (MoonEyes).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7277971479 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/937#issuecomment-7277971479). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T12:07:03Z. --- Closing as done on `main` `ec1d85846`: `make_game.py` asks for `r.returncode == 0` before it reads vulkaninfo, and `tests/test_make_game_wave64.py` has the same case (`returncode=1`). #736 (same content) was closed before. Thank you for the work; please reopen it if something is missing. AI-assisted (Claude Code). Closed at the owner's request (MoonEyes).

Pull request closed

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!937
No description provided.