From 25837cfb86b57f0814da599fdf37cf8bc423a6ce Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 1 Apr 2021 15:02:26 -0700 Subject: [PATCH] CI: clear stale build cache --- selfdrive/test/setup_device_ci.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/test/setup_device_ci.sh b/selfdrive/test/setup_device_ci.sh index 435a6af4..42f97be9 100755 --- a/selfdrive/test/setup_device_ci.sh +++ b/selfdrive/test/setup_device_ci.sh @@ -26,8 +26,8 @@ if [ ! -d "$SOURCE_DIR" ]; then git clone --depth 1 https://github.com/commaai/openpilot.git "$SOURCE_DIR" fi -# clear scons cache dirs that haven't been written to in one day -#cd /tmp && find -name 'scons_cache_*' -type d -maxdepth 1 -mtime +1 -exec rm -rf '{}' \; +# clear stale build cache +find /tmp/scons_cache/* -mtime +2 -exec ls '{}' \; # this can get really big on the CI devices rm -rf /data/core