Skip to content

CI: Use FDO_CI_CONCURRENT

Daniel Stone requested to merge daniels/weston:ci-concurrency into main

$FDO_CI_CONCURRENT is provided by in the CI environment by the fd.o GitLab runners to tell us how many parallel processes would be 'good' to use.

Use this to override the default Ninja invocation which uses as many CPUs as available, and instead tell it to use as many parallel processes as the runner thinks we should during the build process.

Tests are invoked using meson test inside a virtme/QEmu VM; whilst Meson's test backend will use as many processors as availble, virtme will by default create a single-CPU VM. So if we create a VM with as many CPUs as we should have parallel processes, we can let it use all of them. This also requires quadrupling the requested RAM so ASan doesn't force us straight into OOM.

Suggested by @daenzer.

Signed-off-by: Daniel Stone daniels@collabora.com

Merge request reports

Loading