make_game: keep checking pipelines when the previous crash report is locked (DRAFT-285) #1319

Merged
fin-github merged 1 commit from upstream-pr/1319 into main 2026-11-28 07:46:23 +00:00
fin-github commented 2026-11-24 21:50:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T21:50:28Z.


Claimed in the coordination issue as: DRAFT-285 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145329388).

What and why

Supersedes draft #285 (old PR 10015 by AGInformatique81), preserving the original commit author. If deleting an old optional pipeline_crashes.json fails at startup, warn that the report may be stale and run the pipeline checker. The checker still clears the in-flight and skip files. The final diagnostic points to the crash report only after a successful write.

This addresses startup cleanup and diagnostic accuracy. #846 addresses a separate failure during a checker retry.

Tested

  • On upstream main at 4a50cafc7, the locked-report regression raised PermissionError before the checker ran, and the report-write regression found that the diagnostic referenced the unwritten report.
  • Windows 11, CPython 3.14.4: python -I tests/test_make_game_pipelines.py, python -I tests/test_make_game_pipeline_batches.py, and python -I tests/test_make_game_pipeline_preflight.py (53 passed, one POSIX-only skip).
  • python -I -m compileall -q make_game.py tools tests, python -I make_game.py --help, python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_pipelines.py, and git diff --check upstream/main...HEAD passed.

GPUs tested: N/A (CPU-only synthetic fixtures).

AI-assisted: yes (Codex).

Checklist

  • Based on upstream main; the original commit applied cleanly.
  • One topic.
  • No game data, keys, or decryption.

Translator contract: N/A.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5480921632 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1319). Originally posted by [fin-github](https://github.com/fin-github) on 2026-11-24T21:50:28Z. --- Claimed in the coordination issue as: DRAFT-285 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145329388). ### What and why Supersedes draft #285 (old PR 10015 by AGInformatique81), preserving the original commit author. If deleting an old optional `pipeline_crashes.json` fails at startup, warn that the report may be stale and run the pipeline checker. The checker still clears the in-flight and skip files. The final diagnostic points to the crash report only after a successful write. This addresses startup cleanup and diagnostic accuracy. #846 addresses a separate failure during a checker retry. ### Tested - On upstream `main` at `4a50cafc7`, the locked-report regression raised `PermissionError` before the checker ran, and the report-write regression found that the diagnostic referenced the unwritten report. - Windows 11, CPython 3.14.4: `python -I tests/test_make_game_pipelines.py`, `python -I tests/test_make_game_pipeline_batches.py`, and `python -I tests/test_make_game_pipeline_preflight.py` (53 passed, one POSIX-only skip). - `python -I -m compileall -q make_game.py tools tests`, `python -I make_game.py --help`, `python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_pipelines.py`, and `git diff --check upstream/main...HEAD` passed. GPUs tested: N/A (CPU-only synthetic fixtures). AI-assisted: yes (Codex). ### Checklist - [x] Based on upstream `main`; the original commit applied cleanly. - [x] One topic. - [x] No game data, keys, or decryption. Translator contract: N/A.
whoalin1 commented 2026-11-24 23:41:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:41:43Z.


Verified on Windows host (AI-assisted review).

  • python -I tests/test_make_game_pipelines.py: 19 tests OK, including the new test_a_locked_old_crash_report_does_not_prevent_a_clean_check which simulates PermissionError on os.remove of pipeline_crashes.json.
  • compileall clean on make_game.py and the test file.
  • Logic check: dropping only inflight+skip up front and wrapping report removal in try/OSError is correct; record_crashes now returns bool so the fail() diagnostic only mentions pipeline_crashes.json when the write actually succeeded. The locked-file path leaves the stale report in place and logs a warning, which matches the stated intent.

DUPLICATE NOTE: this PR's tree is byte-identical to #1337 (same diff, same resulting tree — verified with git diff between the two head commits: 0 lines). Only one should be merged; the other closed as duplicate.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147691077 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1319#issuecomment-7147691077). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-24T23:41:43Z. --- Verified on Windows host (AI-assisted review). - `python -I tests/test_make_game_pipelines.py`: 19 tests OK, including the new `test_a_locked_old_crash_report_does_not_prevent_a_clean_check` which simulates PermissionError on os.remove of pipeline_crashes.json. - `compileall` clean on make_game.py and the test file. - Logic check: dropping only inflight+skip up front and wrapping report removal in try/OSError is correct; record_crashes now returns bool so the fail() diagnostic only mentions pipeline_crashes.json when the write actually succeeded. The locked-file path leaves the stale report in place and logs a warning, which matches the stated intent. DUPLICATE NOTE: this PR's tree is byte-identical to #1337 (same diff, same resulting tree — verified with git diff between the two head commits: 0 lines). Only one should be merged; the other closed as duplicate.
MoonEyes commented 2026-11-28 07:46:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T07:46:18Z.


Red/green: 2 failures on main, 19 passed with this PR.
Full suite with this PR merged together with seven others in one batch matches main (pytest, translator suite, ctest without the game) on Windows 11 with an RTX 4060, except xmem_write_watch, a test that depends on free host memory and has also failed on plain main.
AI-assisted (Claude Code, Claude Opus 5.5). Thank you!

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236151772 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1319#issuecomment-7236151772). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T07:46:18Z. --- Red/green: 2 failures on main, 19 passed with this PR. Full suite with this PR merged together with seven others in one batch matches main (pytest, translator suite, ctest without the game) on Windows 11 with an RTX 4060, except xmem_write_watch, a test that depends on free host memory and has also failed on plain main. AI-assisted (Claude Code, Claude Opus 5.5). Thank you!
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!1319
No description provided.