summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-14 22:21:33 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-14 22:24:45 +0200
commit23fca31a6d7f853bdd19f5d39499c4626f9dbe52 (patch)
treebede61267fbc26479caf20209d4d654ed89b1f1f /bin
parent1c6d516ae79532f8127e88f50ab8973347c1c235 (diff)
downloadjenkins.debian.net-23fca31a6d7f853bdd19f5d39499c4626f9dbe52.tar.xz
reproducible: build: help debugging a debbindiff bug (#788568) by checking tmp files before and after
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 1b9227b0..6cbc486b 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -233,6 +233,9 @@ call_debbindiff() {
# there is no extra debbindiff-schroot for experimental because we specical case ghc enough already ;)
DBDSUITE="unstable"
fi
+ # TEMP is recognized by python's tempfile module to create temp stuff inside
+ export TEMP=$(mktemp --tmpdir=$TMPDIR -d dbd-tmp-XXXXXXX)
+ local OLD_DEBBINDIFF_TMP_COUNT=$(find "$TEMP" -maxdepth 1 -name tmp*debbindiff | wc -l)
DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-${DBDSUITE}-debbindiff debbindiff -- --version 2>&1)"
echo "$(date) - $DBDVERSION will be used to compare the two builds:" | tee -a ${RBUILDLOG}
set +e
@@ -251,6 +254,11 @@ call_debbindiff() {
cat $TMPLOG | tee -a $RBUILDLOG # print dbd output
rm $TMPLOG
echo | tee -a ${RBUILDLOG}
+ NEW_DEBBINDIFF_TMP_COUNT=$(find "$TEMP" -maxdepth 1 -name tmp*debbindiff | wc -l)
+ if [ "$OLD_DEBBINDIFF_TMP_COUNT" != "$NEW_DEBBINDIFF_TMP_COUNT" ]; then
+ irc_msg "debbindiff calls on $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE or ${BUILD_URL}console left cruft, please help investigate and fix 788568"
+ fi
+ unset TEMP
case $RESULT in
0)
handle_reproducible