From fe17ffee5098daebcdb53095e791e753c120ece3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 9 Oct 2014 18:42:29 +0200 Subject: reproducible: split FTBR view into those with .buildinfo files and those without --- bin/reproducible_stats.sh | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 8916efac..623975d5 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -27,8 +27,7 @@ LAST24="AND build_date > datetime('now', '-24 hours') " LAST48="AND build_date > datetime('now', '-48 hours') " SUITE=sid AMOUNT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT amount FROM source_stats WHERE suite = \"$SUITE\"" | xargs echo) -#ALLSTATES="reproducible FTBR FTBR_with_buildinfo FTBFS 404 not_for_us blacklisted" -ALLSTATES="reproducible FTBR FTBFS 404 not_for_us blacklisted" +ALLSTATES="reproducible FTBR_with_buildinfo FTBR FTBFS 404 not_for_us blacklisted" GOOD["all"]=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"reproducible\" ORDER BY build_date DESC" | xargs echo) GOOD["last_24h"]=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"reproducible\" $LAST24 ORDER BY build_date DESC" | xargs echo) GOOD["last_48h"]=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"reproducible\" $LAST48 ORDER BY build_date DESC" | xargs echo) @@ -67,8 +66,8 @@ SPOKENTARGET["all_abc"]="all tested packages (sorted alphabetically)" SPOKENTARGET["dd-list"]="maintainers of unreproducible packages" SPOKENTARGET["notes"]="packages with notes" SPOKENTARGET["reproducible"]="packages which built reproducibly" -SPOKENTARGET["FTBR"]="packages which failed to build reproducibly" -#SPOKENTARGET["FTBR_with_buildinfo"]="packages which failed to build reproducibly and have a .buildinfo file" +SPOKENTARGET["FTBR"]="packages which failed to build reproducibly and don't create a .buildinfo file" +SPOKENTARGET["FTBR_with_buildinfo"]="packages which failed to build reproducibly and create a .buildinfo file" SPOKENTARGET["FTBFS"]="packages which fail to build from source" SPOKENTARGET["404"]="packages where the sources failed to downloaded" SPOKENTARGET["not_for_us"]="packages which should not be build on 'amd64'" @@ -279,12 +278,13 @@ set_icon() { case "$1" in reproducible) ICON=weather-clear.png ;; - unreproducible|FTBR) if [ "$2" != "" ] ; then + unreproducible|FTBR*) if [ "$2" != "" ] ; then ICON=weather-showers-scattered.png + STATE_TARGET_NAME=FTBR_with_buildinfo else ICON=weather-showers.png + STATE_TARGET_NAME=FTBR fi - STATE_TARGET_NAME=FTBR ;; FTBFS) ICON=weather-storm.png ;; @@ -403,7 +403,11 @@ write_summary_header() { write_summary "