Repository navigation
fix(ci): keep package backups when rollback fails - #1052
Merged
LunaStev merged 4 commits intoOct 29, 2026
Merged
Conversation
Signed-off-by: hiyouwhatsapp <[email protected]>
Signed-off-by: hiyouwhatsapp <[email protected]>
LunaStev
previously approved these changes
Oct 27, 2026
Member
|
In replace_set(), shutil.rmtree(directory) is called after all packages have been successfully activated. If this cleanup fails, the function raises an exception even though the new packages have already been published. This could cause callers to interpret a successful deployment as a failed one. Could we handle backup-directory cleanup failures separately from package replacement failures and add a regression test for this scenario? |
LunaStev
previously approved these changes
Oct 27, 2026
LunaStev
dismissed stale reviews from themself
October 27, 2026 15:23
Approval dismissed at my request pending further review of package cleanup failure handling.
LunaStev
approved these changes
Oct 29, 2026
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 #1001
replace_set()could delete the only old copy when activation failed and restoring the backup failed tooI kept the backup directory in that case and included the recovery path in the error
The other restores still run even if one of them fails
Added cases for failed restore and cleanup alongside the existing replacement tests
Testing: eight isolated fault-injection scenarios pass, haven't run the full repository suite locally