[tracker/sam/ci-save-logs-on-failure] ci: Upload test suite logs as a CI artifact



commit c2855f670423853ae6ae1e9b53706e6c8ca581c5
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Mar 4 09:43:29 2019 +0100

    ci: Upload test suite logs as a CI artifact
    
    We sometimes see unreproducible test failures in CI. These are often
    hard to debug because they don't occur all the time, and may even be
    triggered by something that only happens on a specific CI runner.
    
    As a step towards debugging these, we should upload the test log as
    a GitLab artifact. Meson only shows the last 100 lines of the test log
    on stdout, and there seems to be no way to cause it to emit more info,
    so this should help with debugging
    https://gitlab.gnome.org/GNOME/tracker/issues/79.

 .gitlab-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 702895724..84f040af3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,3 +16,8 @@ test-fedora-latest:
       unset $(env|grep -o '^CI_[^=]*')
 
       su tracker -c 'cd build; dbus-run-session -- env LANG=en_US.UTF8 meson test --print-errorlogs'
+
+  artifacts:
+    when: always
+    paths:
+    - build/meson-logs/testlog.txt


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