Repository navigation
Conversation
…port Publish through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Nov 23, 2026
Author
|
Overlap note: #8816 also edits |
|
Tested 8dcc329 on Linux, Python 3.14.4: pass python3 -I tests/test_gamedata_blobs.py: 8 of 9 pass, test_missing_file_names_what_is_wrong fails the same way on main 867d922 (2 != 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/gamedata_blobs.py--jsonthrough a temp file +replace_retryso a mid-write failure leaves any previous complete report (same preserve pattern as gamedata_xml: stage --json so a write failure keeps the previous report #8804 / gamedata_maps: stage --json so a write failure keeps the previous report #8798 / gamedata_index: stage --json so a write failure keeps the previous report #8789).Claim: #8504 (comment)
Synthetic; no game files. AI-assisted (Cursor / Composer).
Test plan
test_json_write_failure_preserves_previous_reportOKtest_missing_file_names_what_is_wrongis already red onmain(expects exit 1; tool returns 2) — unchanged by this PRMade with Cursor