[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: improve layout

Holger Levsen holger at moszumanska.debian.org
Sat May 23 17:54:29 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 095d49297b48ce58d2f5590eaf9055646b4b151f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat May 23 19:54:26 2015 +0200

    reproducible: improve layout
---
 bin/reproducible_html_graphs.sh | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index ecb0ba3..1b729fd 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -520,8 +520,20 @@ create_main_stats_page() {
 	PAGE=index_${VIEW}.html
 	echo "$(date) - starting to write $PAGE page."
 	write_page_header $VIEW "Overview of various statistics about reproducible builds"
-	# write suite graphs
+	# write suite table
 	write_page "<p>"
+	write_page "<table class=\"main\"><tr><th>suite</th><th>all sources packages</th><th>reproducible packages</th><th>unreproducible packages</th><th>packages failing to build</th><th>other packages</th></tr>"
+	for SUITE in $SUITES ; do
+		gather_suite_stats
+		write_page "<tr><td>$SUITE</td><td>$AMOUNT"
+		if [ $(echo $PERCENT_TOTAL/1|bc) -lt 98 ] ; then
+			write_page "<span style=\"font-size:0.8em;\">($PERCENT_TOTAL% tested)</span>"
+		fi
+		write_page "</td><td>$COUNT_GOOD / $PERCENT_GOOD%</td><td>$COUNT_BAD / $PERCENT_BAD%</td><td>$COUNT_UGLY / $PERCENT_UGLY%</td><td>$COUNT_OTHER / $PERCENT_OTHER%</td></tr>"
+	done
+        write_page "</table>"
+	# write suite graphs
+	write_page "</p><p style=\"clear:both;\">"
 	for SUITE in $SUITES ; do
 		write_page " <a href=\"/$SUITE\"><img src=\"/userContent/$SUITE/${TABLE[0]}.png\" class=\"overview\" alt=\"$SUITE stats\"></a>"
 	done
@@ -529,7 +541,7 @@ create_main_stats_page() {
 	# write meta pkg graphs per suite
 	for SUITE in $SUITES ; do
 		if [ "$SUITE" != "unstable" ] ; then
-			# only show pkg sets from unstable for now
+			# only show pkg sets from unstable
 			continue
 		fi
 		for i in $(seq 1 ${#META_PKGSET[@]}) ; do
@@ -539,17 +551,6 @@ create_main_stats_page() {
 		done
 	done
 	write_page "</p><p>"
-	# write suite table
-	write_page "<table class=\"main\"><tr><th>suite</th><th>all sources packages</th><th>reproducible packages</th><th>unreproducible packages</th><th>packages failing to build</th><th>other packages</th></tr>"
-	for SUITE in $SUITES ; do
-		gather_suite_stats
-		write_page "<tr><td>$SUITE</td><td>$AMOUNT"
-		if [ $(echo $PERCENT_TOTAL/1|bc) -lt 98 ] ; then
-			write_page "<span style=\"font-size:0.8em;\">($PERCENT_TOTAL% tested)</span>"
-		fi
-		write_page "</td><td>$COUNT_GOOD / $PERCENT_GOOD%</td><td>$COUNT_BAD / $PERCENT_BAD%</td><td>$COUNT_UGLY / $PERCENT_UGLY%</td><td>$COUNT_OTHER / $PERCENT_OTHER%</td></tr>"
-	done
-        write_page "</table>"
 	# write inventory table
 	write_page "<table class=\"main\"><tr><th> </th><th>amount</th></tr>"
 	write_page "<tr><td>identified distinct issues</td><td>$ISSUES</td></tr>"

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