Repository navigation
Conversation
|
Two findings from local verification of
Checks run on macOS 27.3 arm64 (Python 3.14.3): claim confirmed in #1608, patch applies cleanly, no overlap with #2040. On plain Synthetic fixtures only; no game data. GPUs tested: N/A (CPU-only). AI-assisted review. |
tiguan26
left a comment
There was a problem hiding this comment.
Approving 04a204b.
Both writes of manifest.json go through a temp file in the same folder, fsync and replace_retry, with the repo's published_mode; on any failure the temp file is removed. An interrupted run can no longer leave a truncated manifest.
Merged onto main d1dff7949 together with #2403, #2410, #2297, #2330 and #2286 (no conflicts), on Linux with Python 3.13. tests/test_first_light.py: 45 passed, 4 skipped (main: 44). AI-assisted (Claude Code, Claude Opus 5.5).
MSedgeMC
left a comment
There was a problem hiding this comment.
Verified on the PR branch: python3 -m unittest tests.test_first_light -v -> 49 tests OK (4 skips), including the new atomic manifest write cases. Not approving yet: the branch is 450 commits behind current main, so a rebase is needed before the final diff can be reviewed.
Claimed in the coordination issue as: FIRST-LIGHT-ATOMIC-MANIFEST (#1608 (comment))
What and why
Writes \manifest.json\ atomically in \ ools/first_light.py\ via _write_json_atomic\ (\os.path.realpath\ + \ empfile.mkstemp\ + \sync\ + \published_mode\ +
eplace_retry\ with cleanup on failure), preserving symlinks and permissions. Adds a regression test in \ ests/test_first_light.py.
Tested
GPUs tested: n/a (CPU-only Python tool & unit tests)
AI-assisted: yes
Checklist
eeds rebase).