[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible archlinux: force re-testing of 404 packages after 3 days
Holger Levsen
holger at moszumanska.debian.org
Sat Dec 19 12:17:51 UTC 2015
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 5c9f209f88293d912a2b799c97b310c451a3e7d6
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Dec 19 13:17:26 2015 +0100
reproducible archlinux: force re-testing of 404 packages after 3 days
---
bin/reproducible_html_archlinux.sh | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 82e6b4a..4c8711a 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -10,11 +10,23 @@ common_init "$@"
# common code
. /srv/jenkins/bin/reproducible_common.sh
+force_if_old_enough() {
+ # force re-testing of 404 packages after 3 days
+ if [ $COMPARE_DUMMY -nt $1 ] ; then
+ echo "$(date -u) - forcing rebuild of $REPOSITORY/$(basename $1) because '$2'"
+ touch -d "$FORCE_DATE 00:00 UTC" $1
+ fi
+}
+
ARCHBASE=$BASE/archlinux
#
# analyse results to create the webpage
#
echo "$(date -u) - starting to analyse build results."
+COMPARE_DUMMY=$(mktemp -t rhtml-archlinux-XXXXXXXX)
+COMPARE_DATE=$(date -d "3 days ago" '+%Y-%m-%d')
+echo touch -d "$COMPARE_DATE 00:00 UTC" $COMPARE_DUMMY
+FORCE_DATE=$(date -d "100 days ago" '+%Y-%m-%d')
MEMBERS_FTBFS="0 1 2 3 4"
MEMBERS_DEPWAIT="0 1"
MEMBERS_404="0 1 2 3 4 5 6 7"
@@ -92,6 +104,7 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
EXTRA_REASON="with SSL certificate problem"
fi
echo " <img src=\"/userContent/static/weather-severe-alert.png\" alt=\"404 icon\" /> download failed $EXTRA_REASON" >> $HTML_BUFFER
+ force_if_old_enough $ARCHLINUX_PKG_PATH "download failed $EXTRA_REASON"
elif [ ! -z "$(egrep '==> ERROR: One or more files did not pass the validity check' $ARCHLINUX_PKG_PATH/build1.log)" ] ; then
HTML_TARGET=${HTML_FTBFS[0]}
let NR_FTBFS+=1
--
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