From c2a3f94fdfaf552e9a9d4cc4f84c77691c470291 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 6 Oct 2014 14:20:19 +0200 Subject: reproducible: improve job output --- bin/reproducible_stats.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 06921293..7264efcf 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -40,6 +40,7 @@ GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc) write_index() { echo "$1" >> index.html + echo "$1" | html2text } mkdir -p /var/lib/jenkins/userContent/rb-pkg/ @@ -79,7 +80,6 @@ finish_navi_frame() { link_packages() { for PKG in $@ ; do - echo -n "." VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"") # remove epoch EVERSION=$(echo $VERSION | cut -d ":" -f2) @@ -127,12 +127,12 @@ link_packages() { } echo "Starting to write statistics index page." +echo write_index "" > index.html write_index "

Statistics for reproducible builds

" write_index "

Results were obtained by several jobs running on jenkins.debian.net. This page is updated after each job run.

" write_index "

$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" EXTRA_STAR=true link_packages $BAD EXTRA_STAR=false @@ -161,5 +161,4 @@ write_index "

" echo # job output -html2text index.html cp index.html /var/lib/jenkins/userContent/reproducible.html -- cgit v1.2.3-70-g09d2