diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-11-14 11:55:22 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-11-14 11:55:22 +0100 |
commit | 38408a7c7a56c7baec8006bee0bf8ba3e9cca368 (patch) | |
tree | c6427e20d537924e44597fccf6aa56aca7eaa4a0 | |
parent | e9e8e71591f4056162d17e4d99e94501af3b8b42 (diff) | |
download | jenkins.debian.net-38408a7c7a56c7baec8006bee0bf8ba3e9cca368.tar.xz |
reproducible Debian: show bugs filed on a dedicated page (thanks jmw for the idea)
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_common.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_html_dashboard.sh | 45 | ||||
-rw-r--r-- | mustache-templates/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 ea883546..d41759a6 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 7132aa64..72075243 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 ec7c497c..6081877f 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 |