[Piuparts-commits] [piuparts] 01/01: detect_piuparts_issues: add debug output to measure runtime

Holger Levsen holger at layer-acht.org
Tue Mar 7 01:05:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 6c9ebf18425c2716a49311f58965fc786c3a2b39
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Mar 7 02:04:50 2017 +0100

    detect_piuparts_issues: add debug output to measure runtime
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 master-bin/detect_piuparts_issues.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/master-bin/detect_piuparts_issues.in b/master-bin/detect_piuparts_issues.in
index 8008f50..059046c 100755
--- a/master-bin/detect_piuparts_issues.in
+++ b/master-bin/detect_piuparts_issues.in
@@ -28,6 +28,7 @@ get_config_value SECTIONS global sections
 # detect piuparts problems
 #
 
+BEGIN=$(date -u)
 FILE=`mktemp`
 for SECTION in $SECTIONS ; do
 	test -d $MASTER/$SECTION || continue
@@ -70,11 +71,14 @@ for SECTION in $SECTIONS ; do
 		find $MASTER/$SECTION/$subdir -name '*.log' -size 0 >> $FILE
 	done
 done
+END=$(date -u)
 if [ -s $FILE ] ; then
 	echo "piuparts problem detected!"
 	echo "(By grep'ing for 'tar: .*.tar.gz: Cannot open: No such file or directory'"
 	echo "and for some python errors and tracebacks in failed logs.)"
 	echo
+	echo "Begin: $BEGIN  End: $END"
+	echo
 	echo "Please review the following logfiles/packages."
         echo "If it is always the same package failing, it's likely to be an issue in the"
 	echo "package."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list