gitlab-ci: Enable unit test reports for lava traces jobs
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Fri, 4 Sep 2020 10:53:41 +0000 (13:53 +0300)
committerAlexandros Frantzis <alexandros.frantzis@collabora.com>
Tue, 8 Sep 2020 07:44:59 +0000 (10:44 +0300)
Download from minio the JUnit XML file that tracie produces and inform
gitlab about it, so that the pipeline page can present more detailed
information about tracie test results.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6598>

.gitlab-ci/lava-gitlab-ci.yml

index fe7ac4a..431ed55 100644 (file)
@@ -131,23 +131,34 @@ kernel+rootfs_armhf:
     - kernel+rootfs_amd64
     - meson-testing
 
+.lava-traces-base:
+  after_script:
+    - mkdir -p artifacts
+    - wget -O "artifacts/junit.xml" "https://minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/${CI_JOB_ID}/traces/junit.xml"
+  artifacts:
+    reports:
+      junit: artifacts/junit.xml
+
 .lava-traces:amd64:
   variables:
     TEST_SUITE: "tracie"
   extends:
     - .lava-test:amd64
+    - .lava-traces-base
 
 .lava-traces:armhf:
   variables:
     TEST_SUITE: "tracie"
   extends:
     - .lava-test:armhf
+    - .lava-traces-base
 
 .lava-traces:arm64:
   variables:
     TEST_SUITE: "tracie"
   extends:
     - .lava-test:arm64
+    - .lava-traces-base
 
 panfrost-t720-gles2:arm64:
   extends: