[tracker/wip/carlosg/ci-playground: 2/4] ci: Add test timeout multiplier




commit 69f772a759e2b7fd7152bf6859b2a6ac30049a26
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun May 16 14:34:58 2021 +0200

    ci: Add test timeout multiplier
    
    So we can expand test timeouts in CI without making it horribly
    slow on the desktop.

 .gitlab-ci.yml                         | 1 +
 tests/functional-tests/ipc/meson.build | 2 +-
 tests/functional-tests/meson.build     | 2 +-
 tests/libtracker-data/meson.build      | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5328a4b16..81b7e60d4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,7 @@ include:
   - remote: 
'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/290b79e0e78eab67a83766f4e9691be554fc4afd/templates/ubuntu.yml'
 
 variables:
+  MESON_TEST_TIMEOUT_MULTIPLIER: 3
   # These can be used to see verbose log output from the functional-tests.
   # See HACKING.md for more information.
   TRACKER_DEBUG: ""
diff --git a/tests/functional-tests/ipc/meson.build b/tests/functional-tests/ipc/meson.build
index fd8a58cbc..4aaa334b8 100644
--- a/tests/functional-tests/ipc/meson.build
+++ b/tests/functional-tests/ipc/meson.build
@@ -13,4 +13,4 @@ bus_query_cancellation_test = executable('test-bus-query-cancellation',
 test('bus-query-cancellation', bus_query_cancellation_test,
   env: test_env,
   suite: ['functional', 'ipc'],
-  timeout: 60)
+  timeout: 30)
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index c0a3b4bd6..23f514d09 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -51,7 +51,7 @@ foreach test_name: functional_tests
     env: test_env,
     protocol: protocol,
     suite: ['functional'],
-    timeout: 60)
+    timeout: 30)
 endforeach
 
 subdir('ipc')
diff --git a/tests/libtracker-data/meson.build b/tests/libtracker-data/meson.build
index e7386b851..3ba1ddf5e 100644
--- a/tests/libtracker-data/meson.build
+++ b/tests/libtracker-data/meson.build
@@ -44,6 +44,6 @@ foreach base_name: libtracker_data_slow_tests
         'name': base_name,
         'exe': binary,
         'suite': ['data', 'slow'],
-        'timeout': 280
+        'timeout': 100
     }
 endforeach


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