[tracker/sam/tests-eat-my-data] tests: Use libeatmydata to speed up tests



commit 422517003ff2476f0cee6c50b2842d53f55b61de
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Feb 12 00:22:32 2020 +0100

    tests: Use libeatmydata to speed up tests
    
    This will hopefully fix https://gitlab.gnome.org/GNOME/tracker/issues/145

 .gitlab-ci.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b2e4f463..58980b374 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,7 +30,7 @@ stages:
       # 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; env LANG=C.UTF-8 LC_ALL=C.UTF-8 meson test --num-processes=4 
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
+      su tracker -c 'cd build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 eatmydata meson test --num-processes=4 
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
 
   after_script:
     - |
@@ -54,10 +54,22 @@ stages:
 
 test-fedora-latest:
   image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
+  before_script:
+    - |
+      curl --get 'https://www.flamingspork.com/projects/libeatmydata/libeatmydata-105.tar.gz' --output 
libeatmydata-105.tar.gz
+      tar -x -f ./libeatmydata-105.tar.gz
+      cd libeatmydata-105
+      ./configure --prefix=/usr
+      make install
+      sed -e 's@shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh@shlib="/usr/libexec/eatmydata.sh@' -i 
/usr/bin/eatmydata
+      cd ..
   <<: *test
 
 test-ubuntu-rolling:
   image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/ubuntu:rolling
+  before_script:
+    - apt-get update
+    - apt-get install -y eatmydata
   <<: *test
 
 test-alpine-rolling:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]