From 11b71c2c8a1070f3df3cde6158bd17ea01471259 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 29 Sep 2014 16:07:14 +0200 Subject: reproducible: preserve pbuilder logs for packages ftbfs and link those logs from the stats page --- bin/reproducible_stats.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_stats.sh') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 20889c02..fd0a3466 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -37,7 +37,6 @@ GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc) htmlecho() { echo "$1" >> index.html } -rm index.html htmlecho "" > index.html htmlecho "

Statistics for reproducible builds

" @@ -52,7 +51,18 @@ for PKG in $BAD ; do done htmlecho "

" htmlecho -htmlecho "

$COUNT_UGLY packages failed to build from source: ${UGLY}

" +htmlecho "

$COUNT_UGLY packages failed to build from source: " +for PKG in $UGLY ; do + VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"") + # remove epoch + VERSION=$(echo $VERSION | cut -d ":" -f2) + if [ -f /var/lib/jenkins/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log ] ; then + htmlecho "$PKG " + else + htmlecho "$PKG " + fi +done +htmlecho "

" if [ $COUNT_SOURCELESS -gt 0 ] ; then htmlecho "

$COUNT_SOURCELESS packages which don't exist in sid and need investigation: $SOURCELESS

" fi -- cgit v1.2.3-70-g09d2