[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: also show amount of packages build in the last 24h

Holger Levsen holger at moszumanska.debian.org
Thu Feb 4 00:18:20 UTC 2016


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 196e2d4ddb6441207bfbdedac527def09b6de609
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Feb 4 01:17:26 2016 +0100

    reproducible debian: also show amount of packages build in the last 24h
---
 bin/reproducible_html_dashboard.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index c6dd285..85dc787 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -15,8 +15,8 @@ common_init "$@"
 # init some variables
 #
 # we only do stats up until yesterday... we also could do today too but not update the db yet...
-DATE=$(date -d "1 day ago" '+%Y-%m-%d')
-FORCE_DATE=$(date -d "3 days ago" '+%Y-%m-%d')
+DATE=$(date -u -d "1 day ago" '+%Y-%m-%d')
+FORCE_DATE=$(date -u -d "3 days ago" '+%Y-%m-%d')
 DUMMY_FILE=$(mktemp -t reproducible-dashboard-XXXXXXXX)
 touch -d "$(date '+%Y-%m-%d') 00:00 UTC" $DUMMY_FILE
 NOTES_GIT_PATH="/var/lib/jenkins/jobs/reproducible_html_notes/workspace"
@@ -327,7 +327,12 @@ write_build_performance_stats() {
 		RESULT="$(echo $RESULT/$TIMESPAN_RAW|bc)"
 		write_page "<td>$RESULT</td>"
 	done
-write_page "</tr></table>"
+	write_page "</tr><tr><td>packages tested in the last 24h</td>"
+	for ARCH in ${ARCHS} ; do
+		RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT COUNT(r.build_date) FROM stats_build AS r WHERE r.build_date > datetime('$(date -u '+%Y-%m-%d')', '-24 hours') AND r.architecture='$ARCH'")
+		write_page "<td>$RESULT</td>"
+	done
+	write_page "</tr></table>"
 }
 
 #

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