diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-14 22:21:33 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-14 22:24:45 +0200 |
commit | 23fca31a6d7f853bdd19f5d39499c4626f9dbe52 (patch) | |
tree | bede61267fbc26479caf20209d4d654ed89b1f1f | |
parent | 1c6d516ae79532f8127e88f50ab8973347c1c235 (diff) | |
download | jenkins.debian.net-23fca31a6d7f853bdd19f5d39499c4626f9dbe52.tar.xz |
reproducible: build: help debugging a debbindiff bug (#788568) by checking tmp files before and after
-rwxr-xr-x | bin/reproducible_build.sh | 8 |
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 |