ci: Stash the ldd and ccache stats output under collapsed sections.
authorEmma Anholt <emma@anholt.net>
Tue, 8 Feb 2022 20:52:56 +0000 (12:52 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 23 Feb 2022 23:09:20 +0000 (23:09 +0000)
You rarely need to look at these, they're just nice to have sometimes.

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14962>

.gitlab-ci.yml

index 157dd03..4b92301 100644 (file)
@@ -708,9 +708,13 @@ sanity:
     - !reference [default, before_script]
     - export PATH="/usr/lib/ccache:$PATH"
     - export CCACHE_BASEDIR="$PWD"
+    - echo -e "\e[0Ksection_start:$(date +%s):ccache_before[collapsed=true]\r\e[0Kccache stats before build"
     - ccache --show-stats
+    - echo -e "\e[0Ksection_end:$(date +%s):ccache_before\r\e[0K"
   after_script:
+    - echo -e "\e[0Ksection_start:$(date +%s):ccache_after[collapsed=true]\r\e[0Kccache stats after build"
     - ccache --show-stats
+    - echo -e "\e[0Ksection_end:$(date +%s):ccache_after\r\e[0K"
     - !reference [default, after_script]
 
 .build-windows:
@@ -1208,7 +1212,9 @@ debian-mingw32-x86_64:
     # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
     - rm -rf install
     - tar -xf artifacts/install.tar
+    - echo -e "\e[0Ksection_start:$(date +%s):ldd_section[collapsed=true]\r\e[0KChecking ldd on driver build"
     - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
+    - echo -e "\e[0Ksection_end:$(date +%s):ldd_section\r\e[0K"
   artifacts:
     when: always
     name: "mesa_${CI_JOB_NAME}"