From 77c6891eb21c8fa5cbffe22f75d9e54fbe10b797 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 28 Jun 2017 11:43:40 +0200 Subject: reproducible Debian: check for (known) zombie jobs and report them Signed-off-by: Holger Levsen --- bin/reproducible_maintenance.sh | 1 + bin/reproducible_node_health_check.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 4543441d..d93676c9 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -336,6 +336,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then echo "Removed $OLDSTUFF jenkins html logs." echo fi + fi # find+terminate processes which should not be there diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh index 189bc984..16466822 100755 --- a/bin/reproducible_node_health_check.sh +++ b/bin/reproducible_node_health_check.sh @@ -136,6 +136,25 @@ if [ -z "$HAVEGED" ] ; then exit 1 fi +# +# checks only for the main node +# +if [ "$HOSTNAME" = "$MAINNODE" ] ; then + # + # sometimes deleted jobs come back as zombies + # and we dont know why and when that happens, + # so just report those zombies here. + # + ZOMBIES=$(ls -1d var/lib/jenkins/jobs/ | egrep '(reproducible_builder_amd64|reproducible_builder_i386|reproducible_builder_armhf|reproducible_builder_arm64|chroot-installation_wheezy)') + if [ ! -z "$ZOMBIES" ] ; then + echo "Warning, rise of the jenkins job zombies has started again, these jobs should not exist:" + echo -e "$ZOMBIES" + DIRTY=TRUE + echo + fi +fi + + # # finally # -- cgit v1.2.3-54-g00ecf