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

Open
github-bot wants to merge 1 commit from github-bot/gh-937 into main AGit
Owner

@⁠fin-github on GitHub · 2026-11-24 15:17 UTC · original
fin-github:draft/332 → main · +8 −3 · 2 files · 1 commits · open

Claimed in the coordination issue as: DRAFT-332 (#14)

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.

**@⁠fin-github** on GitHub · 2026-11-24 15:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/937) `fin-github:draft/332` → `main` · +8 −3 · 2 files · 1 commits · open Claimed in the coordination issue as: `DRAFT-332` (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:29:18 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 15:22 UTC · original · approved these changes

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.

**@⁠KernelSmoker** on GitHub · 2026-11-24 15:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/937#pullrequestreview-6042090454) · **approved these changes** 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.
Author
Owner

@⁠wavehs on GitHub · 2026-11-26 18:49 UTC · original

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** on GitHub · 2026-11-26 18:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/937#issuecomment-7200892116) 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).
Author
Owner

@⁠wavehs on GitHub · 2026-11-26 18:54 UTC · original

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

**@⁠wavehs** on GitHub · 2026-11-26 18:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/937#issuecomment-7200990570) 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).
This pull request has changes conflicting with the target branch.
  • make_game.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/937/head:github-bot/gh-937'
git switch 'github-bot/gh-937'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-937'
git switch 'github-bot/gh-937'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-937'
git switch 'github-bot/gh-937'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-937'
git switch 'main'
git merge --squash 'github-bot/gh-937'
git switch 'main'
git merge --ff-only 'github-bot/gh-937'
git switch 'main'
git merge 'github-bot/gh-937'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.