[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: try to automatically fixup spurious pbuilder failures
Holger Levsen
gitlab at salsa.debian.org
Sat Aug 31 15:17:36 BST 2019
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
82bee189 by Holger Levsen at 2019-08-31T14:17:02Z
reproducible Debian: try to automatically fixup spurious pbuilder failures
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_node_health_check.sh
Changes:
=====================================
bin/reproducible_node_health_check.sh
=====================================
@@ -157,11 +157,17 @@ fi
#
echo "$(date -u) - checking whether all services are running fine..."
if ! systemctl is-system-running > /dev/null; then
- systemctl status|head -5
- echo "Warning: systemd is reporting errors:"
- systemctl list-units --state=error,failed
- echo "Manual cleanup needed. If only old sessions are gone, use 'systemctl reset-failed' to cleanup state. Else probably some services actually need a restart."
- DIRTY=true
+ if [ -n "$(systemctl list-units --state=error,failed | grep pbuilder_build)" ] ; then
+ echo "$(date -u) - resetting failed services (once) as some failed pbuilder_build have been found..."
+ sudo systemctl reset-failed
+ fi
+ if ! systemctl is-system-running > /dev/null; then
+ systemctl status|head -5
+ echo "Warning: systemd is reporting errors:"
+ systemctl list-units --state=error,failed
+ echo "Manual cleanup needed. If only old sessions are gone, use 'systemctl reset-failed' to cleanup state. Else probably some services actually need a restart."
+ DIRTY=true
+ fi
fi
# checks only for the main node
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/82bee189d2653a275fc2fef4fcef26df08f5b7b6
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/82bee189d2653a275fc2fef4fcef26df08f5b7b6
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/20190831/20fccf63/attachment.html>
More information about the Qa-jenkins-scm
mailing list