[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: write yesterdays stats today if they dont exist yet
Holger Levsen
holger at layer-acht.org
Wed Nov 29 21:46:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 5c1bf7ff197a7a07d7f1849e45a98df188a7ae01
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Nov 29 21:45:59 2017 +0000
reproducible Arch Linux: write yesterdays stats today if they dont exist yet
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_html_archlinux.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index dc77b0b..4e69fe3 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -17,6 +17,7 @@ ARCHBASE=$BASE/archlinux
#
echo "$(date -u) - starting to analyse build results."
DATE=$(date -u +'%Y-%m-%d')
+YESTERDAY=$(date '+%Y-%m-%d' -d "-1 day")
MEMBERS_FTBFS="0 1 2 3"
MEMBERS_DEPWAIT="0 1"
MEMBERS_404="0 1 2 3 4 5 6 7 8 9"
@@ -220,9 +221,9 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
if [ ! -f $ARCHBASE/$REPOSITORY.csv ] ; then
echo "# date, reproducible, unreproducible, ftbfs, depwait, 404, untested" > $ARCHBASE/$REPOSITORY.csv
fi
- if ! grep -q $DATE $ARCHBASE/$REPOSITORY.csv ; then
+ if ! grep -q $YESTERDAY $ARCHBASE/$REPOSITORY.csv ; then
let REAL_UNKNOWN=$TOTAL-$NR_GOOD-$NR_FTBR-$NR_FTBFS-$NR_DEPWAIT-$NR_404 || true
- echo $DATE,$NR_GOOD,$NR_FTBR,$NR_FTBFS,$NR_DEPWAIT,$NR_404,$REAL_UNKNOWN >> $ARCHBASE/$REPOSITORY.csv
+ echo $YESTERDAY,$NR_GOOD,$NR_FTBR,$NR_FTBFS,$NR_DEPWAIT,$NR_404,$REAL_UNKNOWN >> $ARCHBASE/$REPOSITORY.csv
fi
#
# prepare ARCHLINUX totals
@@ -263,9 +264,9 @@ echo " </tr>" >> $HTML_REPOSTATS
if [ ! -f $ARCHBASE/archlinux.csv ] ; then
echo "# date, reproducible, unreproducible, ftbfs, depwait, 404, untested" > $ARCHBASE/archlinux.csv
fi
-if ! grep -q $DATE $ARCHBASE/archlinux.csv ; then
+if ! grep -q $YESTERDAY $ARCHBASE/archlinux.csv ; then
let ARCHLINUX_REAL_UNKNOWN=$ARCHLINUX_TOTAL-$ARCHLINUX_NR_GOOD-$ARCHLINUX_NR_FTBR-$ARCHLINUX_NR_FTBFS-$ARCHLINUX_NR_DEPWAIT-$ARCHLINUX_NR_404 || true
- echo $DATE,$ARCHLINUX_NR_GOOD,$ARCHLINUX_NR_FTBR,$ARCHLINUX_NR_FTBFS,$ARCHLINUX_NR_DEPWAIT,$ARCHLINUX_NR_404,$ARCHLINUX_REAL_UNKNOWN >> $ARCHBASE/archlinux.csv
+ echo $YESTERDAY,$ARCHLINUX_NR_GOOD,$ARCHLINUX_NR_FTBR,$ARCHLINUX_NR_FTBFS,$ARCHLINUX_NR_DEPWAIT,$ARCHLINUX_NR_404,$ARCHLINUX_REAL_UNKNOWN >> $ARCHBASE/archlinux.csv
fi
#
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list