summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-07 19:41:19 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-07 19:50:18 +0200
commit9425901bfcdd7166f402bc0f005834cbd15ff27d (patch)
tree059d1cf80ff91b6747f5e6ff5426e22e586ec369
parentd5d207bd70d281acea0f24868dec1b3fe68fcca4 (diff)
downloadjenkins.debian.net-9425901bfcdd7166f402bc0f005834cbd15ff27d.tar.xz
reproducible: provide links to other views
-rwxr-xr-xbin/reproducible_stats.sh18
1 files changed, 14 insertions, 4 deletions
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 "<!DOCTYPE html><html><head>"
write_summary "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
@@ -169,6 +171,14 @@ for VIEW in $ALLVIEWS ; do
write_summary "<p>This page is updated every three hours. Results are obtained from <a href=\"$JENKINS_URL/view/reproducible\">several build jobs running on jenkins.debian.net</a>. Thanks to <a href=\"https://www.profitbricks.com\">Profitbricks</a> for donating the virtual machine it's running on!</p>"
write_summary "<p>$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 <a href=\"https://wiki.debian.org/ReproducibleBuilds\">packages should be reproducibly buildable!</a> Join <code>#debian-reproducible</code> on OFTC to get support for making sure your packages build reproducibly too!</p>"
fi
+ write_summary "<p>Other views for the build results:<ul>"
+ for TARGET in $ALLVIEWS ; do
+ if [ "$TARGET" = "$VIEW" ] ; then
+ continue
+ fi
+ write_summary "<li><a href=\"index_${TARGET}.html\">${SPOKENTARGET[$TARGET]}</a></li>"
+ done
+ write_summary "</ul></p>"
write_summary "</header>"
write_summary "<p>$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: <code>"
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