Repository navigation
Stop backing up after a full-destination error - #109
Open
Solarboaters wants to merge 1 commit into
Open
Solarboaters wants to merge 1 commit into
Solarboaters wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #104. When writing the archive raises ENOSPC (or EDQUOT), stop scanning the remaining source files and show the existing error summary. Archive-initialization failures also stop the scan. Keep a failed archive under its
.partname, even if the destination becomes writable again before the archive is closed, rather than presenting it as a completed backup.An unreadable individual source file still allows the remaining files to be backed up. No free-space estimate is introduced: it cannot reliably predict compressed size or concurrent destination usage.
Validation: five tests execute the production backup worker and real
tarfilewriting against temporary directories. The output wrapper injects disk-full/quota errors during initialization or the first file; UI callbacks are replaced by test doubles. All three failure cases fail on the original code and pass with the fix. Successful backup and unreadable-source controls pass, including reading the resulting archives. Tested on Linux Mint/Python 3.12 with the installed Mint dependencies. This is worker-level validation, not a full graphical session or a physically filled disk.Run:
python3 -m unittest discover -s tests.AI-assisted implementation and testing; thanks to the reporter for describing the failure.