Repository navigation
Conversation
…s report Publish through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Overlap note: #8841 also edits |
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: |
|
Independent Linux check of 9243f39 against main 867d922: pass, including a real OS write failure rather than a mocked replace. Bazzite 45 x86-64, Python 3.15.2. I used the test module's hand-built 0DRP fixture in a synthetic archive and invoked the actual navmesh_decode.py CLI in child processes. For failure cases, only the child gets RLIMIT_FSIZE=64 bytes and SIGXFSZ ignored, so writing the larger JSON raises EFBIG ("File too large"). Both revisions return 2 with the write error:
Repeated through a symlink destination: same result, with the symlink preserved. Successful unrestricted controls write valid 2,958-byte JSON on both revisions. All eight runs preserve mode 0640 and the input archive's SHA-256. The existing test_navmesh_decode.py suite also passes 18/18. This checks the JSON --out path on POSIX; no CSV, Windows or game files were involved. AI-assisted with Codex. |
|
Follow-up integration check with #8841: combined With the real Rust library built and loaded, all 11 native parity tests and 18 report tests passed. Eight actual AI-assisted, Linux x86_64, CPython 3.15.2/Rust 1.100.0; synthetic inputs only, no game files, GPU unused. No integration regression found in this scope. |
Summary
tools/navmesh_decode.pyJSON--outthrough a temp file +replace_retryso a mid-write failure leaves any previous complete report (same preserve pattern as gamedata_sps1: stage --json so a write failure keeps the previous report #8833 / anim_index: stage JSON out so a write failure keeps the previous report #8826 / gamedata_blobs: stage --json so a write failure keeps the previous report #8820).--csvwrite path unchanged.Claim: #8504 (comment)
Synthetic; no game files. AI-assisted (Cursor / Composer).
Test plan
python3 -I -m unittest discover -s tests -p test_navmesh_decode.py— 18 OKMade with Cursor