...
 
Commits (2)
......@@ -3,6 +3,8 @@ piuparts (0.94) UNRELEASED; urgency=medium
* master-bin/detect_well_known_errors.py: suppress output if nothing new is
found in a section, or section is busy or has been recently processed.
* master-bin/generate_daily_report: include number of failures in daily mail.
* slave-bin/detect_slave_problems: increase amount of time (from 30 to 60m)
a slave has to be inactive before complaining.
-- Holger Levsen <holger@debian.org> Sun, 21 Oct 2018 14:03:22 +0200
......
......@@ -49,18 +49,15 @@ STATEFILE=$SLAVEROOT/slave-problems
# clear the statefile daily and whine again
test $(file_age $STATEFILE) -lt 86000 || rm -f $STATEFILE
# Only complain if screenlog is older than $IDLE_SPEEP + 1 minute (the slave
# likes to sleep that long) and the problem is new or was not reported within
# the previous 24 hours.
if [ $(file_age $SCREENLOG) -le $(($IDLE_SLEEP + 60)) ]; then
# Only complain if screenlog is older than $IDLE_SLEEP + 30 minutes
# and the problem is new or was not reported within the previous 24 hours.
if [ $(file_age $SCREENLOG) -le $(($IDLE_SLEEP + 1800)) ]; then
rm -f $STATEFILE
elif [ ! -f $STATEFILE ]; then
{
echo "Either a test is running for a very long time (but no test"
echo "should run longer than an hour), piuparts-slave hangs or is"
echo "not running at all or wasn't started with"
echo "~piupartss/bin/slave_run - please investigate and take"
echo "appropriate measures!"
echo "Either a test is running for a very long time (more than $(( ($IDLE_SLEEP + 1800)/60 )) minutes),"
echo "or piuparts-slave hangs or is not running at all or wasn't started with"
echo "~piupartss/bin/slave_run - please investigate and take appropriate measures!"
echo
tail $SCREENLOG
} | mail -s "problem with piuparts-slave detected" piupartss
......