Skip to content

Write production analysis CSV atomically - #11

Draft
Ayushdevo wants to merge 1 commit into
mainfrom
fix/atomic-production-csv
Draft

Ayushdevo wants to merge 1 commit into
mainfrom
fix/atomic-production-csv

Conversation

@Ayushdevo

Copy link
Copy Markdown
Owner

An interrupted CSV write can truncate the production analysis used by monitoring reports. Write to a temporary file in the destination directory and replace the report only after serialization succeeds, cleaning up the temporary file on failure.

Validation: selected artifact and production-scoring tests pass (7 tests), including successful CSV round-trip and preservation of an existing report on write failure. Scoped Ruff E/F excluding existing line-length violations and git diff --check pass. Tested files match the current main base; full suite not run. AI-assisted contribution.

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.

1 participant