summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-05 21:45:57 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-05 21:45:57 +0200
commitbcddbd498863d705b82ac784888f58036949c5cf (patch)
tree2a7a4dcf8f87e5000fa9d0c5434281f6056c9283
parent4eb55879708f2b0057cf50bb2f413af48c0fcdbe (diff)
downloadjenkins.debian.net-bcddbd498863d705b82ac784888f58036949c5cf.tar.xz
reproducible: include version in pkg overview. mark packages without buildinfo
-rwxr-xr-xbin/reproducible_stats.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index 7a38be7e..2ed151c8 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -62,8 +62,11 @@ init_navi_frame() {
NAVI="/var/lib/jenkins/userContent/rb-pkg/$1_navigation.html"
echo "<!DOCTYPE html><html><body><p>" > $NAVI
echo "<font size=+1>$1</font>: " >> $NAVI
- BUILD_DATE=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date FROM source_packages WHERE name = \"$PKG\"")
- echo "<font size=-1>($BUILD_DATE)</font> " >> $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)
+ echo "($VERSION) " >> $NAVI
+ echo "<font size=-1>at $BUILD_DATE:</font> " >> $NAVI
}
append2navi_frame() {
@@ -82,12 +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 " <a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\">$PKG</a> "
+ write_index " <a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\">$PKG</a>"
MAINLINK=""
init_navi_frame "$PKG"
if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then
append2navi_frame " <a href=\"$JENKINS_URL/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo\" target=\"main\">buildinfo</a> "
MAINLINK="$JENKINS_URL/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo"
+ elif [ "$2" != "" ]
+ write_index "<font size=\"-1\"><sup>*</sup></font> "
fi
if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] ; then
append2navi_frame " <a href=\"$JENKINS_URL/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html\" target=\"main\">debbindiff</a> "
@@ -123,7 +128,7 @@ write_index "<p>Results were obtained by <a href=\"$JENKINS_URL/view/reproducibl
write_index "<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 packages should be reproducibly buildable!</p>"
write_index "<p>$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: <code>"
echo -n "Starting to loop through the packages tested"
-link_packages $BAD
+link_packages $BAD buildinfo
write_index "</code></p>"
write_index
write_index "<p>$COUNT_UGLY packages ($PERCENT_UGLY%) failed to build from source: <code>"