From ef2c09449b7711d25f2f6aa0c4a4199a02a4cd71 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Mon, 22 Sep 2025 10:08:48 -0700 Subject: [PATCH] [CI] Download lit timing files (#160138) This patch downloads the lit timing files from our GCS bucket into the local directory so that lit can execute them in a smarter order (biggest first to take advantage of parallelism). --- .ci/monolithic-linux.sh | 2 -- .ci/utils.sh | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh index 5abb8d72df02..c8f331204bd4 100755 --- a/.ci/monolithic-linux.sh +++ b/.ci/monolithic-linux.sh @@ -32,8 +32,6 @@ enable_cir="${6}" lit_args="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --use-unique-output-file-name --timeout=1200 --time-tests --succinct" start-group "CMake" -export PIP_BREAK_SYSTEM_PACKAGES=1 -pip install -q -r "${MONOREPO_ROOT}"/.ci/all_requirements.txt # Set the system llvm-symbolizer as preferred. export LLVM_SYMBOLIZER_PATH=`which llvm-symbolizer` diff --git a/.ci/utils.sh b/.ci/utils.sh index 2a3d2426b630..87afbbd6cdd3 100644 --- a/.ci/utils.sh +++ b/.ci/utils.sh @@ -52,3 +52,10 @@ function start-group { echo "Starting $groupname" fi } + +export PIP_BREAK_SYSTEM_PACKAGES=1 +pip install -q -r "${MONOREPO_ROOT}"/.ci/all_requirements.txt + +if [[ "$GITHUB_ACTIONS" != "" ]]; then + python .ci/cache_lit_timing_files.py download +fi