Skip to content

anim_index: stage JSON out so a write failure keeps the previous report - #8826

Open
Grimkeh wants to merge 1 commit into
ItsNotRexed:mainfrom
Grimkeh:fix/anim-index-preserve-json
Open

Grimkeh wants to merge 1 commit into
ItsNotRexed:mainfrom
Grimkeh:fix/anim-index-preserve-json

Conversation

@Grimkeh

@Grimkeh Grimkeh commented Nov 23, 2026

Copy link
Copy Markdown

Summary

Claim: #8504 (comment)

Synthetic; no game files. AI-assisted (Cursor / Composer).

Test plan

  • python3 -I -m unittest discover -s tests -p test_anim_index.py — 47 OK

Made with Cursor

Publish through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
@LocranKing

Copy link
Copy Markdown
Contributor

Tested ee26187d1 on Windows 11 Home (Build 26200, Python 3.12.10, RTX 3060 Ti / driver 621.01): pass

  • git diff --check HEAD~1..HEAD: clean
  • python -I -m compileall -q make_game.py tools tests: exit 0
  • python -I make_game.py --help: exit 0
  • python -I tests/test_anim_index.py -v: 47/47 OK (2.340s, including test_json_write_failure_preserves_previous_report)

AI-assisted. No game files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants