[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: don't show graphs with oldest stretch builds on performance stats page anymore

Holger Levsen gitlab at salsa.debian.org
Tue Oct 2 10:10:44 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
f0dc2d25 by Holger Levsen at 2018-10-02T09:10:33Z
reproducible Debian: don't show graphs with oldest stretch builds on performance stats page anymore

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- bin/reproducible_html_dashboard.sh
- userContent/reproducible/static/style.css


Changes:

=====================================
bin/reproducible_html_dashboard.sh
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 
-# Copyright 2014-2017 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2018 Holger Levsen <holger at layer-acht.org>
 #         © 2015 Mattia Rizzolo <mattia at mapreri.org>
 # released under the GPLv=2
 
@@ -21,6 +21,7 @@ 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"
+COMMA_VAR=""
 
 # variables related to the stats we update
 FIELDS[0]="datum, reproducible, FTBR, FTBFS, other, untested"
@@ -657,6 +658,15 @@ create_bugs_page() {
 	publish_page debian
 }
 
+
+comma_comma_and(){
+	case $1 in
+		amd64|i386)	COMMA_VAR=", " ;;
+		arm64)		COMMA_VAR=" and " ;;
+		*)		COMMA_VAR="" ;;
+	esac
+}
+
 #
 # create performance page
 #
@@ -682,14 +692,26 @@ create_performance_page() {
 	write_page "</p><p style=\"clear:both;\">"
 	for ARCH in ${ARCHS} ; do
 		for SUITE in $SUITES ; do
-			write_page " <a href=\"/debian/$SUITE/$ARCH/${TABLE[2]}.png\"><img src=\"/debian/$SUITE/$ARCH/${TABLE[2]}.png\" class=\"overview\" alt=\"age of oldest reproducible build result in $SUITE/$ARCH\"></a>"
+			if [ $SUITE = "stretch" ] ; then
+				continue
+			else
+				write_page " <a href=\"/debian/$SUITE/$ARCH/${TABLE[2]}.png\"><img src=\"/debian/$SUITE/$ARCH/${TABLE[2]}.png\" class=\"tripleview\" alt=\"age of oldest reproducible build result in $SUITE/$ARCH\"></a>"
+			fi
 		done
 		write_page "</p><p style=\"clear:both;\">"
 	done
 	# the end
-	write_page "Daily <a href=\"https://jenkins.debian.net/view/reproducible/job/reproducible_html_nodes_info/lastBuild/console\">individual build node performance stats</a> are available as well as oldest results for"
+	write_page "Daily <a href=\"https://jenkins.debian.net/view/reproducible/job/reproducible_html_nodes_info/lastBuild/console\">individual build node performance stats</a> are available as well as oldest results for "
+	for ARCH in ${ARCHS} ; do
+		comma_comma_and ${ARCH}
+		write_page "<a href=\"/debian/index_${ARCH}_oldies.html\">$ARCH</a>$COMMA_VAR"
+	done
+	write_page ".</p>"
+	write_page "<p>And finally there are also graphs about the oldest build in stretch for "
+	SUITE="stretch"
 	for ARCH in ${ARCHS} ; do
-		write_page " <a href=\"/debian/index_${ARCH}_oldies.html\">$ARCH</a>"
+		comma_comma_and ${ARCH}
+		write_page "<a href=\"/debian/$SUITE/$ARCH/${TABLE[2]}.png\">$ARCH</a>$COMMA_VAR"
 	done
 	write_page ".</p>"
 	write_page_footer


=====================================
userContent/reproducible/static/style.css
=====================================
@@ -39,6 +39,11 @@ img.overview {
 	max-width: 24%;
 }
 
+img.tripleview {
+	max-width: 32%;
+}
+
+
 img.metaoverview {
 	max-width: 5.6%;
 }



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f0dc2d25b8d5de5dd2f66bc969a614b0c5cd1539

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f0dc2d25b8d5de5dd2f66bc969a614b0c5cd1539
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181002/4b453ca0/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list