[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible: add new row to overview page to show the average test duration in unstable

Holger Levsen holger at moszumanska.debian.org
Fri May 22 13:12:40 UTC 2015


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 6a14bad82a9725d6896d6e011f17d4ef03c28f5f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri May 22 15:00:54 2015 +0200

    reproducible: add new row to overview page to show the average test duration in unstable
---
 bin/reproducible_html_graphs.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index e5bbac1..effb92d 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -565,6 +565,10 @@ create_main_stats_page() {
 	fi
 	RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(max(oldest_reproducible, oldest_unreproducible, oldest_FTBFS) AS INTEGER) FROM ${TABLE[2]} WHERE suite='${SUITE}' AND datum='$DATE'")
 	write_page "<tr><td>oldest build result in $SUITE</td><td>$RESULT days</td></tr>"
+	RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(AVG(r.build_duration) AS INTEGER) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE s.suite='${SUITE}' AND r.build_duration!='' AND r.build_duration!='0'")
+	MIN=$(echo $RESULT/60|bc)
+	SEC=$(echo "$RESULT-($MIN*60)"|bc)
+	write_page "<tr><td>average test duration in $SUITE</td><td>$MIN minutes, $SEC seconds</td></tr>"
 	write_page "</table>"
 	# other graphs
 	write_page "<p>"

-- 
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