From 9d98ba5be6e9fdd579700e322d93b30676200794 Mon Sep 17 00:00:00 2001
From: Dmitry Rodionov <d.rodionov@picodata.io>
Date: Mon, 16 Dec 2024 15:37:56 +0300
Subject: [PATCH] ci: annotate test job log using collapsible sections

---
 .gitlab-ci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 92a70dfbaf..1a945081eb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -243,11 +243,16 @@ test-linux:
     - pushd sbroad && make test
     - make bench_check; popd
 
-    - make build-$BUILD_PROFILE CARGO_FLAGS_EXTRA="--timings"
     - |
+      ci-log-section start "build" Build
+      make build-$BUILD_PROFILE CARGO_FLAGS_EXTRA="--timings"
+      ci-log-section end "build"
+    - |
+      ci-log-section start "test" Test
       make test \
         PYTEST_FLAGS="--junitxml=junit_pytest.xml --with-webui -n$KUBERNETES_CPU_REQUEST" \
         CARGO_FLAGS_EXTRA="--profile=$BUILD_PROFILE"
+      ci-log-section end "test"
 
   artifacts:
     when: always
-- 
GitLab