From 23fca31a6d7f853bdd19f5d39499c4626f9dbe52 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 14 Jun 2015 22:21:33 +0200 Subject: reproducible: build: help debugging a debbindiff bug (#788568) by checking tmp files before and after --- bin/reproducible_build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2