From b84393b6a9abdf9799167b50e0cc7d03e2f9606b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 8 Oct 2015 09:02:36 +0200 Subject: reproducible: keep track of diskspace issues and notify daily per mail --- bin/reproducible_build.sh | 2 +- bin/reproducible_maintenance.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3d97e3dd..8b3edf50 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -214,7 +214,7 @@ handle_ftbfs() { # 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 for ${SRCPACKAGE} (ftbfs in $SUITE/$ARCH) _probably_ had a diskspace issue. Please check, tune handle_ftbfs() and reschedule the package." - echo $MESSAGE + echo $MESSAGE | tee -a /var/log/jenkins/reproducible-diskspace-issues.log irc_message "$MESSAGE" fi done diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 0b2d9aae..e4cee248 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -334,7 +334,7 @@ fi # daily mails if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then # once a day, send mail about builder problems - for PROBLEM in /var/lib/jenkins/stale_builds.txt /var/log/jenkins/reproducible-race-conditions.log ; do + for PROBLEM in /var/lib/jenkins/stale_builds.txt /var/log/jenkins/reproducible-race-conditions.log /var/log/jenkins/reproducible-diskspace-issues.log ; do if [ -s $PROBLEM ] ; then TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX) mv $PROBLEM $TMPFILE -- cgit v1.2.3-70-g09d2