[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible OpenWrt: cleanup /srv/workspace/chroots/rbuild-openwrt-build-* on reboots
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Jun 29 16:03:14 BST 2023
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
44acf0c1 by Holger Levsen at 2023-06-29T16:58:21+02:00
reproducible OpenWrt: cleanup /srv/workspace/chroots/rbuild-openwrt-build-* on reboots
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
0e0f3725 by Holger Levsen at 2023-06-29T17:02:54+02:00
reproducible OpenWrt system health: detect failure to unmount build chroot
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/reproducible_system_health.sh
- hosts/common/etc/rc.local
Changes:
=====================================
bin/reproducible_system_health.sh
=====================================
@@ -289,6 +289,8 @@ for JOB_NAME in $(ls -1d reproducible_* | sort ) ; do
small_note "d-i cdrom build failed."
elif $(grep -q "^E: Sub-process /usr/bin/dpkg returned an error code" $LOG) ; then
small_note "dpkg failed"
+ elif $(grep -E -q "^umount: /.*: target is busy.$" $LOG) ; then
+ small_note "umount failed, target is busy"
elif $(grep -q "^SSH EXIT CODE:" $LOG) ; then
if $(grep -q "^Timeout, server .*.debian.net not responding." $LOG) || \
$(grep -q "^packet_write_wait: Connection to .*: Broken pipe" $LOG) ; then
=====================================
hosts/common/etc/rc.local
=====================================
@@ -44,6 +44,10 @@ fixup_pbuilder_lockfiles() {
rm -f /var/cache/pbuilder/*.tgz.tmp
}
+cleanup_srv_workspace() {
+ rm -rf --one-file-system /srv/workspace/chroots/rbuild-openwrt-build-*
+}
+
###
### main
###
@@ -60,9 +64,10 @@ fixup_shm
iptables -I INPUT -p udp --dport 111 -j DROP
#
-# fixup pbuilder lockfiles if needed
+# clean up left-overs which make no sense after a reboot
#
fixup_pbuilder_lockfiles
+cleanup_srv_workspace_chroots
#
# notify jenkins reboots on irc
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/f1da55dfb4068273d13adacd496bd72fe425f842...0e0f3725dc43d9b226462de26f1f8b4f815c2c52
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/f1da55dfb4068273d13adacd496bd72fe425f842...0e0f3725dc43d9b226462de26f1f8b4f815c2c52
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/20230629/09563e59/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list