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

Open
opened 2026-11-26 20:19:22 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/846
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/preserve-pipeline-crash-report


📝 Commits (1)

  • eb4bdfd Preserve pipeline crash report when a retry fails setup

📊 Changes

2 files changed (+27 additions, -2 deletions)

View changed files

📝 make_game.py (+2 -0)
📝 tests/test_make_game_pipelines.py (+25 -2)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/846 **Author:** [@TheGeogeo](https://github.com/TheGeogeo) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/preserve-pipeline-crash-report` --- ### 📝 Commits (1) - [`eb4bdfd`](https://github.com/ubiquitarianism/leonida/commit/eb4bdfdc4630edc770a009699e25c245b94513eb) Preserve pipeline crash report when a retry fails setup ### 📊 Changes **2 files changed** (+27 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+2 -0) 📝 `tests/test_make_game_pipelines.py` (+25 -2) </details> ### 📄 Description Claimed in the coordination issue as: [BUILD-PIPELINE-RETRY-CRASH-REPORT](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134375579) ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#884
No description provided.