selftest: Change backup/restore testenvs to use 1 prefork child
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 4 Feb 2019 23:23:43 +0000 (12:23 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 13 Feb 2019 03:15:15 +0000 (04:15 +0100)
commit22c016b12142e675c5b8ef0ea1f450385f555268
treeeef62d266a3862900f358c3d6717eb32a84e7d18
parent85a7b4bf7040b0c95edc2f5a13252830c8c0d378
selftest: Change backup/restore testenvs to use 1 prefork child

Recently the gitlab CI jobs were hitting memory resource limits and
using swap, which then caused test failures. The process model used in
the testenvs seemed to be contributing to this problem.

We can reduce the memory overhead of the restore/backup testenvs by
using 1 prefork child process instead of the default of 4 (kudos to
Garming for the idea). The tests run against these testenvs are basic
sanity-checks, rather than heavy-duty stress tests, so the number of
prefork workers shouldn't matter.

This is a bit of a tradeoff between testing the defaults that will
actually be used in production vs using limited resources efficiently on
shared CI runner machines.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba4.pm