Repository navigation
tools/first_light: write manifest.json atomically (FIRST-LIGHT-ATOMIC-MANIFEST) - #2299
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.
|
#2299 | head On main the new atomic writer was missing. Three checks requiring a First Light fixture directory and one optional native harness check skipped on both sides. Pinned main |
|
Merged, thank you @Ch1mpleo! What it does: tools/first_light: write manifest.json atomically (FIRST-LIGHT-ATOMIC-MANIFEST) How it was checked: sodove tested this PR at head CI: the red jobs on this PR fail the same way on main, or on the older main it was built on (the Merged one by one with 20 other PRs of the same reviewed batch, pinned to the tested head. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers. |
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).