[folks/wip/nielsdg/fix-ci-timeout] ci: Set meson timeout multiplier



commit 4b729833a1c423193ae9806a1ac6a4dbf438d378
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Jun 4 13:56:20 2020 +0200

    ci: Set meson timeout multiplier
    
    Some of our tests are failing because some of the runners seem to be
    quite slow, so this should fix our pipelines failing due to that.

 .gitlab-ci.yml          | 5 ++++-
 .gitlab-ci/run-tests.sh | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db534ecb..b6fdae9f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,9 @@ image: fedora:rawhide
 stages:
   - build
 
+variables:
+  MESON_TEST_TIMEOUT_MULTIPLIER: 2
+
 build-folks:
   stage: build
   except:
@@ -18,7 +21,7 @@ build-folks:
   script:
     - meson _build
     - ninja -C _build
-    - bash +x ./.gitlab-ci/run-tests.sh
+    - bash +x ./.gitlab-ci/run-tests.sh --timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER}
   artifacts:
     reports:
       junit: "_build/${CI_JOB_NAME}-report.xml"
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh
index 64d3863a..dfb828c5 100755
--- a/.gitlab-ci/run-tests.sh
+++ b/.gitlab-ci/run-tests.sh
@@ -2,7 +2,7 @@
 
 set +e
 
-meson test -C _build
+meson test -C _build $*
 
 exit_code=$?
 


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