summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 648cf362..722e9d38 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -203,6 +203,12 @@ handle_ftbfs() {
handle_depwait
return
fi
+ for NEEDLE in '^tar:.*Cannot write: No space left on device' 'fatal error: error writing to .* No space left on device' './configure: line .* printf: write error: No space left on device' 'cat: write error: No space left on device' ; do
+ if zgrep -e "$NEEDLE" "$BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
+ handle_enospace
+ return
+ fi
+ done
done
calculate_build_duration
update_db_and_html "FTBFS"
@@ -266,6 +272,17 @@ handle_unhandled() {
exit 0
}
+handle_enospace() {
+ unregister_build
+ MESSAGE="$BUILD_URL ran into diskspace problems, please investigate. Will send this builder to sleep for 3h now."
+ echo "$MESSAGE"
+ echo "$MESSAGE" | mail -s "$BUILD_URL ran into diskspace problems" qa-jenkins-scm@lists.alioth.debian.org
+ irc_msg "$MESSAGE"
+ sleep 3h
+ exec /srv/jenkins/bin/abort.sh
+ exit 0
+}
+
dbd_timeout() {
local msg="$DIFFOSCOPE was killed after running into timeout after $1"
if [ ! -s ./${DBDREPORT} ] ; then