[vlc-commits] [Git][videolan/vlc][master] 2 commits: ci: meson: print the logs of failing tests

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Oct 12 05:12:54 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
5f17f88f by paarth Dhammi at 2026-10-11T21:12:31+00:00
ci: meson: print the logs of failing tests

Use --print-errorlogs instead of dumping the whole test log on failure,
so that only the output of the failing or timed out tests ends up in the
job log, next to their result.

- - - - -
a302ba54 by paarth Dhammi at 2026-10-11T21:12:31+00:00
ci: meson: run the tests in gdb to print their stacktraces

- - - - -


1 changed file:

- extras/ci/gitlab-ci.yml


Changes:

=====================================
extras/ci/gitlab-ci.yml
=====================================
@@ -361,7 +361,12 @@ debian-meson:
         - |
             echo -e "\e[0Ksection_start:$(date +%s):tests_meson_section\r\e[0KVLC tests"
             # Run tests
-            meson test -C build-meson || (echo "ERROR: Tests failed!" >&2 ; cat build-meson/meson-logs/testlog.txt >&2 ; exit 3)
+            meson test -C build-meson --print-errorlogs --max-lines 1000 \
+                --wrapper "gdb -nx -batch -return-child-result \
+                    -iex 'set debuginfod enabled off' \
+                    -iex 'handle SIGALRM stop print' \
+                    -ex run -ex 'thread apply all bt' --args" \
+                || (echo "ERROR: Tests failed!" >&2 ; exit 3)
             echo -e "\e[0Ksection_end:$(date +%s):tests_meson_section\r\e[0K"
 
         - |
@@ -392,7 +397,7 @@ debian-meson:
     variables: *variables-debian
     artifacts:
         reports:
-            junit: build-meson/meson-logs/testlog.junit.xml
+            junit: build-meson/meson-logs/testlog-gdb.junit.xml
             coverage_report:
                 coverage_format: cobertura
                 path: cobertura.xml
@@ -400,7 +405,7 @@ debian-meson:
             - ${CI_PROJECT_DIR}/${CI_JOB_NAME}.cov.json
             - cobertura.xml
             - html-coverage/
-            - ${CI_PROJECT_DIR}/build-meson/meson-logs/testlog.junit.xml
+            - ${CI_PROJECT_DIR}/build-meson/meson-logs/testlog-gdb.junit.xml
 
 #
 # Snap builds



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/38022073f64ca9321766117d7a402e1e3f5ed8fa...a302ba5409be61e07f8d4b34ed57d88258d7cc59

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/38022073f64ca9321766117d7a402e1e3f5ed8fa...a302ba5409be61e07f8d4b34ed57d88258d7cc59
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list