git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/5] gitlab-ci: upload Meson test logs as JUnit reports

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 2, 2025, 11:04 UTC
Message-ID
<20251002-pks-gitlab-ci-windows-improvements-v1-4-6a8b6b45d728@pks.im>
In-Reply-To
<20251002-pks-gitlab-ci-windows-improvements-v1-0-6a8b6b45d728@pks.im>

When running tests, Meson knows to output both a test log as well as a JUnit test report that collates results. We don't currently upload these results in our GitLab CI at all, which makes it hard to see which tests ran, but also which of our tests may have failed.

Upload these JUnit reports as artifacts to make this information more accessible. Note that we also do this for some jobs that don't use Meson and thus don't generate these reports in the first place. GitLab CI handles missing reports gracefully though, so there is no reason to special-case those jobs that don't use Meson.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
---
 .gitlab-ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b388154078..85401b34a5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,6 +70,8 @@ test:linux:
   artifacts:
     paths:
       - t/failed-test-artifacts
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
     when: on_failure
 
 test:osx:
@@ -110,6 +112,8 @@ test:osx:
   artifacts:
     paths:
       - t/failed-test-artifacts
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
     when: on_failure
 
 .windows_before_script: &windows_before_script
@@ -181,6 +185,9 @@ test:msvc-meson:
   script:
     - meson test -C build --no-rebuild --print-errorlogs --slice $Env:CI_NODE_INDEX/$Env:CI_NODE_TOTAL
   parallel: 10
+  artifacts:
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
 
 test:fuzz-smoke-tests:
   image: ubuntu:latest
-- 
2.51.0.700.g236ee7b076.dirty
Previous: Toon ClaesNext: Patrick Steinhardt
Message 6 of 10 in “gitlab-ci: some fixes for failures on Windows”
  1. 0/5 gitlab-ci: some fixes for failures on WindowsPatrick Steinhardt, Oct 2, 2025
  2. 1/5 gitlab-ci: dedup instructions to disable realtime monitoringPatrick Steinhardt, Oct 2, 2025
  3. 2/5 gitlab-ci: ignore failures to disable realtime monitoringPatrick Steinhardt, Oct 2, 2025
  4. 3/5 gitlab-ci: drop workaround for Python certificate store on WindowsPatrick Steinhardt, Oct 2, 2025
  5. Toon ClaesOct 6, 2025
  6. 4/5 gitlab-ci: upload Meson test logs as JUnit reportsPatrick Steinhardt, Oct 2, 2025
  7. 5/5 t8020: fix test failure due to indeterministic tag sortingPatrick Steinhardt, Oct 2, 2025
  8. Kristoffer HaugsbakkOct 2, 2025
  9. Patrick SteinhardtOct 2, 2025
  10. Toon ClaesOct 6, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.