]> code.ossystems Code Review - openembedded-core.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)
committerArmin Kuster <akuster808@gmail.com>
Thu, 27 Jun 2019 13:56:20 +0000 (06:56 -0700)
commit028475f5b6ae9c9b181812c0c8a6aa382640f4bf
treeb43fc0e8f13dcdbd97e5fe111fd0f19659662685
parentae8e0440fc1177bf44e46804e1f5927cb86f8324
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oe/gpg_sign.py
meta/lib/oeqa/selftest/cases/signing.py