[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: include number of configured+running jobs in performance stats
Holger Levsen
holger at layer-acht.org
Thu Feb 23 13:51:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 0b8d35160cbfcffec9036fa3f46d17405d894f75
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Feb 23 14:51:29 2017 +0100
reproducible Debian: include number of configured+running jobs in performance stats
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_html_dashboard.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index 4527467..c4f8d36 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'")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list