[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible trbo system health check: polish output and some comments
Holger Levsen
gitlab at salsa.debian.org
Mon Aug 31 13:14:32 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
382452ec by Holger Levsen at 2020-08-31T14:14:20+02:00
reproducible trbo system health check: polish output and some comments
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/jenkins-shell-monitor.sh
Changes:
=====================================
bin/jenkins-shell-monitor.sh
=====================================
@@ -12,12 +12,13 @@
# which made me make https://tests.reproducible-builds.org/trbo.status.html
# first and then this!
-# initialize internal variables
-SEQ1=$(seq 1 10)
-SEQ2=$(seq 1 60)
-PSFAX=$(mktemp --tmpdir=$TMPDIR jenkins-shell-monitor-XXXXXXX)
+# initialize internal loop variables
+SEQ1=$(seq 1 10) # outer loop, measured in minutes
+SEQ2=$(seq 1 60) # because the inner loop is measured in seconds
-# prepare cleaning up
+# prepare a trap for cleaning up
+# using a global tempfile
+PSFAX=$(mktemp --tmpdir=$TMPDIR jenkins-shell-monitor-XXXXXXX)
cleanup_all() {
trap - INT TERM EXIT
rm -vf $PSFAX
@@ -48,7 +49,9 @@ main_loop() {
echo "relevant lines from ~jenkins/offline_nodes:"
grep -A 2342 Also ~jenkins/offline_nodes
echo
- echo "##########################################################################"
+ for j in $SEQ2 ; do
+ echo -n "#"
+ echo
echo
figlet $(cat ~/userContent/reproducible/trbo.status)
echo " ^^^ trbo status"
@@ -73,8 +76,8 @@ main_loop() {
echo
free -h | cut -b1-47
echo
- echo "some info from $SOME_AGE"
- echo -n "some info from $(date -u) "
+ echo "some information was gathered at $SOME_AGE."
+ echo "some other information at around $(date -u)."
for j in $SEQ2 ; do
echo -n "."
sleep 1
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/382452ecdecafdf527c8cff4a58e81af9450101c
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/382452ecdecafdf527c8cff4a58e81af9450101c
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/20200831/7d729f46/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list