From 7528d18796a22c695aac8090f3ecd2ccc859aa68 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 2 Feb 2026 09:30:27 +0000 Subject: [PATCH] ci: show more verbose ccache stats ...and inline function used only once --- ci/test/03_test_script.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh index 3908b2746f5..9f844a26a41 100755 --- a/ci/test/03_test_script.sh +++ b/ci/test/03_test_script.sh @@ -116,7 +116,6 @@ if [ -z "$NO_WERROR" ]; then fi ccache --zero-stats -PRINT_CCACHE_STATISTICS="ccache --version | head -n 1 && ccache --show-stats" # Folder where the build is done. BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build-$HOST} @@ -147,7 +146,7 @@ cmake --build "${BASE_BUILD_DIR}" "$MAKEJOBS" --target $GOAL || ( false ) -bash -c "${PRINT_CCACHE_STATISTICS}" +ccache --version | head -n 1 && ccache --show-stats --verbose hit_rate=$(ccache --show-stats | grep "Hits:" | head -1 | sed 's/.*(\(.*\)%).*/\1/') if [ "${hit_rate%.*}" -lt 75 ]; then echo "::notice title=low ccache hitrate::Ccache hit-rate in $CONTAINER_NAME was $hit_rate%"