diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-10-15 14:29:18 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-10-15 14:29:18 +0200 |
commit | 28ef23f3f020c3b638b62c4ff5f8bd1055301a96 (patch) | |
tree | 8b19b6f73929207dd1b9bcc68824b121750d5814 | |
parent | 8ad2e88ba6b7565da6000482aeb65c3848c69c8f (diff) | |
download | jenkins.debian.net-28ef23f3f020c3b638b62c4ff5f8bd1055301a96.tar.xz |
reproducible: explain which host had diskspace issues
-rwxr-xr-x | bin/reproducible_build.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 951dfc77..a8d27e25 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -198,6 +198,9 @@ handle_ftbfs() { local BUILD echo "${SRCPACKAGE} failed to build from source." for BUILD in "1" "2"; do + local nodevar="NODE$BUILD" + local node="" + eval node=\$$nodevar if [ ! -f "$BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ] ; then continue fi @@ -207,13 +210,13 @@ handle_ftbfs() { 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' '^dpkg-deb.*No space left on device' '^cp: (erreur|impossible).*No space left on device' '^tee: .* No space left on device' '^zip I/O error: No space left on device' '^mkdir .*: No space left on device' ; do if zgrep -e "$NEEDLE" "$BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then - handle_enospace + handle_enospace $node return fi done # notify about unkown diskspace issues where we are not 100% sure yet those are diskspace issues if zgrep -e "No space left on device" "$BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then - MESSAGE="${BUILD_URL}console for ${SRCPACKAGE} (ftbfs in $SUITE/$ARCH) _probably_ had a diskspace issue. Please check, tune handle_ftbfs() and reschedule the package." + MESSAGE="${BUILD_URL}console for ${SRCPACKAGE} (ftbfs in $SUITE/$ARCH) _probably_ had a diskspace issue on $node. Please check, tune handle_ftbfs() and reschedule the package." echo $MESSAGE | tee -a /var/log/jenkins/reproducible-diskspace-issues.log irc_message "$MESSAGE" fi @@ -292,9 +295,9 @@ handle_remote_error() { handle_enospace() { unregister_build - MESSAGE="${BUILD_URL}console hit diskspace issues with $SRCPACKAGE on $SUITE/$ARCH, sleeping 30m." + MESSAGE="${BUILD_URL}console hit diskspace issues with $SRCPACKAGE on $SUITE/$ARCH on $1, sleeping 30m." echo "$MESSAGE" - echo "$MESSAGE" | mail -s "$BUILDER ran into diskspace problems" qa-jenkins-scm@lists.alioth.debian.org + echo "$MESSAGE" | mail -s "$BUILDER on $1 ran into diskspace problems" qa-jenkins-scm@lists.alioth.debian.org irc_message "$MESSAGE" echo "Sleeping 30m before aborting the job." sleep 30m |