Skip to content

Preserve existing manifests on write failure - #40

Merged
Whning0513 merged 1 commit into
mainfrom
codex/manifest-atomic-output-20261031
Oct 31, 2026
Merged

Whning0513 merged 1 commit into
mainfrom
codex/manifest-atomic-output-20261031

Conversation

@Whning0513

Copy link
Copy Markdown
Owner

Write the completed manifest to a temporary file in the destination directory and atomically replace the output. A failed write or replacement no longer truncates the previous manifest; temporary files are cleaned up and existing output permissions are preserved.

Validation: python -m pytest artifactManifest/tests -q (15 passed, 2 skipped on Windows), including simulated replacement failure.

Copilot AI balanced review requested due to automatic review settings October 31, 2026 12:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@Whning0513
Whning0513 merged commit 18bb3a1 into main Oct 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants