[llvm] [CI] Drop CLEAR_CACHE Support in monolithic-* scripts (PR #149193)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 14:48:14 PDT 2025


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/149193

This patch drops support for clearing the cache with the CLEAR_CACHE
environment variable. This is an artifact of the old infrastructure as
we now do not persist the cache across builds, instead redownloading the
cache directory everytime. This makes the scripts slightly simpler as we
are no longer supporting unneeded functionality.


>From c25ee07c0c95d473c848abc06ade876337a833d1 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 16 Jul 2025 21:48:03 +0000
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4
---
 .ci/monolithic-linux.sh   | 5 -----
 .ci/monolithic-windows.sh | 5 -----
 2 files changed, 10 deletions(-)

diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index 8d1faab13986c..303b430c28e3f 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -23,11 +23,6 @@ rm -rf "${BUILD_DIR}"
 
 ccache --zero-stats
 
-if [[ -n "${CLEAR_CACHE:-}" ]]; then
-  echo "clearing cache"
-  ccache --clear
-fi
-
 mkdir -p artifacts/reproducers
 
 # Make sure any clang reproducers will end up as artifacts.
diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh
index 176350fac604c..50a741677d734 100755
--- a/.ci/monolithic-windows.sh
+++ b/.ci/monolithic-windows.sh
@@ -21,11 +21,6 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
 
 rm -rf "${BUILD_DIR}"
 
-if [[ -n "${CLEAR_CACHE:-}" ]]; then
-  echo "clearing sccache"
-  rm -rf "$SCCACHE_DIR"
-fi
-
 sccache --zero-stats
 function at-exit {
   retcode=$?



More information about the llvm-commits mailing list