From 8c9bd914462970dea77749f14a901da19287b9fc Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 9 Sep 2026 13:19:18 +0200 Subject: [PATCH] MINOR: [C++][CI] Bump ccache max size When trying to analyze the compilation caching behavior on https://github.com/apache/arrow/pull/51255, I realized that our maximum ccache size of 1GB had become too small for some builds. The result is that a single build cannot be cached in its entirety, making identical rebuilds costlier than they should be. --- ci/scripts/ccache_setup.sh | 2 +- compose.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/ccache_setup.sh b/ci/scripts/ccache_setup.sh index 4006a63a7396..4a0f4020cd90 100755 --- a/ci/scripts/ccache_setup.sh +++ b/ci/scripts/ccache_setup.sh @@ -25,6 +25,6 @@ set -eux echo "CCACHE_COMPILERCHECK=content" echo "CCACHE_COMPRESS=1" echo "CCACHE_COMPRESSLEVEL=6" - echo "CCACHE_MAXSIZE=1G" + echo "CCACHE_MAXSIZE=1.5G" echo "CCACHE_NOHASHDIR=1" } >> "$GITHUB_ENV" diff --git a/compose.yaml b/compose.yaml index 5cf62a13aa20..28237427ff5a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -57,7 +57,7 @@ x-ccache: &ccache CCACHE_COMPILERCHECK: content CCACHE_COMPRESS: 1 CCACHE_COMPRESSLEVEL: 6 - CCACHE_MAXSIZE: 1G + CCACHE_MAXSIZE: 1.5G CCACHE_DIR: /ccache # Some builds (such as PyArrow) copy their source files in a temporary directory, # avoid hashing the current directory to make ccache useful on those builds.