make_game: preserve crash reports when a retry fails setup (BUILD-PIPELINE-RETRY-CRASH-REPORT) #846
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/846"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T14:29:46Z.
Claimed in the coordination issue as: BUILD-PIPELINE-RETRY-CRASH-REPORT
What and why
After
make_game.pyconfirms 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. Writepipeline_crashes.jsonbefore taking that error path so the module name and SHA-256 are preserved.This carries forward my earlier
ProjectLeonida/LeonidaPR #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
main6293c1c4(eb4bdfdc, same patch as29b8dbc7), on Windows 11, Python 3.12.4:tests/test_make_game_pipelines.py19 OK,tests/test_make_game_preflight.py98 run, OK (1 skipped);test_tool_stdout_encoding.py,test_docs_cli_flags.pyandtest_text_write_line_endings.pyOK;git diff --checkand the no-game-data check clean.d0da7dadbecausepipeline_crashes.jsonwas 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).b3a8c538) without conflicts in a temporary worktree and reranpython -I -B tests/test_make_game_pipelines.py: 20 passed.git diff --checkandpython -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
main.Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:31:27Z.
Review: APPROVED
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:
ecord_crashes(out, spirv, crashed) prevents loss of previously captured crash diagnostic records.
LGTM! Verified and approved.
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:39:16Z.
Review: APPROVED
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.
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T21:22:21Z.
Rebased on
main6293c1c4:29b8dbc7->eb4bdfdc, same patch (git range-diff). The previous base failedtests/test_tool_stdout_encoding.py, which #948 fixed onmain, and the earlier CI run never started (action_required).tests/test_make_game_pipelines.py19 OK,tests/test_make_game_preflight.py98 run, OK (1 skipped);test_tool_stdout_encoding.py,test_docs_cli_flags.pyandtest_text_write_line_endings.pyOK;git diff --checkand the no-game-data check clean.29b8dbc7.No code change in this rebase. CI on the new head is still queued.
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-27T19:42:35Z.
Merge test and review, taken from the pool PRs MoonEyes had not checked yet. Main
ec91d695cmerged without conflict; the PR's test files run with the pins oftests/requirements.txton Windows 11, Python 3.12 (venv). AI-assisted (Claude Code, Claude Opus 5.5).test_the_crash_report_survives_a_retry_setup_failurefails. The fix is shown.crashedis in scope after merging main (the local ofpipelines()).record_crashescall seems to remain in thecrashes_alonepath (make_game.py~2726/2728 on this branch) (READ IN CODE).Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T00:27:07Z.
Verified by OreoFR
48bae6cad+ PR headeb4bdfdc4(mergegit merge --no-ff, clean)python -I tests/test_make_game_pipelines.pytest_the_crash_report_survives_a_retry_setup_failureerrorstest_invalid_index_shape_preserves_the_previous_crash_report, which fail the same way on clean main (20 tests, 3 failures), so not from this PRAI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:25:39Z.
#846 | head
eb4bdfdc46(merged cleanly onto origin/main5825b02ff8) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesIndependent Verification (Windows 11)
make_game.py(if crashed: record_crashes(out, spirv, crashed)beforefail(...)whenvk_pipeline_checkexits1without writing--inflight-file) andtests/test_make_game_pipelines.py.python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_pipelines.pypassed (rc=0).origin/main5825b02ff8make_game.py): Runningtest_the_crash_report_survives_a_retry_setup_failureagainst unpatchedmake_game.pyfailed withFileNotFoundError: ... pipeline_crashes.json(18/19passed,errors=1) becausefail(...)aborted before recording already-isolated crashing SPIR-V modules.#846 + origin/main):PipelinesCrashRetryTest->15/15passed (OK,0.146s, includingtest_the_crash_report_survives_a_retry_setup_failure). (Note:PipelinesJobsTest.test_invalid_index_shape_preserves_the_previous_crash_reporthas an unrelated pre-existing diagnostic-string mismatch onorigin/main5825b02ff8tracked in#2593.)python -I tests/test_make_game_argparse.py->38/38passed (OK).Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T15:44:41Z.
Merged. Tested by @zmasi on head
eb4bdfdc4(CPU only (Windows 11); OreoFR RTX 4070 Laptop): Red on main: new retry-crash-report test errors (FileNotFoundError); green: PipelinesCrashRetryTest 15/15 OK. Correction: I had not shown that every failed or cancelled CI job on this head was also red on main. Not shown: check (cancelled), label (cancelled). My earlier sentence was too broad. Thanks @TheGeogeo!AI-assisted: yes