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

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

@⁠fin-github on GitHub · 2026-11-24 21:50 UTC · original
fin-github:codex/draft-285 → main · +39 −8 · 2 files · 1 commits · open

Claimed in the coordination issue as: DRAFT-285 (#14).

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.

**@⁠fin-github** on GitHub · 2026-11-24 21:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1319) `fin-github:codex/draft-285` → `main` · +39 −8 · 2 files · 1 commits · open Claimed in the coordination issue as: DRAFT-285 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:47:18 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-24 23:41 UTC · original

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.

**@⁠whoalin1** on GitHub · 2026-11-24 23:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1319#issuecomment-7147691077) 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.
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/1319/head:github-bot/gh-1319'
git switch 'github-bot/gh-1319'

Merge

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