[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible Debian: show bugs filed on a dedicated page (thanks jmw for the idea)

Holger Levsen holger at layer-acht.org
Mon Nov 14 10:55:34 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 38408a7c7a56c7baec8006bee0bf8ba3e9cca368
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Nov 14 11:55:22 2016 +0100

    reproducible Debian: show bugs filed on a dedicated page (thanks jmw for the idea)
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_common.sh                         |  2 +-
 bin/reproducible_html_dashboard.sh                 | 45 +++++++++++++++++-----
 .../reproducible/main_navigation.mustache          |  3 ++
 3 files changed, 39 insertions(+), 11 deletions(-)

diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index ea88354..d41759a 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -205,7 +205,7 @@ write_page_header() {
 	fi
 
 	# Used to highlight the link for the current page
-	if [ "$1" = "dashboard" ] || [ "$1" = "performance" ] || [ "$1" = "repositories" ] || [ "$1" = "variations" ] || [ "$1" = "suite_arch_stats" ]; then
+	if [ "$1" = "dashboard" ] || [ "$1" = "performance" ] || [ "$1" = "repositories" ] || [ "$1" = "variations" ] || [ "$1" = "suite_arch_stats" ] || [ "$1" = "bugs" ] ; then
 		displayed_page="\"$1\": \"true\""
 	else
 		displayed_page=''
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index 7132aa6..7207524 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -463,6 +463,14 @@ write_meta_pkg_graphs_links () {
 	write_page "</center></p>"
 }
 
+write_global_graph() {
+	write_page " <a href=\"/debian/${TABLE[$i]}.png\"><img src=\"/debian/${TABLE[$i]}.png\" class="halfview" alt=\"${MAINLABEL[$i]}\"></a>"
+	# redo pngs once a day
+	if [ ! -f $DEBIAN_BASE/${TABLE[$i]}.png ] || [ $DUMMY_FILE -nt $DEBIAN_BASE/${TABLE[$i]}.png ] ; then
+		create_png_from_table $i ${TABLE[$i]}.png
+	fi
+}
+
 #
 # create dashboard page
 #
@@ -561,16 +569,10 @@ create_dashboard_page() {
 		write_page "<tr><td class=\"left\">  - which need to be build on some archs</td><td>$(echo $RESULT)</td><td colspan=\"$AC\"></td></tr>"
 	fi
 	write_page "</table>"
-	# write bugs with usertags table
-	write_usertag_table
-	write_page "</p><p style=\"clear:both;\">"
-	# do other global graphs
-	for i in 8 9 3 7 4 5 ; do
-		write_page " <a href=\"/debian/${TABLE[$i]}.png\"><img src=\"/debian/${TABLE[$i]}.png\" class="halfview" alt=\"${MAINLABEL[$i]}\"></a>"
-		# redo pngs once a day
-		if [ ! -f $DEBIAN_BASE/${TABLE[$i]}.png ] || [ $DUMMY_FILE -nt $DEBIAN_BASE/${TABLE[$i]}.png ] ; then
-			create_png_from_table $i ${TABLE[$i]}.png
-		fi
+	write_page "<p style=\"clear:both;\">"
+	# show issue graphs
+	for i in 4 5 ; do
+		write_global_graph
 	done
 	write_page "</p>"
 	# the end
@@ -580,6 +582,28 @@ create_dashboard_page() {
 }
 
 #
+# create bugs page
+#
+create_bugs_page() {
+	VIEW=bugs
+	PAGE=index_${VIEW}.html
+	ARCH="amd64"
+	SUITE="unstable"
+	echo "$(date -u) - starting to write $PAGE page."
+	write_page_header $VIEW "Bugs filed"
+	# write bugs with usertags table
+	write_usertag_table
+	write_page "<p style=\"clear:both;\">"
+	# show bug graphs
+	for i in 8 9 3 7 ; do
+		write_global_graph
+	done
+	write_page "</p>"
+	write_page_footer
+	publish_page debian
+}
+
+#
 # create performance page
 #
 create_performance_page() {
@@ -650,5 +674,6 @@ for ARCH in ${ARCHS} ; do
 done
 create_performance_page
 create_variations_page
+create_bugs_page
 create_dashboard_page
 rm -f $DUMMY_FILE >/dev/null
diff --git a/mustache-templates/reproducible/main_navigation.mustache b/mustache-templates/reproducible/main_navigation.mustache
index ec7c497..6081877 100644
--- a/mustache-templates/reproducible/main_navigation.mustache
+++ b/mustache-templates/reproducible/main_navigation.mustache
@@ -146,6 +146,9 @@
   <li {{#issues}}class='active'{{/issues}}>
     Categorized <a href="/debian/index_issues.html">issues</a>
   </li>
+  <li {{#bugs}}class='active'{{/bugs}}>
+    <a href="/debian/index_bugs.html">Bugs filed</a>
+  </li>
   <li {{#repositories}}class='active'{{/repositories}}>
     <a href="/debian/index_repositories.html">
       Repositories overview

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