[glib-networking/mcatanzaro/lsan-crash] CI: run tests under asan only once



commit 7c7ceb1dd42cc711d0bc847d192beaaca3d6c510
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri May 17 12:31:05 2019 -0500

    CI: run tests under asan only once
    
    LeakSanitizer is crashing occasionally on the CI. Let's reduce the odds
    of this happening by running the tests under asan only once per run.
    
    Additionally, let's be a bit less aggressive with repeating the tests to
    try to finish more quickly.
    
    Sort of fixes #86

 .gitlab-ci.yml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c97f7db..b949f31 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,8 +2,21 @@ image: registry.gitlab.gnome.org/gnome/glib-networking/master:v3
 
 fedora-x86_64:
   script:
+    # Sadly, GCC 9's LeakSanitizer is quite crashy, #86.
+    # So we will run our tests under asan only once.
+    - meson -Db_sanitize=address
+            -Dgnutls=enabled
+            -Dopenssl=enabled
+            -Dlibproxy=enabled
+            -Dgnome_proxy=enabled
+            -Dwerror=true
+            build/
+    - ninja -C build/
+    - meson test -v -C build/
+    - rm -rf build/
+
+    # Now again, this time without asan. We will additionally test installation.
     - meson --prefix=$HOME/glib-networking-installed
-            -Db_sanitize=address
             -Dgnutls=enabled
             -Dopenssl=enabled
             -Dlibproxy=enabled
@@ -11,7 +24,7 @@ fedora-x86_64:
             -Dwerror=true
             build/
     - ninja -C build/
-    - meson test -v -C build/ --repeat=1000
+    - meson test -v -C build/ --repeat=500
     - meson install -C build/
   artifacts:
     paths:


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