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(test): Catch errors caused by GPG #4121

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

m-horky
Copy link
Contributor

@m-horky m-horky commented Jun 12, 2024

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

There exists a race condition when removing files in a directory in which GPG has saved its runtime data.

When GPG detects the files are getting removed, it will kill its socket and start deleting the files. In that case, rmtree may try to delete a file that has already been deleted by GPG, causing OSError.

There exists a race condition when removing files in a directory in
which GPG has saved its runtime data.

When GPG detects the files are getting removed, it will kill its socket
and start deleting the files. In that case, `rmtree` may try to delete a
file that has already been deleted by GPG, causing `OSError`.

Signed-off-by: mhorky <mhorky@redhat.com>
@xiangce xiangce merged commit 8686d1f into RedHatInsights:master Jun 13, 2024
9 of 11 checks passed
xiangce pushed a commit that referenced this pull request Jun 13, 2024
There exists a race condition when removing files in a directory in
which GPG has saved its runtime data.

When GPG detects the files are getting removed, it will kill its socket
and start deleting the files. In that case, `rmtree` may try to delete a
file that has already been deleted by GPG, causing `OSError`.

Signed-off-by: mhorky <mhorky@redhat.com>
(cherry picked from commit 8686d1f)
@m-horky m-horky deleted the gpg-test-fix branch June 17, 2024 10:30
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.

None yet

2 participants