Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a rm command to fail #417

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

berland
Copy link
Contributor

@berland berland commented Nov 1, 2023

The rm .delete statement has been observed to be flaky on NFS filesystems, probably due to leftover .nfs* files blocking deletion of the directories.

We fix this by moving the old release to a unique filename, and let the rm command fail (will be logged to stdout). Subsequent builds will do the cleanup.

@berland berland added the bug label Nov 1, 2023
@berland berland self-assigned this Nov 1, 2023
@berland berland linked an issue Nov 1, 2023 that may be closed by this pull request
The rm <build>.delete statement has been observed to be flaky on NFS
filesystems, probably due to leftover .nfs* files blocking deletion
of the directories.

We fix this by moving the old release to a unique filename, and let the
rm command fail (will be logged to stdout). Subsequent builds will
do the cleanup.
@jonathan-eq jonathan-eq self-requested a review November 1, 2023 07:26
Copy link
Collaborator

@jonathan-eq jonathan-eq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@berland berland merged commit 688f1be into equinor:main Nov 1, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Handle flaky NFS filesystem when deleting
2 participants