make_game: preserve crash reports when a retry fails setup (BUILD-PIPELINE-RETRY-CRASH-REPORT) #846

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

@⁠TheGeogeo on GitHub · 2026-11-24 14:29 UTC · original
TheGeogeo:fix/preserve-pipeline-crash-report → main · +27 −2 · 2 files · 1 commits · open

Claimed in the coordination issue as: BUILD-PIPELINE-RETRY-CRASH-REPORT

What and why

After make_game.py confirms a module crash with an isolated checker probe, a retry can exit during setup before writing its work report. The stage reports the setup failure but loses the confirmed crash details. Write pipeline_crashes.json before taking that error path so the module name and SHA-256 are preserved.

This carries forward my earlier ProjectLeonida/Leonida PR #9992. PR #285 handles the separate case of a stale report that cannot be removed at startup. Both changes merge together cleanly.

Tested

After a rebase on main 6293c1c4 (eb4bdfdc, same patch as 29b8dbc7), on Windows 11, Python 3.12.4: tests/test_make_game_pipelines.py 19 OK, tests/test_make_game_preflight.py 98 run, OK (1 skipped); test_tool_stdout_encoding.py, test_docs_cli_flags.py and test_text_write_line_endings.py OK; git diff --check and the no-game-data check clean.

  • Windows, Python 3.12.4. The new synthetic regression failed against d0da7dad because pipeline_crashes.json was missing.
  • python -I -B tests/test_make_game_pipelines.py: 19 passed.
  • python -I -B tests/test_make_game_pipeline_batches.py: 15 passed.
  • python -I -B tests/test_make_game_pipeline_preflight.py: 19 passed and 1 skipped (POSIX execute permissions).
  • Merged #285 (b3a8c538) without conflicts in a temporary worktree and reran python -I -B tests/test_make_game_pipelines.py: 20 passed.
  • git diff --check and python -I -B scripts/check_no_game_data.py make_game.py tests/test_make_game_pipelines.py: passed.

GPUs tested: n/a. CPU-only synthetic tests.

AI-assisted: Yes, Codex.

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys, or decryption.
  • Translator contract entry: not applicable.
