[Git][qa/jenkins.debian.net][master] reproducible Debian maintenance: show unignored zombies only

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Aug 22 13:45:40 BST 2023



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


Commits:
58a430a5 by Holger Levsen at 2023-08-22T14:45:23+02:00
reproducible Debian maintenance: show unignored zombies only

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

- - - - -


2 changed files:

- bin/djm
- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/djm
=====================================
@@ -226,7 +226,9 @@ verify_target_action_reason(){
 			;;
 		all)	TARGET="$(`dirname $0`/../nodes/list_nodes )"
 			;;
-		*)	TARGET="$(`dirname $0`/../nodes/list_nodes | grep -E $TARGET || true)"
+		*)	# it would be cool to support i15 = ionos15, same for osuosl and codethink...
+			# echo c16|sed 's#c\([0-9][0-9]*\)#codethink\1#g'
+			TARGET="$(`dirname $0`/../nodes/list_nodes | grep -E $TARGET || true)"
 			;;
 	esac
 	if [ -z "$TARGET" ] ; then


=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -745,12 +745,12 @@ done
 if [ -n "$PSCALL" ] ; then
 	# ignore some well known zombie processes
 	KNOWN_ZOMBIE_PROCESSES="(buf-ring.t|poll-race-mshot.t|ringbuf-read.t)"
-	if [ $(ps -F -p "$PSCALL" | grep -E -v $KNOWN_ZOMBIE_PROCESSES | wc -l) -lt 10 ] ; then
+	if [ $(ps -F -p "$PSCALL" | grep -E -v "$KNOWN_ZOMBIE_PROCESSES" | wc -l) -lt 10 ] ; then
 		echo "Info: ignoring less than ten processes which should not be there and which could not be killed, because those are probably just a few harmless zombies, which can only be removed by rebooting...."
 	else
 		 echo "Warning: found more than ten processes which should not be there and which could not be killed. Please investigate and reboot or ignore them...:"
 	fi
-	ps -F -p "$PSCALL"
+	ps -F -p "$PSCALL" | grep -E -v "$KNOWN_ZOMBIE_PROCESSES"
 	echo
 fi
 



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/58a430a50f4779581e469ff3effcd9ed0c15cbc1
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/20230822/603c19bb/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list