All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: "Adarsh Jagadish Kamini" <adarsh.jagadish.kamini@est.tech>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH v2 2/2] oeqa: selftest: signing: test parallel signing and GPG_SIGN_SERIALIZE
Date: Thu, 03 Dec 2026 07:43:03 +0100	[thread overview]
Message-ID: <DNAW6KGTIXVR.3CQMEGD5S3QN9@bootlin.com> (raw)
In-Reply-To: <20261202125343.310035-3-adarsh.jagadish.kamini@est.tech>

On Wed Dec 2, 2026 at 1:53 PM CET, Adarsh Jagadish Kamini wrote:
> The existing tests enable auto-expand-secmem, so they can't catch
> gpg-agent running out of secure memory. Sign 64 files in parallel
> against an agent started without it; 44 failed before the previous
> commit. Also check that signing waits for a held lock by default but
> not with GPG_SIGN_SERIALIZE = "0".
>
> [YOCTO #16480]
>
> AI-Generated: Uses Kiro (claude-opus-5.5)
> Signed-off-by: Adarsh Jagadish Kamini <adarsh.jagadish.kamini@est.tech>
> ---

Hi,

Thanks for the new version. It looks like the two added selftests are
failing here:

2026-12-02 18:26:38,236 - oe-selftest - INFO - signing.Signing.test_signing_parallel_existing_agent (subunit.RemotedTestCase)
2026-12-02 18:26:38,250 - oe-selftest - INFO -  ... FAIL

Stderr:
NOTE: Reconnecting to bitbake server...
2026-12-02 18:26:38,230 - oe-selftest - WARNING - tearDown commands have failed: /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-1788684/tmp/work/x86_64-linux/gnupg-native/2.5.24/recipe-sysroot-native/usr/bin/usr/bin/gpgconf --homedir /tmp/oeqa-signing-jmobdi9i --kill gpg-agent
/usr/lib64/python3.12/unittest/case.py:580: RuntimeWarning: TestResult has no addDuration method
  warnings.warn("TestResult has no addDuration method",

2026-12-02 18:26:38,250 - oe-selftest - INFO - 5: 43/46 543/842 (9.53s) (1 failed) (signing.Signing.test_signing_parallel_existing_agent)
2026-12-02 18:26:38,251 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/signing.py", line 214, in test_signing_parallel_existing_agent
    self.assertRegex(ret.output, r'(?m)^D \d+$', 'No gpg-agent running after key import')
  File "/usr/lib64/python3.12/unittest/case.py", line 1347, in assertRegex
    raise self.failureException(msg)
AssertionError: Regex didn't match: '(?m)^D \\d+$' not found in 'gpg-connect-agent: no gpg-agent running in this session' : No gpg-agent running after key import

2026-12-02 18:26:49,390 - oe-selftest - INFO - signing.Signing.test_signing_serialize_option (subunit.RemotedTestCase)
2026-12-02 18:26:49,392 - oe-selftest - INFO -  ... FAIL

Stderr:
NOTE: Reconnecting to bitbake server...
2026-12-02 18:26:49,382 - oe-selftest - WARNING - tearDown commands have failed: /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-1788684/tmp/work/x86_64-linux/gnupg-native/2.5.24/recipe-sysroot-native/usr/bin/usr/bin/gpgconf --homedir /tmp/oeqa-signing-r5u6wlgn --kill gpg-agent
/usr/lib64/python3.12/unittest/case.py:580: RuntimeWarning: TestResult has no addDuration method
  warnings.warn("TestResult has no addDuration method",

2026-12-02 18:26:49,392 - oe-selftest - INFO - 5: 44/46 546/842 (11.16s) (2 failed) (signing.Signing.test_signing_serialize_option)
2026-12-02 18:26:49,392 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/signing.py", line 265, in test_signing_serialize_option
    self.assertIsNone(optout.get(), 'Signing with GPG_SIGN_SERIALIZE = "0" failed')
  File "/usr/lib64/python3.12/unittest/case.py", line 1281, in assertIsNone
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.12/unittest/case.py", line 715, in fail
    raise self.failureException(msg)
AssertionError: "/tmp/oeqa-signing-tmpdir-lkw6gwnx/file-0: FileNotFoundError(2, 'No such file or directory')" is not None : Signing with GPG_SIGN_SERIALIZE = "0" failed

https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/5201
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/5397
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/5419

Can you have a look at the issue?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2026-12-03  6:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:53 [PATCH v2 0/2] gpg_sign: avoid unsupported gpg-agent argument passing Adarsh Jagadish Kamini
2026-12-02 12:53 ` [PATCH v2 1/2] lib/oe/gpg_sign.py: serialize signing instead of passing agent options Adarsh Jagadish Kamini
2026-12-02 12:53 ` [PATCH v2 2/2] oeqa: selftest: signing: test parallel signing and GPG_SIGN_SERIALIZE Adarsh Jagadish Kamini
2026-12-03  6:43   ` Mathieu Dubois-Briand [this message]
2026-12-03 13:48     ` [OE-core] " Adarsh Jagadish Kamini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNAW6KGTIXVR.3CQMEGD5S3QN9@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=adarsh.jagadish.kamini@est.tech \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.