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

Open
github-bot wants to merge 3 commits from github-bot/gh-2208 into main AGit
Owner

@⁠whoalin1 on GitHub · 2026-11-26 06:03 UTC · original
whoalin1:pipeline-crash-report-lock → main · +57 −12 · 4 files · 3 commits · open

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.

**@⁠whoalin1** on GitHub · 2026-11-26 06:03 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2208) `whoalin1:pipeline-crash-report-lock` → `main` · +57 −12 · 4 files · 3 commits · open ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:20 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 06:13 UTC · original · reviewed

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.

**@⁠lixonik** on GitHub · 2026-11-26 06:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2208#pullrequestreview-6069345492) · **reviewed** 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.
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-26 06:17 UTC · original

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)

**@⁠Tyrannys** on GitHub · 2026-11-26 06:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7184276435) 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)
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-26 06:21 UTC · original

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.

**@⁠whoalin1** on GitHub · 2026-11-26 06:21 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7184344675) 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.
Author
Owner

@⁠real-rusher on GitHub · 2026-11-26 10:12 UTC · original

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)

**@⁠real-rusher** on GitHub · 2026-11-26 10:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7189051002) 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)
github-bot changed title from make_game: keep checking pipelines when the crash report is locked to make_game: harden crash reporting, WINE resolution, and vulkaninfo probing 2026-11-26 13:26:17 +00:00
Author
Owner

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

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

**@⁠wavehs** on GitHub · 2026-11-26 18:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2208#issuecomment-7200989058) 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).
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/2208/head:github-bot/gh-2208'
git switch 'github-bot/gh-2208'

Merge

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