ci: pre-collapse GitLab CI sections

Sections of CI output defined by `begin_group()` and `end_group()` are expanded in GitLab pipelines by default. This can make CI job output rather noisy and harder to navigate. Update the behavior for GitLab pipelines to now collapse sections by default. Signed-off-by: Justin Tobler <jltobler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Justin Tobler committed May 3, 2024 at 12:21 UTC 7789ea584232770210f169505b27eb1381b9c3b0
1 file changed +1 -1
ci/lib.sh
+1 -1
@@ -18,7 +18,7 @@ elif test true = "$GITLAB_CI"
18 then
19 begin_group () {
20 need_to_end_group=t
21 - printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)\r\e[0K$1\n"
21 + printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)[collapsed=true]\r\e[0K$1\n"
22 trap "end_group '$1'" EXIT
23 set -x
24 }