From 6c5f38a1e790c0c84594215a1da51ffa9ca88a5f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 19 Aug 2015 18:26:52 +0200 Subject: reproducible: keep arch specific stats and introduce suite_$arch_stats --- bin/reproducible_common.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_common.sh') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 0019a8af..d9fc358c 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -152,9 +152,9 @@ write_page_header() { rm -f $PAGE MAINVIEW="stats" ALLSTATES="reproducible FTBR FTBFS depwait not_for_us 404 blacklisted" - ALLVIEWS="issues notes no_notes scheduled last_24h last_48h all_abc notify dd-list pkg_sets suite_stats repositories stats" + ALLVIEWS="issues notes no_notes scheduled last_24h last_48h all_abc notify dd-list pkg_sets suite_amd64_stats suite_armhf_stats repositories stats" GLOBALVIEWS="issues scheduled notify repositories stats" - SUITEVIEWS="dd-list suite_stats" + SUITEVIEWS="dd-list suite_amd64_stats suite_armhf_stats" SPOKENTARGET["issues"]="issues" SPOKENTARGET["notes"]="packages with notes" SPOKENTARGET["no_notes"]="packages without notes" @@ -199,6 +199,10 @@ write_page_header() { # no pkg_sets are tested in experimental continue fi + if [ "$TARGET" = "pkg_sets" ] && [ "$ARCH" = "armhf" ] ; then + # no pkg_sets for armhf _yet_ + continue + fi SPOKEN_TARGET=${SPOKENTARGET[$TARGET]} BASEURL="/$SUITE/$ARCH" local i @@ -214,7 +218,11 @@ write_page_header() { done if [ "$TARGET" = "suite_stats" ] ; then for i in $SUITES ; do - write_page "
  • suite: $i
  • " + if [ "$SUITE" != "unstable" ] && [ "$ARCH" = "armhf" ] ; then + # only unstable is tested on armhf atm + continue + fi + write_page "
  • suite: $i
  • " done elif [ "$TARGET" = "notify" ] ; then write_page "
  • ${SPOKEN_TARGET}
  • " @@ -225,7 +233,7 @@ write_page_header() { write_page "
  • wiki
  • " write_page "" if [ "$1" = "$MAINVIEW" ] ; then - LATEST=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id = s.id WHERE r.status IN ('unreproducible') AND s.suite = 'unstable' AND s.id NOT IN (SELECT package_id FROM notes) ORDER BY build_date DESC LIMIT 23"|sort -R|head -1) + LATEST=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id = s.id WHERE r.status IN ('unreproducible') AND s.suite = 'unstable' AND s.arch = 'amd64' AND s.id NOT IN (SELECT package_id FROM notes) ORDER BY build_date DESC LIMIT 23"|sort -R|head -1) write_page "
    " write_page "https://reproducible.debian.net/" write_page "" -- cgit v1.2.3-70-g09d2