**@⁠TheGeogeo** on GitHub · 2026-11-24 14:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/846) `TheGeogeo:fix/preserve-pipeline-crash-report` → `main` · +27 −2 · 2 files · 1 commits · open Claimed in the coordination issue as: [BUILD-PIPELINE-RETRY-CRASH-REPORT](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why After `make_game.py` confirms a module crash with an isolated checker probe, a retry can exit during setup before writing its work report. The stage reports the setup failure but loses the confirmed crash details. Write `pipeline_crashes.json` before taking that error path so the module name and SHA-256 are preserved. This carries forward my earlier `ProjectLeonida/Leonida` PR #9992. PR #285 handles the separate case of a stale report that cannot be removed at startup. Both changes merge together cleanly. ### Tested After a rebase on `main` `6293c1c4` (`eb4bdfdc`, same patch as `29b8dbc7`), on Windows 11, Python 3.12.4: `tests/test_make_game_pipelines.py` 19 OK, `tests/test_make_game_preflight.py` 98 run, OK (1 skipped); `test_tool_stdout_encoding.py`, `test_docs_cli_flags.py` and `test_text_write_line_endings.py` OK; `git diff --check` and the no-game-data check clean. - Windows, Python 3.12.4. The new synthetic regression failed against `d0da7dad` because `pipeline_crashes.json` was missing. - `python -I -B tests/test_make_game_pipelines.py`: 19 passed. - `python -I -B tests/test_make_game_pipeline_batches.py`: 15 passed. - `python -I -B tests/test_make_game_pipeline_preflight.py`: 19 passed and 1 skipped (POSIX execute permissions). - Merged #285 (`b3a8c538`) without conflicts in a temporary worktree and reran `python -I -B tests/test_make_game_pipelines.py`: 20 passed. - `git diff --check` and `python -I -B scripts/check_no_game_data.py make_game.py tests/test_make_game_pipelines.py`: passed. GPUs tested: n/a. CPU-only synthetic tests. AI-assisted: Yes, Codex. ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys, or decryption. - Translator contract entry: not applicable.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:24:17 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:31 UTC · original · approved these changes

Clean-Room Peer Review for PR #846 (BUILD-PIPELINE-RETRY-CRASH-REPORT: record pipeline crashes before failing on a setup error)

High-value reliability fix for pipeline validation retry paths:

  • Crash State Preservation:
    • In make_game.py::check_range, if a previous batch iteration identified a crashing shader (crashed non-empty) and the subsequent retry terminates with an early setup failure (code == 1 and not os.path.isfile(inflight)), calling
      ecord_crashes(out, spirv, crashed) prevents loss of previously captured crash diagnostic records.
  • Unit Test Coverage:
    • ests/test_make_game_pipelines.py adds est_the_crash_report_survives_a_retry_setup_failure proving that pipeline_crashes.json is properly persisted on disk even when the checker encounters an early initialization abort.
  • Clean-room verification: Standard library only, LF line endings, zero external assets.

LGTM! Verified and approved.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/846#pullrequestreview-6041111370) · **approved these changes** ### Clean-Room Peer Review for PR #846 (BUILD-PIPELINE-RETRY-CRASH-REPORT: record pipeline crashes before failing on a setup error) High-value reliability fix for pipeline validation retry paths: - **Crash State Preservation**: - In make_game.py::check_range, if a previous batch iteration identified a crashing shader (crashed non-empty) and the subsequent retry terminates with an early setup failure (code == 1 and not os.path.isfile(inflight)), calling ecord_crashes(out, spirv, crashed) prevents loss of previously captured crash diagnostic records. - **Unit Test Coverage**: - ests/test_make_game_pipelines.py adds est_the_crash_report_survives_a_retry_setup_failure proving that pipeline_crashes.json is properly persisted on disk even when the checker encounters an early initialization abort. - **Clean-room verification**: Standard library only, LF line endings, zero external assets. LGTM! Verified and approved.
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:39 UTC · original · approved these changes

Audited and verified. In make_game.py:check_range, preserving the accumulated pipeline_crashes.json report via
ecord_crashes(out, spirv, crashed) when a subsequent retry pass fails setup before creating the inflight file ensures that driver crash diagnostics are not lost. Synthetic unit test in ests/test_make_game_pipelines.py passes cleanly. Approved.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/846#pullrequestreview-6041271650) · **approved these changes** Audited and verified. In make_game.py:check_range, preserving the accumulated pipeline_crashes.json report via ecord_crashes(out, spirv, crashed) when a subsequent retry pass fails setup before creating the inflight file ensures that driver crash diagnostics are not lost. Synthetic unit test in ests/test_make_game_pipelines.py passes cleanly. Approved.
Author
Owner

@⁠TheGeogeo on GitHub · 2026-11-24 21:22 UTC · original

Rebased on main 6293c1c4: 29b8dbc7 -> eb4bdfdc, same patch (git range-diff). The previous base failed tests/test_tool_stdout_encoding.py, which #948 fixed on main, and the earlier CI run never started (action_required).

  • Windows 11, Python 3.12.4, after the rebase: tests/test_make_game_pipelines.py 19 OK, tests/test_make_game_preflight.py 98 run, OK (1 skipped); test_tool_stdout_encoding.py, test_docs_cli_flags.py and test_text_write_line_endings.py OK; git diff --check and the no-game-data check clean.
  • The approvals here were made before the rebase, on 29b8dbc7.

No code change in this rebase. CI on the new head is still queued.

AI-assisted: yes (Claude Code).

**@⁠TheGeogeo** on GitHub · 2026-11-24 21:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/846#issuecomment-7144842131) Rebased on `main` `6293c1c4`: `29b8dbc7` -> `eb4bdfdc`, same patch (`git range-diff`). The previous base failed `tests/test_tool_stdout_encoding.py`, which #948 fixed on `main`, and the earlier CI run never started (action_required). - Windows 11, Python 3.12.4, after the rebase: `tests/test_make_game_pipelines.py` 19 OK, `tests/test_make_game_preflight.py` 98 run, OK (1 skipped); `test_tool_stdout_encoding.py`, `test_docs_cli_flags.py` and `test_text_write_line_endings.py` OK; `git diff --check` and the no-game-data check clean. - The approvals here were made before the rebase, on `29b8dbc7`. No code change in this rebase. CI on the new head is still queued. AI-assisted: yes (Claude Code).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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