Monday, 2025-06-30

*** mhen_ is now known as mhen01:17
*** elodilles is now known as elodilles_pto06:14
*** iurygregory__ is now known as iurygregory16:58
stephenfinfungi: does the following pbr test fail for you in your local env? tox -e py38 -- 'pbr.tests.test_packaging.TestVersions.test_valid_tag_honoured'17:47
stephenfinI see it failing locally. I've traced it down to GNUPGHOME needing to be set to the value of HOME, so that it uses the temporary home dir we're creating for that test. I'd like to know if this is Fedora-specific behavior or not17:48
fungistephenfin: is GNUPGHOME set to something in your environment normally?17:48
stephenfinnot that I can17:49
stephenfintell17:49
stephenfinhowever, by not setting that, gpg seems to _not_ create the '~/.gnupg' in the temporary home directory, presumably because it already exists in the "real" home directory17:50
fungigimme a sec and i'll have your test answer17:50
stephenfin...which causes file not found errors later on17:50
fungi{0} pbr.tests.test_packaging.TestVersions.test_valid_tag_honoured(preversioned) [0.793693s] ... ok17:51
fungi{0} pbr.tests.test_packaging.TestVersions.test_valid_tag_honoured(postversioned) [1.071473s] ... ok17:51
fungii do have a ~/.gnupg dir though17:52
stephenfinas do I17:52
fungii can try moving it aside for a moment17:52
fungipasses even if i don't have a ~/.gnupg17:53
stephenfinhmm, and what version of gnupg?17:53
stephenfinI'm seeing gpg (GnuPG) 2.4.7 and libgcrypt 1.11.0-unknown17:53
fungigpg (GnuPG) 2.4.7 libgcrypt 1.11.017:57
fungiso same as yours17:57
fungithough i'm using debian sid/unstable17:57
stephenfinweeeeird17:58
stephenfinfungi: last test: what happens if you run these command?18:02
* fungi is standing by waiting for the commands to run18:04
stephenfinhttps://paste.openstack.org/show/bNz6FXx0xt0LqTKL0QUy/18:04
fungiwas that cat supposed to be redirecting stdout to something?18:05
stephenfinsorry, to `key-config`18:05
stephenfin`$PWD/key-config` (== `$HOME/key-config`) for the final command18:06
stephenfinI'm trying to manually reproduce the failing step from those test18:06
stephenfins18:06
*** iurygregory_ is now known as iurygregory18:07
fungistephenfin: https://paste.openstack.org/show/bnGij0XFL8cQPy61Iw6z/18:09
stephenfinOkay, I get this 18:10
stephenfinhttps://paste.opendev.org/show/bwRARTBa2asqPeYeMGLx/18:10
stephenfinand it passes if I set GNUPGHOME18:11
stephenfinhttps://paste.opendev.org/show/bvYk2plryaEQjEgZniWx/18:11
fungii do have console/cli pinentry plugins installed since i run these things remotely over an ssh session most of the time18:12
fungimaybe it's something to do with trying to identify the pinentry mechanism, even if it ends up not being called18:13
fungistephenfin: try exporting env DISPLAY="" GPG_TTY=$(tty)18:14
fungisee if that helps at all18:14
fungias for packages, i have pinentry-curses and pinentry-tty installed specifically (those are their names in debian, dunno about fedora)18:15
fungii also have pinentry-gtk2 and pinentry-gnome3 though i don't ever use them18:16
stephenfinno dice https://paste.opendev.org/show/baC2vwFAg8B5BkvX7ZDn/18:16
fungihrm...18:17
fungii think it defaults to trying to use pinentry-tty unless overridden in e.g. ~/.gnupg/gpg-agent.conf with a pinentry-program line18:18
stephenfinNeither the Fedora package Git server nor the Debian one seem to be loading for me (HTTP 503 for both), so I can't look for obvious things like patches to change the behavior18:20
stephenfinI also don't have anything in /etc/gnupg nor do I have a ~/.gnupg/common.conf file, so I should be using standard configuration18:21
stephenfinsetting selinux to permissive mode doesn't help... (I didn't think it would: I'd have seen avc denials otherwise)18:23
stephenfinso I guess my commit message is "this fixes things on Fedora but I don't know why" 😅18:23
stephenfinfungi++ thanks for checking those for me18:24
fungistephenfin: were you able to replicate the issue on another fedora machine, ruling out some local oddity on yours?18:26
stephenfinfair point, let me spin one up to see18:27
fungimy machines always have plenty of local oddities, which is why that's usually one of the first things i do ;)18:29
stephenfinyup works just fine on a Fedora 42 Cloud VM18:44
fungiat least that narrows it to "this fixes things on stephenfin's computer" ;)18:47
fungi(and maybe other systems with an as-of-yet unidentified commonality)18:48
fungibut yeah, most of the discussions i found related to that error pattern seem to stem from pinentry and agent daemon problems18:48
opendevreviewStephen Finucane proposed openstack/pbr master: Add openstack-tox-py313 job  https://review.opendev.org/c/openstack/pbr/+/94011721:24
opendevreviewStephen Finucane proposed openstack/pbr master: tests: Skip tests that break on newer setuptools  https://review.opendev.org/c/openstack/pbr/+/95383921:24
opendevreviewStephen Finucane proposed openstack/pbr master: tests: Set GNUPGHOME in tests  https://review.opendev.org/c/openstack/pbr/+/95384021:24

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!