make_game: harden crash reporting, WINE resolution, and vulkaninfo probing #2208

Merged
whoalin1 merged 2 commits from upstream-pr/2208 into main 2026-11-29 08:18:55 +00:00
whoalin1 commented 2026-11-26 06:03:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T06:03:17Z.


Summary

  • remove the old pipeline_crashes.json best-effort, warning that it may be stale instead of stopping the pipeline stage before any checking
  • return whether record_crashes actually wrote the report and only cite it in the final diagnostic when it did
  • add regressions for a locked old report and an unwritable new report

Item: MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK

Carries forward the still-uncarried old-pr/10015 fix, originally written by AGInformatique81, reapplied on current main.

Tests

Under the local machine coordination lock:

  • python -I tests/test_make_game_pipelines.py PipelinesCrashRetryTest — 14 tests, OK
  • python -m py_compile make_game.py — pass
  • git diff --check — pass

No game files or GPU.

AI-assisted with Devin.

Consolidated make_game hardening

This branch now also includes the two small make_game fixes formerly opened as #2209 and #2217:

  • resolve a relative WINE before entering the game folder, so Proton-style relative launcher paths still name the intended file;
  • ignore vulkaninfo output when the probe itself exits nonzero, so partial output cannot disable wave64 on a working device.

The consolidated branch is the original reviewed commit plus cherry-picks c3790cb77 and 38cd8a5ed; no additional code was written during consolidation. real-rusher had already test-merged the three pull requests together cleanly and run the affected make_game tests.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5504908301 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2208). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T06:03:17Z. --- ## Summary - remove the old `pipeline_crashes.json` best-effort, warning that it may be stale instead of stopping the pipeline stage before any checking - return whether `record_crashes` actually wrote the report and only cite it in the final diagnostic when it did - add regressions for a locked old report and an unwritable new report Item: MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK Carries forward the still-uncarried old-pr/10015 fix, originally written by AGInformatique81, reapplied on current main. ## Tests Under the local machine coordination lock: - `python -I tests/test_make_game_pipelines.py PipelinesCrashRetryTest` — 14 tests, OK - `python -m py_compile make_game.py` — pass - `git diff --check` — pass No game files or GPU. AI-assisted with Devin. ## Consolidated make_game hardening This branch now also includes the two small make_game fixes formerly opened as #2209 and #2217: - resolve a relative `WINE` before entering the game folder, so Proton-style relative launcher paths still name the intended file; - ignore `vulkaninfo` output when the probe itself exits nonzero, so partial output cannot disable wave64 on a working device. The consolidated branch is the original reviewed commit plus cherry-picks `c3790cb77` and `38cd8a5ed`; no additional code was written during consolidation. real-rusher had already test-merged the three pull requests together cleanly and run the affected make_game tests.
lixonik commented 2026-11-26 06:13:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T06:13:06Z.

Review: COMMENTED


Independent native Windows check: all 19 pipeline tests passed. I also held a synthetic pipeline_crashes.json open with CreateFileW and only FILE_SHARE_READ, so Windows denied both deletion and writing. The base stopped with a sharing violation before invoking the checker. The PR ran the checker in both the clean and scripted crash cases. In the crash case the final error still named the failed module and did not point to the unchanged stale report. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6069345492 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2208#pullrequestreview-6069345492). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T06:13:06Z. **Review:** COMMENTED --- Independent native Windows check: all 19 pipeline tests passed. I also held a synthetic `pipeline_crashes.json` open with `CreateFileW` and only `FILE_SHARE_READ`, so Windows denied both deletion and writing. The base stopped with a sharing violation before invoking the checker. The PR ran the checker in both the clean and scripted crash cases. In the crash case the final error still named the failed module and did not point to the unchanged stale report. AI-assisted.
Tyrannys commented 2026-11-26 06:17:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tyrannys on 2026-11-26T06:17:03Z.


Overlap note from #2113 (pipelines stage shard caches and done-list), which rewrites the end of pipelines().

