From 43d9245ca1f65b9fccbb45caff5f93aaf1ccb73e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 3 Jun 2015 09:50:46 +0200 Subject: reproducible: less, but more targeted debug --- bin/reproducible_html_graphs.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index c6a364bc..40d3a542 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -4,7 +4,7 @@ # © 2015 Mattia Rizzolo # released under the GPLv=2 -DEBUG=true +DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" @@ -534,6 +534,7 @@ create_pkg_sets_pages() { # create main stats page # create_main_stats_page() { + set -x VIEW=stats PAGE=index_${VIEW}.html echo "$(date) - starting to write $PAGE page." @@ -542,7 +543,9 @@ create_main_stats_page() { write_page "

" write_page "" for SUITE in $SUITES ; do + set +x gather_suite_stats + set -x write_page "" write_page "" SUITE="unstable" + set +x gather_suite_stats + set -x RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status IN ('unreproducible', 'FTBFS', 'blacklisted') AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") write_page "" @@ -594,9 +599,11 @@ create_main_stats_page() { for i in 3 7 4 5 ; do write_page " \"${MAINLABEL[$i]}\"" # redo pngs once a day + set +x if [ ! -f $BASE/${TABLE[$i]}.png ] || [ ! -z $(find $BASE -maxdepth 1 -mtime +0 -name ${TABLE[$i]}.png) ] ; then create_png_from_table $i ${TABLE[$i]}.png fi + set -x done # explain setup write_page "

" @@ -622,9 +629,11 @@ create_main_stats_page() { write_page "

" write_page " \"${MAINLABEL[$i]}\"" # redo png once a day + set +x if [ ! -f $BASE/${TABLE[1]}.png ] || [ ! -z $(find $BASE -maxdepth 1 -mtime +0 -name ${TABLE[1]}.png) ] ; then create_png_from_table 1 ${TABLE[1]}.png fi + set -x # write suite builds age graphs write_page "

" for SUITE in $SUITES ; do @@ -654,6 +663,7 @@ create_main_stats_page() { write_page "

" write_page "
There are some problems in this setup too. And there is documentation too, in case you missed the link at the top. More feedback is always welcome!

" # the end + set +x write_page_footer publish_page } -- cgit v1.2.3-54-g00ecf
suiteall sources packagesreproducible packagesunreproducible packagespackages failing to buildother packages
$SUITE$AMOUNT" if [ $(echo $PERCENT_TOTAL/1|bc) -lt 98 ] ; then write_page "($PERCENT_TOTAL% tested)" @@ -575,7 +578,9 @@ create_main_stats_page() { write_page "
total number of identified issues in packages$COUNT_ISSUES
packages with notes about these issues$NOTES
packages in $SUITE with issues but without identified ones$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%