summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-02-23 14:51:29 +0100
committerHolger Levsen <holger@layer-acht.org>2017-02-23 14:51:29 +0100
commit0b8d35160cbfcffec9036fa3f46d17405d894f75 (patch)
tree967b6f47c706cd618e48d257637aab384d2b1c87
parent4cf7192d463bd561c720f8c6f5ed256ca2eb6d8e (diff)
downloadjenkins.debian.net-0b8d35160cbfcffec9036fa3f46d17405d894f75.tar.xz
reproducible Debian: include number of configured+running jobs in performance stats
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_html_dashboard.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index 4527467b..c4f8d360 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -336,6 +336,14 @@ write_build_performance_stats() {
AGE_TESTING=$(query_db "SELECT CAST(greatest(max(oldest_reproducible), max(oldest_unreproducible), max(oldest_FTBFS)) AS INTEGER) FROM ${TABLE[2]} WHERE suite='testing' AND architecture='$ARCH' AND datum='$DATE'")
write_page "<td>$AGE_TESTING / $AGE_UNSTABLE / $AGE_EXPERIMENTAL days</td>"
done
+ write_page "</tr><tr><td class=\"left\">Build jobs configured</td>"
+ for ARCH in ${ARCHS} ; do
+ write_page "<td>$(ls /var/lib/jenkins/jobs/reproducible_builder_* -1d|grep -c $ARCH)</td>"
+ done
+ write_page "</tr><tr><td class=\"left\">Build jobs currently running</td>"
+ for ARCH in ${ARCHS} ; do
+ write_page "<td>$(ps fax|grep reproducible_build.sh|grep bash|grep -c $ARCH)</td>"
+ done
write_page "</tr><tr><td class=\"left\">average test duration (on $DATE)</td>"
for ARCH in ${ARCHS} ; do
RESULT=$(query_db "SELECT COALESCE(CAST(AVG(r.build_duration) AS INTEGER), 0) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.build_duration!='0' AND r.build_date LIKE '%$DATE%' AND s.architecture='$ARCH'")