Test-merging this PR into #2113's head (16854a229) gives one small conflict in make_game.py, in the block after the batch loop: #2113 replaces drop(inflight) with drop(inflight, batch_names, batch_done) plus the shard merge and seed_extras(), and this PR replaces if crashed: record_crashes(...) with report_written = .... The two changes don't conflict in meaning: keeping #2113's block with your report_written line in place of the if crashed: call resolves it, and tests/test_make_game_pipelines.py, tests/test_make_game_pipeline_batches.py and tests/test_text_write_line_endings.py all pass on that resolution. The start-of-stage drop(report) change and record_crashes returning a bool merge cleanly.

Suggested order: this PR can land first (it is small and self-contained); #2113 will then merge main and take the resolution above. If #2113 lands first instead, the same one-line resolution applies here.

AI-assisted (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7184276435 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7184276435). Originally posted by [Tyrannys](https://github.com/Tyrannys) on 2026-11-26T06:17:03Z. --- Overlap note from #2113 (pipelines stage shard caches and done-list), which rewrites the end of `pipelines()`. Test-merging this PR into #2113's head (16854a229) gives one small conflict in `make_game.py`, in the block after the batch loop: #2113 replaces `drop(inflight)` with `drop(inflight, batch_names, batch_done)` plus the shard merge and `seed_extras()`, and this PR replaces `if crashed: record_crashes(...)` with `report_written = ...`. The two changes don't conflict in meaning: keeping #2113's block with your `report_written` line in place of the `if crashed:` call resolves it, and `tests/test_make_game_pipelines.py`, `tests/test_make_game_pipeline_batches.py` and `tests/test_text_write_line_endings.py` all pass on that resolution. The start-of-stage `drop(report)` change and `record_crashes` returning a bool merge cleanly. Suggested order: this PR can land first (it is small and self-contained); #2113 will then merge `main` and take the resolution above. If #2113 lands first instead, the same one-line resolution applies here. AI-assisted (Claude Code)
whoalin1 commented 2026-11-26 06:21:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T06:21:04Z.


Thanks, noted. I agree this one can land first because it is small and self-contained; if #2113 lands first, I will rebase and apply exactly the one-line resolution you describe (report_written = bool(crashed) and record_crashes(...) inside #2113's rewritten end block). Appreciate the independent native Windows verification. AI-assisted with Devin.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7184344675 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7184344675). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T06:21:04Z. --- Thanks, noted. I agree this one can land first because it is small and self-contained; if #2113 lands first, I will rebase and apply exactly the one-line resolution you describe (`report_written = bool(crashed) and record_crashes(...)` inside #2113's rewritten end block). Appreciate the independent native Windows verification. AI-assisted with Devin.
real-rusher commented 2026-11-26 10:12:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by real-rusher on 2026-11-26T10:12:25Z.


Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly, also together with #2209 and #2217 (all three touch make_game.py). With this PR, python -I tests/test_make_game_pipelines.py: 19 tests OK. The PR's test file against main's make_game.py: 1 failure and 1 error, so the new tests fail on main and pass with the fix. compileall clean.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189051002 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7189051002). Originally posted by [real-rusher](https://github.com/real-rusher) on 2026-11-26T10:12:25Z. --- Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly, also together with #2209 and #2217 (all three touch make_game.py). With this PR, python -I tests/test_make_game_pipelines.py: 19 tests OK. The PR's test file against main's make_game.py: 1 failure and 1 error, so the new tests fail on main and pass with the fix. compileall clean. AI-assisted: yes (Claude Code)
wavehs commented 2026-11-26 18:54:50 +00:00 (Migrated from github.com)

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


The consolidated vulkaninfo hunk needs one adjustment on current main 2d43417d4 (the rest of the PR's make_game.py changes are in different places, and the whole diff no longer applies at make_game.py:1931):

wave64_settings() now reads the three-value max_subgroup_decider:

size, decider, left_out = max_subgroup_decider(r.stdout)

so the carried fix (formerly #2217) should be rebased as:

-            size, decider, left_out = max_subgroup_decider(r.stdout)
+            if r.returncode == 0:
+                size, decider, left_out = max_subgroup_decider(r.stdout)

The test hunk still applies as written (Wave64EmulateTest.decide has no returncode parameter, and real_format is there).

The defect is still live on 2d43417d4: CompletedProcess(returncode=1, stdout=real_format(("First adapter", 64, []))) with runtime_gpu_info() == {} makes wave64_settings("auto") return (False, True) instead of (True, True), i.e. a failed vulkaninfo still turns native wave64 on.

This branch is now the canonical carrier for that fix (#2217 is closed, #736/#937 are stale duplicates); I left notes on those two pointing here.

AI-assisted (review/verification only).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7200989058 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7200989058). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-26T18:54:50Z. --- The consolidated vulkaninfo hunk needs one adjustment on current `main` `2d43417d4` (the rest of the PR's `make_game.py` changes are in different places, and the whole diff no longer applies at `make_game.py:1931`): `wave64_settings()` now reads the three-value `max_subgroup_decider`: ```python size, decider, left_out = max_subgroup_decider(r.stdout) ``` so the carried fix (formerly #2217) should be rebased as: ```python - size, decider, left_out = max_subgroup_decider(r.stdout) + if r.returncode == 0: + size, decider, left_out = max_subgroup_decider(r.stdout) ``` The test hunk still applies as written (`Wave64EmulateTest.decide` has no `returncode` parameter, and `real_format` is there). The defect is still live on 2d43417d4: `CompletedProcess(returncode=1, stdout=real_format(("First adapter", 64, [])))` with `runtime_gpu_info() == {}` makes `wave64_settings("auto")` return `(False, True)` instead of `(True, True)`, i.e. a failed `vulkaninfo` still turns native wave64 on. This branch is now the canonical carrier for that fix (#2217 is closed, #736/#937 are stale duplicates); I left notes on those two pointing here. AI-assisted (review/verification only).
MoonEyes commented 2026-11-28 03:01:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T03:01:19Z.


Hi @whoalin1, 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:7232741892 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2208#issuecomment-7232741892). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T03:01:19Z. --- Hi @whoalin1, 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).
zmasi commented 2026-11-28 23:37:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:37:02Z.


#2208 | head 4d73e67fcc (merged cleanly with main ba8b77b390) | python -I tests/test_make_game_wave64.py -v + python -I tests/test_make_game_platform.py -v + live Windows 11 RTX 3090 vulkaninfo.exe make_game.wave64_settings("auto") probe | red on main: FAILED (failures=1) (test_auto_ignores_partial_stdout_when_vulkaninfo_fails returned (False, True) instead of (True, True) because wave64_settings() parsed partial stdout even when vulkaninfo exited non-zero) | green on PR+main: 46 ran, OK (test_make_game_wave64.py), 48 ran, OK (skipped=4) (test_make_game_platform.py), and live Windows 11 vulkaninfo.exe probe on NVIDIA GeForce RTX 3090 returned (True, True) (smallest maximum subgroup size is 32) | Windows 11 (10.0.26200.9974), Python 3.12.10, NVIDIA GeForce RTX 3090 | AI-assisted: yes

Audited rebased head 4d73e67fcc (make_game.py, tests/test_make_game_platform.py, and tests/test_make_game_wave64.py) merged cleanly onto main (ba8b77b390) on Windows 11. Confirmed wave64_settings() ignores partial vulkaninfo stdout on non-zero exit status while preserving normal vulkaninfo.exe detection on a physical RTX 3090, relative WINE path normalization in the generated gta6rt.sh wrapper resolves against caller $PWD before cd "${game%.}", and a combined merge with #2596 onto main (ba8b77b390) resolves cleanly and passes both test_make_game_preflight.py and test_make_game_wave64.py (plus scripts/check_no_game_data.py).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247549976 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2208#issuecomment-7247549976). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:37:02Z. --- #2208 | head 4d73e67fcc9b93e80549caacf2b13cecf64f7424 (merged cleanly with main ba8b77b390) | `python -I tests/test_make_game_wave64.py -v` + `python -I tests/test_make_game_platform.py -v` + live Windows 11 RTX 3090 `vulkaninfo.exe` `make_game.wave64_settings("auto")` probe | red on main: `FAILED (failures=1)` (`test_auto_ignores_partial_stdout_when_vulkaninfo_fails` returned `(False, True)` instead of `(True, True)` because `wave64_settings()` parsed partial `stdout` even when `vulkaninfo` exited non-zero) | green on PR+main: `46 ran, OK` (`test_make_game_wave64.py`), `48 ran, OK (skipped=4)` (`test_make_game_platform.py`), and live Windows 11 `vulkaninfo.exe` probe on NVIDIA GeForce RTX 3090 returned `(True, True)` (`smallest maximum subgroup size is 32`) | Windows 11 (`10.0.26200.9974`), Python 3.12.10, NVIDIA GeForce RTX 3090 | AI-assisted: yes Audited rebased head `4d73e67fcc` (`make_game.py`, `tests/test_make_game_platform.py`, and `tests/test_make_game_wave64.py`) merged cleanly onto `main` (`ba8b77b390`) on Windows 11. Confirmed `wave64_settings()` ignores partial `vulkaninfo` stdout on non-zero exit status while preserving normal `vulkaninfo.exe` detection on a physical RTX 3090, relative `WINE` path normalization in the generated `gta6rt.sh` wrapper resolves against caller `$PWD` before `cd "${game%.}"`, and a combined merge with `#2596` onto `main` (`ba8b77b390`) resolves cleanly and passes both `test_make_game_preflight.py` and `test_make_game_wave64.py` (plus `scripts/check_no_game_data.py`).
enlight3d commented 2026-11-29 04:52:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T04:52:49Z.


RUN of #2208 (python -I, no build, no game, GPU not used)

Tested: PR head 2b3a27c49 (the head was updated at 04:21 UTC on 2026-11-29; an earlier head 4d73e67fc is not what was run), main ef3299584 (PR merged into it locally with git merge --no-ff; clean merge, merge base b6bf3aa0b).
What the PR contains now: make_game.py wave64_settings() reads vulkaninfo's stdout only when it exited 0, plus a test for it (test_auto_ignores_partial_stdout_when_vulkaninfo_fails) and a one-space indentation fix in tests/test_make_game_platform.py. The crash-report and relative WINE parts named in the title and description are already on main (report_written and the WINE change are in main's make_game.py), so the PR no longer carries them.

Commands (from the worktree root, one process per file):

  • python -I tests/test_make_game_wave64.py
  • python -I tests/test_make_game_platform.py
  • the 58 test files that mention make_game (tests/test_make_game_*.py plus the docs, text-encoding, TUI, stage and launcher tests that import it), each as python -I tests/

Red: with make_game.py put back to main's version (tests kept), test_make_game_wave64.py fails 1 test, test_auto_ignores_partial_stdout_when_vulkaninfo_fails (46 run, FAILED failures=1): a failed vulkaninfo probe with partial stdout still decides wave64. Kind of red: the new behaviour test fails without the fix. test_make_game_platform.py stays green in that run (the change there is whitespace only, so it has no red).
Green at head: test_make_game_wave64.py 46 tests OK; test_make_game_platform.py 49 tests OK (skipped=4).
Green merged into main ef3299584: same, 46 OK and 49 OK (skipped=4).
Other files: of the 58, 53 pass at head and merged. 5 fail at head, merged and on plain main alike, with the same failing tests each time (pre-existing, not caused by this PR): test_make_game_pipelines.py (test_invalid_index_shape_preserves_the_previous_crash_report, 3 failures), test_make_game_preflight.py (test_ensure_submodule_names_the_clone_command_the_readme_gives), test_progress_dashboard.py (test_default_repo_is_the_one_the_readme_clones), test_docs_cli_flags.py (test_fenced_commands_use_the_flags_of_their_tool), test_text_encoding.py (test_every_text_file_call_pins_its_encoding). Nothing fails merged that passes on main.
Not covered: a real vulkaninfo run (not done here).

Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12; GPU not used.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7250915920 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2208#issuecomment-7250915920). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T04:52:49Z. --- RUN of #2208 (python -I, no build, no game, GPU not used) Tested: PR head 2b3a27c49 (the head was updated at 04:21 UTC on 2026-11-29; an earlier head 4d73e67fc is not what was run), main ef3299584 (PR merged into it locally with git merge --no-ff; clean merge, merge base b6bf3aa0b). What the PR contains now: make_game.py wave64_settings() reads vulkaninfo's stdout only when it exited 0, plus a test for it (test_auto_ignores_partial_stdout_when_vulkaninfo_fails) and a one-space indentation fix in tests/test_make_game_platform.py. The crash-report and relative WINE parts named in the title and description are already on main (report_written and the WINE change are in main's make_game.py), so the PR no longer carries them. Commands (from the worktree root, one process per file): - python -I tests/test_make_game_wave64.py - python -I tests/test_make_game_platform.py - the 58 test files that mention make_game (tests/test_make_game_*.py plus the docs, text-encoding, TUI, stage and launcher tests that import it), each as python -I tests/<file> Red: with make_game.py put back to main's version (tests kept), test_make_game_wave64.py fails 1 test, test_auto_ignores_partial_stdout_when_vulkaninfo_fails (46 run, FAILED failures=1): a failed vulkaninfo probe with partial stdout still decides wave64. Kind of red: the new behaviour test fails without the fix. test_make_game_platform.py stays green in that run (the change there is whitespace only, so it has no red). Green at head: test_make_game_wave64.py 46 tests OK; test_make_game_platform.py 49 tests OK (skipped=4). Green merged into main ef3299584: same, 46 OK and 49 OK (skipped=4). Other files: of the 58, 53 pass at head and merged. 5 fail at head, merged and on plain main alike, with the same failing tests each time (pre-existing, not caused by this PR): test_make_game_pipelines.py (test_invalid_index_shape_preserves_the_previous_crash_report, 3 failures), test_make_game_preflight.py (test_ensure_submodule_names_the_clone_command_the_readme_gives), test_progress_dashboard.py (test_default_repo_is_the_one_the_readme_clones), test_docs_cli_flags.py (test_fenced_commands_use_the_flags_of_their_tool), test_text_encoding.py (test_every_text_file_call_pins_its_encoding). Nothing fails merged that passes on main. Not covered: a real vulkaninfo run (not done here). Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12; GPU not used.
MoonEyes commented 2026-11-29 08:18:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T08:18:57Z.


Merged after enlight3d's red/green check (check) (RTX 3090, driver 621.40, Windows 11) and a local re-check here. Merged after local re-verification: this PR merged onto main 931a8f751 without conflict, and its test file(s) (tests/test_make_game_platform.py, tests/test_make_game_wave64.py) pass there. Earlier today the same tests failed on main without the PR (red/green) and a bundle with other open PRs showed no new failures. check_no_game_data.py is clean. Windows 11, Python 3.14; no GPU needed for these tests.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7253024855 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2208#issuecomment-7253024855). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T08:18:57Z. --- Merged after **enlight3d**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/2208#issuecomment-7250915920)) (RTX 3090, driver 621.40, Windows 11) and a local re-check here. Merged after local re-verification: this PR merged onto `main` 931a8f751 without conflict, and its test file(s) (`tests/test_make_game_platform.py`, `tests/test_make_game_wave64.py`) pass there. Earlier today the same tests failed on `main` without the PR (red/green) and a bundle with other open PRs showed no new failures. `check_no_game_data.py` is clean. Windows 11, Python 3.14; no GPU needed for these tests. _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
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!2208
No description provided.