[Git][qa/jenkins.debian.net][master] rdn: commit djm-rebuildctlwatch despite still not having it refactored back into djm...

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Aug 21 21:26:25 BST 2025



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


Commits:
9e5cf68c by Holger Levsen at 2025-08-21T22:26:18+02:00
rdn: commit djm-rebuildctlwatch despite still not having it refactored back into djm...

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

- - - - -


1 changed file:

- + bin/djm-rebuildctlwatch


Changes:

=====================================
bin/djm-rebuildctlwatch
=====================================
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# Copyright 2025 Holger Levsen (holger at layer-acht.org)
+# released under the GPLv2
+
+set -e
+
+#
+# TODO: refactor into bin/djm
+#
+
+# global variables
+PORT=0
+BG=""
+
+#
+# choose correct port
+#
+set_globals_for_arch() {
+	REBUILDCTL=/usr/bin/rebuildctl
+	case $1 in
+		all)		PORT=8489 ;;
+		amd64)		PORT=8484 ;;
+		amd64-pull184)	PORT=8494
+				REBUILDCTL=/usr/local/usr/bin/rebuildctl
+				;;
+		arm64)		PORT=8486 ;;
+		armel)		PORT=8491 ;;
+		armhf)		PORT=8487 ;;
+		i386)		PORT=8485 ;;
+		riscv64)	PORT=8488 ;;
+		ppc64el)	PORT=8490 ;;
+		*)		exit 1 ;;
+	esac
+}
+set_arch_color() {
+	#
+	# define terminal background color based on architecture
+	# https://critical.ch/xterm/ has a nice overview
+	#
+	case "$1" in
+		*all*)			BG=turquoise ;;
+		*amd64*)		BG=lightgreen ;;
+		*i386*)			BG=lightblue ;;
+		*arm64*)		BG=orange ;;
+		*armel*)		BG=yellow ;;
+		*armhf*)		BG=gold ;;
+		*riscv64*)		BG=orchid1 ;;
+		*ppc64el*)		BG=brown ;;
+		*)			BG=grey77 ;;
+	esac
+}
+
+
+for ARCH in all amd64 amd64-pull184 arm64 armel armhf i386 ppc64el riscv64 ; do
+	set_globals_for_arch $ARCH
+	set_arch_color $ARCH
+	COMMAND="watch -n 60 '$REBUILDCTL -H http://127.0.0.1:$PORT/ queue ls -C |sort -rk6'"
+	xterm -T "rebuildctl $ARCH $PORT" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "ssh -t osuosl5-amd64.debian.net \"$COMMAND\"" &
+	sleep 0.5
+done
+



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/9e5cf68c45a6c8bbf59dd2c5597a94b15538473f
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/20250821/f012a350/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list