[Piuparts-devel] [Git][debian/piuparts][develop] 2 commits: fix typo in comment

Holger Levsen gitlab at salsa.debian.org
Thu Oct 25 17:26:49 BST 2018


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
e587a83b by Holger Levsen at 2018-10-25T16:20:54Z
fix typo in comment

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
3897b5fa by Holger Levsen at 2018-10-25T16:26:31Z
slave-bin/detect_slave_problems: increase amount of time (from 30 to 60m) a slave has to be inactive before complaining.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- debian/changelog
- slave-bin/detect_slave_problems.in


Changes:

=====================================
debian/changelog
=====================================
@@ -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 at debian.org>  Sun, 21 Oct 2018 14:03:22 +0200
 


=====================================
slave-bin/detect_slave_problems.in
=====================================
@@ -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



View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/5e263f80fde94ced22bd1ddd9d3d26e979dd6a5c...3897b5fafacdb34b4e622d176f76221f27ae764a

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/5e263f80fde94ced22bd1ddd9d3d26e979dd6a5c...3897b5fafacdb34b4e622d176f76221f27ae764a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181025/7ba13772/attachment-0001.html>


More information about the Piuparts-devel mailing list