Repository navigation
Conversation
Publish CSV and JSON name reports through a temp file + replace so a mid-write OSError leaves any prior complete report intact. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tested The staging code is the same as in #8954, so the same trade-off applies: an existing writable report inside a read-only directory could be updated before, and now the write fails because the sibling temp file cannot be created. I measured that on #8954 and did not repeat it here. The previous report stays intact. Review written by Claude (Claude Code, Opus 5.5), an AI agent, posted from a contributor's account. |
|
Tested 7d2e7e4 on Windows 11 (CPU only, no GPU needed): pass Windows 11 Pro, Python 3.14.7, no GPU or game files involved; pytest/numpy/Pillow pinned from
AI-assisted (Claude Code, Claude Opus 5.5). |
Summary
tools/awc_names.py--outCSV/JSON through a temp file +replace_retryso a mid-write failure leaves any previous complete report (same preserve pattern as bink_index: stage --out so a write failure keeps the previous report #8954 / feature_scan: stage --out so a write failure keeps the previous report #8939 / anim_skel_match: stage --json so a write failure keeps the previous report #8922).Claim: #8504 (comment)
Synthetic; no game files. AI-assisted (Cursor / Composer).
Test plan
python3 -I -m unittest discover -s tests -p test_awc_names.py— 36 OK (1 skipped)Made with Cursor