Bug 14095

Summary: signing selftest failure in test_signing_sstate_archive debian9-ty-2
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Saul Wold <saul.wold>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, sgw
Version: 3.2   
Target Milestone: 3.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2020-10-19 05:56:46 UTC
signing.Signing.test_signing_sstate_archive failure on debian9-ty-2

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1453/steps/8/logs/step2d

2020-10-17 18:48:41,123 - oe-selftest - INFO - ======================================================================
2020-10-17 18:48:41,123 - oe-selftest - INFO - FAIL: signing.Signing.test_signing_sstate_archive (subunit.RemotedTestCase)
2020-10-17 18:48:41,123 - oe-selftest - INFO - ----------------------------------------------------------------------
2020-10-17 18:48:41,123 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/signing.py", line 140, in test_signing_sstate_archive
    nsysroot = self.setup_gpg()
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/signing.py", line 34, in setup_gpg
    runCmd('gpg --agent-program=`which gpg-agent`\|--auto-expand-secmem --batch --homedir %s --import %s %s' % (self.gpg_dir, self.pub_key_path, self.secret_key_path), native_sysroot=nsysroot)
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py", line 201, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'gpg --agent-program=`which gpg-agent`\|--auto-expand-secmem --batch --homedir /tmp/oeqa-signing-051p1l27 --import /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-51329/meta-selftest/files/signing/key.pub /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-51329/meta-selftest/files/signing/key.secret' returned non-zero exit status 2:
/bin/bash: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-51329/tmp/work/x86_64-linux/gnupg-native/2.2.23-r0/recipe-sysroot-native/usr/lib/libtinfo.so.5: no version information available (required by /bin/bash)
gpg: keybox '/tmp/oeqa-signing-051p1l27/pubring.kbx' created
gpg: /tmp/oeqa-signing-051p1l27/trustdb.gpg: trustdb created
gpg: key 7B31316B5D64AD52: public key "testuser (nocomment) <testuser@testemail.com>" imported
gpg: can't connect to the agent: IPC connect call failed
gpg: key 7B31316B5D64AD52: "testuser (nocomment) <testuser@testemail.com>" not changed
gpg: can't connect to the agent: IPC connect call failed
gpg: error getting the KEK: No agent running
gpg: error reading '/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-51329/meta-selftest/files/signing/key.secret': No agent running
gpg: import from '/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-51329/meta-selftest/files/signing/key.secret' failed: No agent running
gpg: Total number processed: 1
gpg:               imported: 1
gpg:              unchanged: 1
gpg:       secret keys read: 1
Comment 1 Richard Purdie 2020-10-19 06:18:53 UTC
The key part of the error being: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-51329/tmp/work/x86_64-linux/gnupg-native/2.2.23-r0/recipe-sysroot-native/usr/lib/libtinfo.so.5: no version information available (required by /bin/bash)
Comment 2 Randy MacLeod 2020-10-22 07:42:56 UTC
Likely a very rare failure that happened with 14096, 14097.
Comment 3 Randy MacLeod 2021-05-13 15:18:00 UTC
duplicate

*** This bug has been marked as a duplicate of bug 14354 ***
Comment 4 Randy MacLeod 2025-02-14 16:46:26 UTC
bulk change to add Saul's non-WR address.
Comment 5 Randy MacLeod 2025-02-14 16:48:17 UTC
Bulk change: Remove Saul's old WR address.