[Git][qa/jenkins.debian.net][master] rdn: also cleanup empty files from cache

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon May 12 14:46:07 BST 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
79fd109a by Holger Levsen at 2025-05-12T15:45:57+02:00
rdn: also cleanup empty files from cache

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/debrebuild_cache_limiter.sh


Changes:

=====================================
bin/debrebuild_cache_limiter.sh
=====================================
@@ -11,6 +11,10 @@ if [ ! -d $CACHE ] ; then
 	exit 0
 fi
 
+# delete empty files from cache first
+find $CACHE -type f -size 0 -exec rm {} \;
+
+# delete old files from cache if cache size is too big
 LIMIT=100
 case $HOSTNAME in
 	codethink*)		LIMIT=200  ;;
@@ -20,9 +24,7 @@ case $HOSTNAME in
 	riscv64*)		LIMIT=180 ;;
 	*)			;;
 esac
-
 SIZE=$(du -sh $CACHE | grep G | cut -d 'G' -f 1||echo 0)
-
 if [ $SIZE -gt $LIMIT ] ; then
 	echo "$CACHE is still ${SIZE}G, reducing further."
 	# delete 1000 files which have old access times



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/79fd109a9b980f1b8d315ce7c47d22f2cbd0382e

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/79fd109a9b980f1b8d315ce7c47d22f2cbd0382e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250512/2172b2e7/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list