From 87099ace45b70c33c2d321992e7047aa24096bcd Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Oct 2016 14:43:44 +0200 Subject: reproducible Debian: show stats for packages with issue in testing too --- bin/reproducible_html_dashboard.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh index af6a3639..7f64f22b 100755 --- a/bin/reproducible_html_dashboard.sh +++ b/bin/reproducible_html_dashboard.sh @@ -493,7 +493,10 @@ create_dashboard_page() { local TD_PKG_SID_FTBR="  - unreproducible ones" local TD_PKG_SID_FTBFS="  - failing to build" local TD_PKG_SID_ISSUES="packages in unstable which need to be fixed" - local TD_PKG_TESTING_ISSUES="  - in testing" + local TD_PKG_TESTING_NOISSUES="packages in testing with issues but without identified ones" + local TD_PKG_TESTING_FTBR="  - unreproducible ones" + local TD_PKG_TESTING_FTBFS="  - failing to build" + local TD_PKG_TESTING_ISSUES="packages in testing which need to be fixed" for ARCH in ${ARCHS} ; do SUITE="unstable" gather_suite_arch_stats @@ -509,14 +512,23 @@ create_dashboard_page() { SUITE="testing" gather_suite_arch_stats TD_PKG_TESTING_ISSUES="$TD_PKG_TESTING_ISSUES$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%" + RESULT=$(sqlite3 -init ${INIT} ${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')") + TD_PKG_TESTING_NOISSUES="$TD_PKG_TESTING_NOISSUES$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" + RESULT=$(sqlite3 -init ${INIT} ${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='unreproducible' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") + TD_PKG_TESTING_FTBR="$TD_PKG_TESTING_FTBR$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" + RESULT=$(sqlite3 -init ${INIT} ${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='FTBFS' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") + TD_PKG_TESTING_FTBFS="$TD_PKG_TESTING_FTBFS$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" done - ARCH="amd64" - SUITE="unstable" write_page "$TD_PKG_SID_NOISSUES" write_page "$TD_PKG_SID_FTBR" write_page "$TD_PKG_SID_FTBFS" write_page "$TD_PKG_SID_ISSUES" + write_page "$TD_PKG_TESTING_NOISSUES" + write_page "$TD_PKG_TESTING_FTBR" + write_page "$TD_PKG_TESTING_FTBFS" write_page "$TD_PKG_TESTING_ISSUES" + ARCH="amd64" + SUITE="unstable" # in the following two write_page() calls we use the same # insane grep to filter people who committed with several -- cgit v1.2.3-70-g09d2