Re: Fixing constant preference prompts during tests

2 messages, 2 authors, 2018-09-26 · open the first message on its own page

Re: Fixing constant preference prompts during tests

From: Junio C Hamano <hidden>
Date: 2018-09-26 17:15:12

Tacitus Aedifex [off-list ref] writes:
I keep getting prompted for my algorithm preferences while running all
of the git test suite:

Set preference list to:
    Cipher: AES256, AES192, AES, 3DES
    Digest: SHA512, SHA384, SHA256, SHA224, SHA1
    Compression: Uncompressed
    Features: MDC, Keyserver no-modify

What is the best way to prevent this from happening? I want to run the
entire test suite unattended and have it complete on its own.
Nobody raised this so far as far as I recall; thanks for the first
one to do so, as it is a sign that you are doing something unusual
(e.g. have newer or different version of GPG than most other people)
and others will hit by the same symptom later when whatever thing
you are using as a minority right now becomes more prevalent.

In other words, we need to have a bit more detail of your
environment.  I made a blind guess that the above may be coming from
GnuPG, and the test framework (t/test-lib.sh, t/lib-gpg.sh, etc.)
tries to run our tests in a stable environment that is not affected
by real $HOME etc. owned by the user who happens to be running the
tests, but it could be that your copy of GnuPG may require a bit
more seeding than we do in our test framework to squelch that
preference prompt.

It may not be GnuPG and something else, but I think you got the
general idea.

Re: Fixing constant preference prompts during tests

From: Tacitus Aedifex <hidden>
Date: 2018-09-26 21:37:12

On Wed, Sep 26, 2018 at 10:15:06AM -0700, Junio C Hamano wrote:
Nobody raised this so far as far as I recall; thanks for the first
one to do so, as it is a sign that you are doing something unusual
(e.g. have newer or different version of GPG than most other people)
and others will hit by the same symptom later when whatever thing
you are using as a minority right now becomes more prevalent.
Indeed I am. I use Qubes OS with a split GPG setup. I have a virtual machine 
dedicated to handling my crypto keys and I use the qubes GPG wrapper to 
interact with the signing VM through the Xen hypervisor. I think the only thing 
that needs to change is that the tests respect gpg.program setting in 
.gitconfig. Signing and verifying commits and tags works perfectly but the 
tests don't allow me to override which program is used.

It may be a little more complicated than this because looking at the tests it 
seems like they set up their own dummy user with dummy keys and use gpg 
directly. I have gpg installed on my client VM so in theory it should work. I 
can't tell exctly where the prompt is coming from.

//tæ
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help