Commit Graph
1 Commits
Author SHA1 Message Date
Kevin Veen-BirkenbachandClaude Opus 5.5 b3c22a1286 fix(backup): isolate a failed volume and fail the run at the end
CI (make tests, stable, publish) / make test (push) Waiting to run
f783f2f made has_tool() re-raise every probe failure but a missing
executable, and nothing above it caught the BackupError: one paused or
crash-looping container (docker exec exit 1) aborted the whole host
backup, so every later volume, the manifest and the stamp were lost.

main() now catches BackupError around a volume's probe and dump only:
the volume's directory is removed from the generation, so the stamp
never vouches for a partial dump and a later --link-dest never takes
it for the last good copy; the error and the volume go to stderr and
the run continues. Manifest and stamp cover the volumes that
succeeded, and main() returns 1 when any volume failed. Other exception
types still abort. The existing message for an already claimed
generation is reworded (MEDUSA SQL wording rule).

test_app_volume_failure.py runs main() over a real generation in a
temp dir: non-zero exit, the later volume still copied, no directory
for the failed volume at stamp time, the manifest listing only the good
volume, stderr naming volume and error, and a RuntimeError still
aborting. Against f783f2f five of the six tests fail. Operator decision
310c8a1f5201cbb1.

🎯 Fix: 92 %
💥 Break: 4 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 92
🚦 Gate: unit suite 281 OK + negative control; ruff clean; MEDUSA 100

Created-with: https://s.veen.world/skills

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 15:12:55 +00:00