diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_common.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_html_dashboard.sh | 45 |
2 files changed, 36 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 |