From 9425901bfcdd7166f402bc0f005834cbd15ff27d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 7 Oct 2014 19:41:19 +0200 Subject: reproducible: provide links to other views --- bin/reproducible_stats.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 8e2510f3..281d20b8 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -59,7 +59,6 @@ declare -A LINKTARGET write_summary() { echo "$1" >> $SUMMARY - echo "$1" | html2text } mkdir -p /var/lib/jenkins/userContent/rb-pkg/ @@ -154,12 +153,15 @@ process_packages ${BAD["all"]} EXTRA_STAR=false process_packages ${UGLY["all"]} ${GOOD["all"]} +SPOKENTARGET["all"]="all tested packages" +SPOKENTARGET["last_24h"]="packages tested in the last 24h" +SPOKENTARGET["last_48"]="packages tested in the last 48h" + MAINVIEW="last_24h" ALLVIEWS="all last_24h last_48h" for VIEW in $ALLVIEWS ; do - echo "Starting to write statistics index_$VIEW page." - echo SUMMARY=index_${VIEW}.html + echo "Starting to write $SUMMARY page." rm -f $SUMMARY write_summary "" write_summary "" @@ -169,6 +171,14 @@ for VIEW in $ALLVIEWS ; do write_summary "

This page is updated every three hours. Results are obtained from several build jobs running on jenkins.debian.net. Thanks to Profitbricks for donating the virtual machine it's running on!

" write_summary "

$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! Join #debian-reproducible on OFTC to get support for making sure your packages build reproducibly too!

" fi + write_summary "

Other views for the build results:

" write_summary "" write_summary "

$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: " link_packages ${BAD[$VIEW]} @@ -197,7 +207,7 @@ for VIEW in $ALLVIEWS ; do # publish cp $SUMMARY /var/lib/jenkins/userContent/ if [ "$VIEW" = "$MAINVIEW" ] ; then - cp $SUMMARY reproducible.html + cp $SUMMARY /var/lib/jenkins/userContent/reproducible.html fi rm $SUMMARY done -- cgit v1.2.3-54-g00ecf