]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
gpg_sign/selftest: Fix secmem parameter handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Jun 2019 18:33:02 +0000 (19:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Jun 2019 08:10:34 +0000 (09:10 +0100)
commitc7e131a76e522503df55e211dd261829feacfa28
treee24903a723fdac17fe7ba36eaf753f547b585b6d
parent4059d8eedc5cf6f46a834997b7120150fcec4c0e
gpg_sign/selftest: Fix secmem parameter handling

We keep seeing "cannot allocate memory" errors from rpm when signing packages
on the autobuilder. The following were tried:

* checking locked memory use (isn't hitting limits)
* Restricting RPM_GPG_SIGN_CHUNK to 1
* Limiting to 10 parallel do_package_write_rpm tasks
* Allowing unlimied memory overcommit
* Disabling rpm parallel compression

and the test still failed. Further invetigation showed that the --auto-expand-secmem
wasn't being passed to gpg-agent which meant the secmem couldn't be expanded hence the
errors when there was pressure on the agent.

The reason this happens is that some of the early gpg commands can start the agent
without the option and it sticks around in memory so a version with the correct
option may or may not get started.

We therefore add the option to all the key gpg calls.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/gpg_sign.py
meta/lib/oeqa/selftest/cases/signing.py