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

GPG: Proactively stop to avoid "GPG keepalive failed" error in pypy ci jobs #1258

Merged

Conversation

zmedico
Copy link
Member

@zmedico zmedico commented Feb 10, 2024

GPG: Proactively stop to avoid "GPG keepalive failed" error in pypy ci jobs

This seems to help mitigate pypy ci job hangs like those fba76a5 triggered.

Use threading.Event for thread safety during GPG stop, and use the wait method to improve responsiveness for stop requests.

Bug: https://bugs.gentoo.org/924192

@@ -341,10 +341,6 @@ def quickpkg_main(options, args, eout):
portage.settings.features.remove("xattr")
portage.settings.lock()

if portage.settings.get("BINPKG_GPG_SIGNING_KEY", None):
Copy link
Member

Choose a reason for hiding this comment

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

I wasn't sure if this was OK because of unmerge-backup and downgrade-backup but it looks like they just call the entrypoint normally.

…i jobs

This seems to help mitigate pypy ci job hangs like those fba76a5
triggered.

Bug: https://bugs.gentoo.org/924192
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Use threading.Event for thread safety during GPG stop, and use the
wait method to improve responsiveness for stop requests.

Bug: https://bugs.gentoo.org/924192
Signed-off-by: Zac Medico <zmedico@gentoo.org>
@zmedico zmedico force-pushed the bug_923368_stop_gpg_keepalive_threads branch from cc5ce9a to 03be12e Compare February 10, 2024 06:09
@gentoo-bot gentoo-bot merged commit 03be12e into gentoo:master Feb 10, 2024
12 checks passed
@zmedico zmedico deleted the bug_923368_stop_gpg_keepalive_threads branch February 10, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants