[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible trbo system health check: improve notices appearance
Holger Levsen
gitlab at salsa.debian.org
Wed Jul 22 14:46:58 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
2ce70499 by Holger Levsen at 2020-07-22T15:44:00+02:00
reproducible trbo system health check: improve notices appearance
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
7c504518 by Holger Levsen at 2020-07-22T15:46:48+02:00
reproducible trbo system health check: improve naming of one identified cause
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_system_health.sh
Changes:
=====================================
bin/reproducible_system_health.sh
=====================================
@@ -35,6 +35,11 @@ IGNORED_JOBS=$(mktemp --tmpdir=$TMPDIR trbo-status-XXXXXXX)
BAD_JOBS=$(mktemp --tmpdir=$TMPDIR trbo-status-XXXXXXX)
FAILED_SUSPECTS=$(mktemp --tmpdir=$TMPDIR trbo-status-XXXXXXX)
UNSTABLE_SUSPECTS=$(mktemp --tmpdir=$TMPDIR trbo-status-XXXXXXX)
+
+small_note() {
+ NOTE="<small>$1</small>"
+}
+
# gather data
echo "$(date -u) - starting up."
cd /var/lib/jenkins/jobs/
@@ -115,15 +120,15 @@ for JOB in reproducible_* ; do
let SCORE+=1 || SCORE=0
# only show the most severe problem, don't aggregate them
if $(grep -q "failed Squid Web Proxy Server" $JOB/builds/$LAST/log) ; then
- NOTE=" (squid.service failed)"
+ small_note " (squid.service failed)"
elif $(grep -q "Kernel needs upgrade" $JOB/builds/$LAST/log) ; then
- NOTE=" (reboot needed for kernel upgrade)"
+ small_note " (reboot needed for kernel upgrade)"
elif $(grep -q "Warning, more than one kernel in /boot" $JOB/builds/$LAST/log) ; then
- NOTE=" (more than one kernel installed)"
+ small_note " (more than one kernel installed)"
elif $(grep -q "failed failed /etc/rc.local Compatibility" $JOB/builds/$LAST/log) ; then
- NOTE=" (rc-local.service loaded failed)"
+ small_note " (rc-local.service loaded failed)"
elif $(egrep -q "failed Session [0-9]+ of user jenkins" $JOB/builds/$LAST/log) ; then
- NOTE=" (session for user jenkins failed)"
+ small_note " (session for user jenkins failed)"
fi
if ! $SUSPECT ; then
echo " <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a>$NOTE</li>" >> ${UNSTABLE_JOBS}
@@ -133,13 +138,13 @@ for JOB in reproducible_* ; do
else
# only show the most severe problem, don't aggregate them
if $(egrep -q "Failed to connect to [.0-9]+ port 3128: Connection refused" $JOB/builds/$LAST/log) ; then
- NOTE=" (could not connect to https-proxy)"
- elif $(grep -q "^Host key verification failed." $JOB/builds/$LAST/log) ; then
- NOTE=" (host key verification failed)"
+ small_note " (could not connect to https-proxy)"
+ elif $(grep -q "seems to be down, sleeping" $JOB/builds/$LAST/log) ; then
+ small_note " (node seems to be down)"
elif $(tail -1 $JOB/builds/$LAST/log | grep -q "Finished: ABORTED") ; then
- NOTE=" (job was aborted)"
+ small_note " (job was aborted)"
elif $(grep -q "^make -r world: build failed. Please re-run" $JOB/builds/$LAST/log) ; then
- NOTE=" (make world failed)"
+ small_note " (make world failed)"
fi
case $JOB in
reproducible_maintenance_amd64_jenkins) MODIFIER=250 ;; # main node
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/98a4f0a6befabfe59e12060f93a23030497bbb65...7c5045189db2692069fa5d8d70d595432926c275
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/98a4f0a6befabfe59e12060f93a23030497bbb65...7c5045189db2692069fa5d8d70d595432926c275
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/20200722/f2568ec4/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list