Skip to content

Preserve configuration during interrupted saves - #4

Draft
lukisch wants to merge 1 commit into
mainfrom
fix/mailprocessor-config-atomic-20261002
Draft

lukisch wants to merge 1 commit into
mainfrom
fix/mailprocessor-config-atomic-20261002

Conversation

@lukisch

@lukisch lukisch commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Save configuration through a closed sibling temporary file and atomically replace the target, preserving the previous bytes when write or replace fails.
  • Add synthetic regressions for partial temporary writes, replace errors, and preserved error reporting.
  • Declare Pillow and the test tools in requirements-dev.txt, use it in CI and contributor setup, and provide the tomli fallback required by the Python 3.10 test matrix.

Validation

  • python -B -m pytest -q -p no:cacheprovider — 98 passed, 6 subtests passed (Python 3.12.10; isolated scratch profile/temp).
  • ruff check . — passed.
  • python -B -m compileall -q . — passed.
  • git diff --check — 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.

1 participant