Skip to content

Make Allure result files durable before publishing - #77

Open
vdvukhzhilov wants to merge 1 commit into
mainfrom
atomic-file-writes
Open

Make Allure result files durable before publishing#77
vdvukhzhilov wants to merge 1 commit into
mainfrom
atomic-file-writes

Conversation

@vdvukhzhilov

Copy link
Copy Markdown
  • Stage Allure filesystem artifacts (test/container/globals JSON and attachments) as .allure-write-*.tmp in the results directory, sync with fflush / fsync (when available), then rename to the final name so live readers do not see partially written finals.
  • On overwrite platforms where rename-over-existing fails (typical Windows), move the old final aside, publish the staged file, then remove the aside backup; if publish fails after the aside step, restore the old final when possible and keep the staged temp with the new payload.
  • Incomplete temps (failure before sync) are deleted; fully synced temps are kept if publish fails so the new payload is not lost.

@vdvukhzhilov vdvukhzhilov added the type:improvement New feature or request label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:improvement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant