From d11fdbede2f3c99c31f28acfc9d7642da418dde4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 5 Oct 2014 22:13:44 +0200 Subject: reproducible: pleasantly mark packages without .buildinfo --- bin/reproducible_stats.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 979d6c6f..e811b422 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -61,7 +61,7 @@ EOF init_navi_frame() { NAVI="/var/lib/jenkins/userContent/rb-pkg/$1_navigation.html" echo "

" > $NAVI - echo "$1: " >> $NAVI + echo "$1 " >> $NAVI RESULT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date,version FROM source_packages WHERE name = \"$PKG\"") BUILD_DATE=$(echo $RESULT|cut -d "|" -f1) VERSION=$(echo $RESULT|cut -d "|" -f2) @@ -85,14 +85,14 @@ link_packages() { EVERSION=$(echo $VERSION | cut -d ":" -f2) # FIXME: remove unused code once all diffp.log and pbuilder.log files are gone if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] || [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.diffp.log" ] || [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${EVERSION}.pbuilder.log" ] || [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] || [ -f "/var/lib/jenkins/userContent/rbuild/${PKG}_${EVERSION}.rbuild.log" ]; then - write_index " $PKG" + STAR="" MAINLINK="" init_navi_frame "$PKG" if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then append2navi_frame " buildinfo " MAINLINK="$JENKINS_URL/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" - elif [ "$2" != "" ] ; then - write_index "* " + elif $EXTRA_STAR ; then + STAR="*" fi if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] ; then append2navi_frame " debbindiff " @@ -115,6 +115,7 @@ link_packages() { fi finish_navi_frame write_pkg_frameset "$PKG" "$MAINLINK" + write_index " $PKG$STAR " else write_index " $PKG " fi @@ -128,7 +129,9 @@ write_index "

Results were obtained by $COUNT_TOTAL packages attempted to build so far, that's $PERCENT_TOTAL% of $AMOUNT source packages in Debian $SUITE currently. Out of these, $PERCENT_GOOD% were successful, so quite wildly guessing this roughy means about $GUESS_GOOD packages should be reproducibly buildable!

" write_index "

$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: " echo -n "Starting to loop through the packages tested" -link_packages $BAD buildinfo +EXTRA_STAR=true +link_packages $BAD +EXTRA_STAR=false write_index "

" write_index write_index "

$COUNT_UGLY packages ($PERCENT_UGLY%) failed to build from source: " -- cgit v1.2.3-70-g09d2