[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible trbo system health check: polish status page

Holger Levsen gitlab at salsa.debian.org
Sun Aug 2 00:33:54 BST 2020



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


Commits:
0ade5ebf by Holger Levsen at 2020-08-02T01:33:43+02:00
reproducible trbo system health check: polish status page

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

- - - - -


1 changed file:

- bin/reproducible_system_health.sh


Changes:

=====================================
bin/reproducible_system_health.sh
=====================================
@@ -247,10 +247,15 @@ if [ $SUSPICIOUS -gt 0 ] ; then
 fi
 
 cat > $HEALTH_FILE.html <<- EOF
-<html><meta http-equiv="refresh" content="300"><head></head><body style="background-color: rgb($RED, $GREEN, 0);">
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="refresh" content="300">
+</head>
+<body style="background-color: rgb($RED, $GREEN, 0);">
  <h1>tests.reproducible-builds.org status summary view</h1>
  <p>
-  Status: <a href="$REPRODUCIBLE_URL/$(basename $HEALTH_FILE)">$STATUS</a> (an integer value between 0 and 255)
+  Status: <a href="$REPRODUCIBLE_URL/$(basename $HEALTH_FILE)">$STATUS</a> (an integer between 0 and 255)
  </p>
  <p>
   Score: $SCORE
@@ -282,9 +287,9 @@ conditional_paragraph ${UNSTABLE_JOBS} "Unstable jobs" "$(cat ${UNSTABLE_JOBS})"
 conditional_paragraph ${FAILED_SUSPECTS} "Failed jobs on nodes automatically marked down by jenkins" "$(cat ${FAILED_SUSPECTS} | sort -t '|' -n -r | cut -d '|' -f2- | sort)"
 conditional_paragraph ${UNSTABLE_SUSPECTS} "Unstable jobs on nodes automatically marked down by jenkins" "$(cat ${UNSTABLE_SUSPECTS})"
 write2healthfile "<hr><p>A stable jobs adds 3 points to the score, an unstable job adds 1 and a failed job substracts something between 1 and 500 (indicated in brackets after the job name if not equal 1), depending on the importance of the job for the setup. Ignored jobs are not counted at all. Finally the score is divided by three times the number of considered jobs and this gets multiplied with 255 to get a status between 0 and 255.</p><hr>"
-conditional_paragraph ${IGNORED_JOBS} "Ignored jobs (because these nodes are known and <a href=\"https://salsa.debian.org/qa/jenkins.debian.net/-/blob/master/jenkins-home/offline_nodes\">documented</a> to be offline)" "$(cat ${IGNORED_JOBS})"
-conditional_paragraph ${KNOWN_BAD_JOBS} "Ignored jobs (because they are known to be non-funtional)" "$(cat ${KNOWN_BAD_JOBS})"
-write2healthfile "<hr><p><small>last updated: $(date -u) by the <a href=\"https://jenkins.debian.net/job/reproducible_system_health/\">reproducible_system_health</a> job on jenkins.debian.net.</small></p>"
+conditional_paragraph ${IGNORED_JOBS} "Ignored jobs, because these nodes the are running on are <a href=\"https://salsa.debian.org/qa/jenkins.debian.net/-/blob/master/jenkins-home/offline_nodes\">documented</a> to be offline" "$(cat ${IGNORED_JOBS})"
+conditional_paragraph ${KNOWN_BAD_JOBS} "Ignored jobs, because they are known to be non-funtional" "$(cat ${KNOWN_BAD_JOBS})"
+write2healthfile "<hr><p><small>This page was last updated on $(date -u) by the <a href=\"https://jenkins.debian.net/job/reproducible_system_health/\">reproducible_system_health</a> job.</small></p>"
 write2healthfile "</body></html>"
 echo "$(date -u) - $(basename $HEALTH_FILE).html updated, visible at $REPRODUCIBLE_URL/$(basename $HEALTH_FILE).html."
 echo "$(date -u) - the end."



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/0ade5ebf8bb1120ed8252dd72193be3feeb3f568
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/20200801/0372d96c/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list