summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2019-09-14 13:26:12 +0000
committerSam Thursfield <sam@afuera.me.uk>2019-09-14 13:26:12 +0000
commit1d8cf637b2015b05baec052ed1757fdcbef9f06d (patch)
tree6172de70873c345c1df667ddb60540ccdfd65c1a
parentfd5c2933869e091524ee847aca2905962245e3d5 (diff)
parent7966322eee874b5486e2806ac5c10daed93c3b4e (diff)
downloadtracker-1d8cf637b2015b05baec052ed1757fdcbef9f06d.tar.gz
Merge branch 'sam/ci-4-processes' into 'master'
ci: Run a maximum of 4 tests simultaneously See merge request GNOME/tracker!136
-rw-r--r--.gitlab-ci.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f659c6fd9..4754cee55 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,12 +24,13 @@ 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
echo " TRACKER_VERBOSITY: ${TRACKER_VERBOSITY}"