[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible: suite stats are also arch specific. 2 fixmes down.

Holger Levsen holger at moszumanska.debian.org
Fri Mar 6 10:16:34 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 b75e5df21cdfb517619e1dec8988f3e634028270
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Mar 6 10:59:34 2015 +0100

    reproducible: suite stats are also arch specific. 2 fixmes down.
---
 bin/reproducible_html_graphs.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 213a6bd..369522a 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -68,10 +68,12 @@ if [ -z $RESULT ] ; then
 	sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[2]} VALUES (\"$DATE\", \"$SUITE\", \"$DIFFG\", \"$DIFFB\", \"$DIFFU\")"
 	# we do 3 later and 6 is special anyway...
 	for i in 0 1 2 4 5 ; do
+		PREFIX=""
 		# force regeneration of the image if it exists
-		# FIXME: 0 needs $SUITE, 1 2 4 5 are fine
-		# FIXME: some other queries above need *not* to refer to $SUITE... but rather $SUITES
-		[ ! -f /var/lib/jenkins/userContent/${TABLE[$i]}.png ] || touch -d "$DATE 00:00" /var/lib/jenkins/userContent/${TABLE[$i]}.png
+		if [ $i -eq 0 ] ; then
+			PREFIX=$SUITE
+		fi
+		[ ! -f /var/lib/jenkins/userContent/$PREFIX/${TABLE[$i]}.png ] || touch -d "$DATE 00:00" /var/lib/jenkins/userContent/$PREFIX/${TABLE[$i]}.png
 	done
 fi
 
@@ -288,7 +290,7 @@ fi
 write_page "<p>"
 set_icon reproducible
 write_icon
-write_page "$COUNT_GOOD packages ($PERCENT_GOOD%) successfully built reproducibly in $SUITE."
+write_page "$COUNT_GOOD packages ($PERCENT_GOOD%) successfully built reproducibly in $SUITE/$ARCH."
 set_icon unreproducible
 write_icon
 write_page "$COUNT_BAD packages ($PERCENT_BAD%) failed to built reproducibly."

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