From 8902cce8cded7baa85dace76560af4adeb74fdd9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 2 Mar 2015 22:26:44 +0100 Subject: reproducible: new page: stats (and split previous stats page into suite_stats) --- bin/reproducible_html_graphs.sh | 46 +++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 15 deletions(-) (limited to 'bin/reproducible_html_graphs.sh') diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index cd612d1f..52d342af 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -254,7 +254,7 @@ write_usertag_table() { fi } -VIEW=stats +VIEW=suite_stats PAGE=index_${VIEW}.html echo "$(date) - starting to write $PAGE page." write_page_header $VIEW "Overview of various statistics about reproducible builds for $SUITE" @@ -284,21 +284,11 @@ set_icon blacklisted write_icon write_page "$COUNT_BLACKLISTED blacklisted packages neither.

" write_page "

" -# FIXME: we don't do 2 / stats_builds_age.png yet :/ (and 6 is special anyway) -for i in 0 3 4 5 1 ; do - if [ $i -ne 0 ] && [ "$SUITE" != "sid" ] ; then - # do most stats only for sid - continue - fi - if [ "$i" = "3" ] ; then - write_usertag_table - fi - write_page " \"${MAINLABEL[$i]}\"" - # redo pngs once a day - if [ ! -f /var/lib/jenkins/userContent/${TABLE[$i]}.png ] || [ -z $(find /var/lib/jenkins/userContent -maxdepth 1 -mtime +0 -name ${TABLE[$i]}.png) ] ; then - redo_png $i ${TABLE[$i]}.png +write_page " \"${MAINLABEL[0]}\"" +# redo png once a day +if [ ! -f /var/lib/jenkins/userContent/$SUITE/${TABLE[0]}.png ] || [ -z $(find /var/lib/jenkins/userContent/$SUITE -maxdepth 1 -mtime +0 -name ${TABLE[0]}.png) ] ; then + redo_png $i ${TABLE[0]}.png fi -done write_page "

" write_page_footer publish_page $SUITE @@ -371,3 +361,29 @@ done write_page_footer publish_page +if [ "$SUITE" != "sid" ] ; then + # stop here if not called with no arguments... + exit 0 +fi +VIEW=stats +PAGE=index_${VIEW}.html +echo "$(date) - starting to write $PAGE page." +write_page_header $VIEW "Overview of various statistics about reproducible builds" +write_page "

" +write_page "

" +# FIXME: we don't do 2 / stats_builds_age.png yet :/ (and 6 and 0 are done already) +for i in 3 4 5 1 ; do + if [ "$i" = "3" ] ; then + write_usertag_table + fi + write_page " \"${MAINLABEL[$i]}\"" + # redo pngs once a day + if [ ! -f /var/lib/jenkins/userContent/${TABLE[$i]}.png ] || [ -z $(find /var/lib/jenkins/userContent -maxdepth 1 -mtime +0 -name ${TABLE[$i]}.png) ] ; then + redo_png $i ${TABLE[$i]}.png + fi +done +write_page "

" +write_page_footer +publish_page $SUITE + + -- cgit v1.2.3-70-g09d2