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

fix(gpg resource): survive errors during cleanup #1713

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 30, 2024

When the GPG agent is shutdown, it removes some UNIX sockets from the temporary directory. Their removal may race with the rmrf that we run in the custom resource, leading to an ENOENT error.

Catch it and continue. Ultimately, this code runs in a Lambda and all files are going to disappear anyway.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When the GPG agent is shutdown, it removes some UNIX sockets from the
temporary directory. Their removal may race with the `rmrf` that
we run in the custom resource, leading to an `ENOENT` error.

Catch it and continue.
@rix0rrr rix0rrr requested a review from a team July 30, 2024 12:04
@rix0rrr rix0rrr changed the title fix(gpg resource): survive files that disappear on their own fix(gpg resource): survive errors during cleanup Jul 30, 2024
@mergify mergify bot merged commit b6aaa4e into main Jul 30, 2024
9 checks passed
@mergify mergify bot deleted the huijbers/survive-enoent branch July 30, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants