[tracker/sam/slow-tests: 1/3] WIP: Only run data-sparql test and use callgrind to profile



commit bce0ad423623b169bc724f299ed6f41ed73c367d
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Jan 28 00:44:09 2020 +0100

    WIP: Only run data-sparql test and use callgrind to profile

 .gitlab-ci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b2e4f463..85821ed61 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 dbus-run-session meson test --wrapper 
"valgrind  --tool=callgrind --collect-systime=yes" -t 100 --suite data sparql'
 
   after_script:
     - |
@@ -54,10 +54,14 @@ stages:
 
 test-fedora-latest:
   image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
+  before_script:
+    - dnf install -y valgrind
   <<: *test
 
 test-ubuntu-rolling:
   image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/ubuntu:rolling
+  before_script:
+    - apt-get install -y valgrind
   <<: *test
 
 test-alpine-rolling:
@@ -67,5 +71,6 @@ test-alpine-rolling:
     - apk add -U bash-completion dbus-dev glib-dev gobject-introspection-dev icu-dev json-glib-dev 
libsoup-dev libxml2-dev meson py3-setuptools sqlite-dev networkmanager-dev vala alpine-sdk py3-gobject3
     - addgroup -S tracker
     - adduser -D -G tracker -g tracker tracker
+    - apk add valgrind
   <<: *test
 


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