Commit 1d8cf637 authored by Sam Thursfield's avatar Sam Thursfield

Merge branch 'sam/ci-4-processes' into 'master'

ci: Run a maximum of 4 tests simultaneously

See merge request !136
parents fd5c2933 7966322e
Pipeline #115014 passed with stage
in 3 minutes and 23 seconds
......@@ -24,11 +24,12 @@ test-fedora-latest:
# screenful of junk each time unless we strip these.
unset $(env|grep -o '^CI_[^=]*')
su tracker -c 'cd build; meson test --print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
# We limit `meson test` to 4 parallel test processes. The default is to
# have one test process per CPU, but our tests are mostly IO bound
# and we get timeouts and failures if we try to run 32 of them at once.
su tracker -c 'cd build; meson test --num-processes=4 --print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
after_script:
- |
python3 -c 'import multiprocessing; print(f"Meson probably started {multiprocessing.cpu_count()} tests in parallel.")'
- |
echo "Test suite settings:"
echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment