[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible trbo system health check: notice proxy connection failures
Holger Levsen
gitlab at salsa.debian.org
Wed Jul 22 13:07:48 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
88987726 by Holger Levsen at 2020-07-22T14:07:34+02:00
reproducible trbo system health check: notice proxy connection failures
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_system_health.sh
Changes:
=====================================
bin/reproducible_system_health.sh
=====================================
@@ -106,13 +106,13 @@ for JOB in reproducible_* ; do
LAST=$(grep lastCompletedBuild $FILE|awk '{print $2}')
STABLE=$(grep lastStableBuild $FILE|awk '{print $2}')
UNSTABLE=$(grep lastUnstableBuild $FILE|awk '{print $2}')
+ NOTE=""
if [ "$LAST" = "$STABLE" ] ; then
echo " stable job: $JOB"
let SCORE+=3 || SCORE=0
elif [ "$LAST" = "$UNSTABLE" ] ; then
echo "unstable job: $JOB"
let SCORE+=1 || SCORE=0
- NOTE=""
# 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)"
@@ -131,6 +131,10 @@ for JOB in reproducible_* ; do
echo " <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a>$NOTE</li>" >> ${UNSTABLE_SUSPECTS}
fi
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)"
+ fi
case $JOB in
reproducible_maintenance_amd64_jenkins) MODIFIER=250 ;; # main node
reproducible_maintenance_amd64_profitbricks1) MODIFIER=500 ;; # proxy for other nodes
@@ -159,16 +163,16 @@ for JOB in reproducible_* ; do
elif [ $MODIFIER -eq 1 ] ; then
echo " failed job: $JOB"
if ! $SUSPECT ; then
- echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a></li>" >> ${FAILED_JOBS}
+ echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a>$NOTE</li>" >> ${FAILED_JOBS}
else
- echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a></li>" >> ${FAILED_SUSPECTS}
+ echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a>$NOTE</li>" >> ${FAILED_SUSPECTS}
fi
else
echo " failed job: $JOB - $MODIFIER"
if ! $SUSPECT ; then
- echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a> <em>($MODIFIER)</em></li>" >> ${FAILED_JOBS}
+ echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a>$NOTE <em>($MODIFIER)</em></li>" >> ${FAILED_JOBS}
else
- echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a> <em>($MODIFIER)</em></li>" >> ${FAILED_SUSPECTS}
+ echo "$MODIFIER| <li><a href=\"https://jenkins.debian.net/job/$JOB/\">$JOB</a>$NOTE <em>($MODIFIER)</em></li>" >> ${FAILED_SUSPECTS}
fi
fi
let SCORE-=$MODIFIER || SCORE=0
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/88987726e6437bf5e529fa4edb932de73ca87777
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/88987726e6437bf5e529fa4edb932de73ca87777
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/8ae7e208/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list