[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: use thumbnails also on the pkg sets pages

Holger Levsen holger at moszumanska.debian.org
Fri Mar 13 09:40:49 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 7fcd9f7cb3bf46ad0b977906b9e8da0c58440928
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Mar 13 10:38:43 2015 +0100

    reproducible: use thumbnails also on the pkg sets pages
---
 bin/reproducible_html_graphs.sh | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 8cb64e2..57144dc 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -354,7 +354,7 @@ create_suite_stats_page() {
 	echo "$(date) - starting to write $PAGE page."
 	write_page_header $VIEW "Overview of reproducible builds for packages in $SUITE"
 	if [ $(echo $PERCENT_TOTAL/1|bc) -lt 98 ] ; then
-		write_page "<p>$COUNT_TOTAL packages have been attempted to be build so far, that's $PERCENT_TOTAL% of $AMOUNT source packages in Debian $SUITE currently.</p>"
+		write_page "<p>$COUNT_TOTAL packages have been attempted to be build so far, that's $PERCENT_TOTAL% of $AMOUNT source packages in Debian $SUITE.</p>"
 	fi
 	write_page "<p>"
 	set_icon reproducible
@@ -409,6 +409,11 @@ create_pkg_sets_page() {
 	done
 	write_page "</ul>"
 	for i in $(seq 1 ${#META_PKGSET[@]}) ; do
+		THUMB=${TABLE[6]}_${META_PKGSET[$i]}-thumbnail.png
+		LABEL="Reproducibility status for packages in $SUITE/$ARCH from '${META_PKGSET[$i]}'"
+		write_page "<a href=\"/$SUITE/$ARCH/index_pkg_sets.html#${META_PKGSET[$i]}\"><img src=\"/userContent/$SUITE/$ARCH/$THUMB\" class=\"metaoverview\" alt=\"$LABEL\"></a>"
+	done
+	for i in $(seq 1 ${#META_PKGSET[@]}) ; do
 		write_page "<hr /><a name=\"${META_PKGSET[$i]}\"></a>"
 		META_RESULT=true
 		gather_meta_stats $i	# FIXME: this ignores unknown packages...
@@ -495,7 +500,11 @@ create_main_stats_page() {
 	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</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>"
+		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

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