[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] maintenance: cleanup sbuild directories for real now

Holger Levsen gitlab at salsa.debian.org
Mon May 3 11:12:00 BST 2021



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


Commits:
bdc4ca89 by Holger Levsen at 2021-05-03T12:11:36+02:00
maintenance: cleanup sbuild directories for real now

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

- - - - -


2 changed files:

- bin/reproducible_maintenance.sh
- bin/reproducible_system_health.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -490,8 +490,7 @@ if [ -d $dir ] ; then
 		echo "sbuild directories older than 7 days found, which will be deleted:"
 		echo "$OLDSTUFF"
 		echo
-		# do nothing first / for now
-		find "$dir" -mindepth 1 -maxdepth 1 -type d -mtime +6 -exec echo rm -r {} \;
+		find "$dir" -mindepth 1 -maxdepth 1 -type d -mtime +6 -exec rm -r {} \;
 		OLDSTUFF=$(find "$dir" -mindepth 1 -maxdepth 1 -type d -mtime +6 -exec ls -lad {} \;)
 		if [ ! -z "$OLDSTUFF" ]; then
 			echo


=====================================
bin/reproducible_system_health.sh
=====================================
@@ -177,6 +177,8 @@ for JOB_NAME in $(ls -1d reproducible_* | sort ) ; do
 			small_note "failed to delete schroots"
 		elif $(grep -q "Warning: Tried, but failed to delete these schroot sessions:" $LOG) ; then
 			small_note "failed to delete schroot sessions"
+		elif $(grep -q "Warning: Tried, but failed to delete these sbuild directories:" $LOG) ; then
+			small_note "failed to delete sbuild dirs"
 		elif $(grep -q "^UNKNOWN: Failed to get a version string from image /boot/vmlinuz" $LOG) ; then
 			small_note "/boot/vmlinuz* not readable for check-running-kernel"
 		elif $(grep -q "Warning: found reproducible_build.sh processes which have pid 1 as parent (and not sshd)" $LOG) ; then



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bdc4ca891b35690e8f90ff923cc789ad3c466b88
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/20210503/0dea38e4/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list