What changed, and why it matters
This is a minor internal change to Bitcoin Core's continuous integration (CI) shell script. It removes a one-line helper variable and directly runs a ccache version/statistics command, adding the --verbose flag to the statistics output. There is no user-facing change, no wallet or network code is touched, and no security issue is present.
No action required. This is a benign CI logging improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies ci/test/03_test_script.sh. It deletes PRINT_CCACHE_STATISTICS=”ccache –version | head -n 1 && ccache –show-stats” and replaces the later invocation bash -c “${PRINT_CCACHE_STATISTICS}” with the literal command ccache –version | head -n 1 && ccache –show-stats –verbose. This is a refactoring/cleanup of CI logging only.
Changed components
ci/test/03_test_script.shInspect captured patch +1 / −2
diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh
index 3908b274..9f844a26 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%"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.