[Qa-jenkins-scm] [jenkins.debian.net] 02/12: reproducible: build: refactor: slim down the call_debbindiff() function: strip out dbd_timeout()
Holger Levsen
holger at moszumanska.debian.org
Sat Apr 18 15:44:57 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 e25e08b1be4a5588fa3683bbf0106193e6f44c05
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Mon Apr 6 14:54:26 2015 +0200
reproducible: build: refactor: slim down the call_debbindiff() function: strip out dbd_timeout()
---
bin/reproducible_build.sh | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 16ad799..cfa0368 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -102,24 +102,28 @@ init_debbindiff() {
fi
}
+dbd_timeout() {
+ echo "$(date) - $DBDVERSION was killed after running into timeout after $TIMEOUT... maybe there is still $REPRODUCIBLE_URL/dbd/${SUITE}/${ARCH}/${DBDREPORT}" | tee -a ${RBUILDLOG}
+ if [ ! -s ./${DBDREPORT} ] ; then
+ echo "$(date) - $DBDVERSION produced no output and was killed after running into timeout after $TIMEOUT..." >> ${DBDREPORT}
+ fi
+ SAVE_ARTIFACTS=3
+}
+
call_debbindiff() {
init_debbindiff
echo | tee -a ${RBUILDLOG}
- TIMEOUT="30m" # don't forget to also change the "seq 0 200" loop 17 lines above
+ TIMEOUT="30m" # don't forget to also change the "seq 0 200" loop 17 lines above
DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-unstable-debbindiff debbindiff -- --version 2>&1)"
echo "$(date) - $DBDVERSION will be used to compare the two builds now." | tee -a ${RBUILDLOG}
+ set -x
( timeout $TIMEOUT schroot --directory $TMPDIR -c source:jenkins-reproducible-unstable-debbindiff debbindiff -- --html ./${DBDREPORT} ./b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ./b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes 2>&1 ) 2>&1 >> ${RBUILDLOG}
RESULT=$?
set +x
- set -e
rm -f $DBDCHROOT_READLOCK
echo | tee -a ${RBUILDLOG}
if [ $RESULT -eq 124 ] ; then
- echo "$(date) - $DBDVERSION was killed after running into timeout after $TIMEOUT... maybe there is still $REPRODUCIBLE_URL/dbd/${SUITE}/${ARCH}/${DBDREPORT}" | tee -a ${RBUILDLOG}
- if [ ! -s ./${DBDREPORT} ] ; then
- echo "$(date) - $DBDVERSION produced no output and was killed after running into timeout after $TIMEOUT..." >> ${DBDREPORT}
- fi
- SAVE_ARTIFACTS=3
+ dbd_timeout
elif [ $RESULT -eq 1 ] ; then
DEBBINDIFFOUT="$DBDVERSION found issues, please investigate $REPRODUCIBLE_URL/dbd/${SUITE}/${ARCH}/${DBDREPORT}"
elif [ $RESULT -eq 2 ] ; then
--
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