-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore non-empty directories in cleanup file
- Before ruby 2.5, FileUtils.rmdir silently fails when the target directory is not empty, so the non-empty directories in cleanup file are not removed. But the implementation of rmdir is changed in ruby 2.5 so that it doesn’t rescue Errno::ENOTEMPTY any more.
- Loading branch information
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
9f0de68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason the removal of a non-empty directory is not forced? Otherwise the failure mode for this is pretty catastrophic - one day your deployments will just fail with an out of disk space error. You should have alerts on your disk space I'll grant, but seems like it could be a cause of some of the reports about CodeDeploy not cleaning up previous releases.