[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, develop, updated. 0.43-36-ga407597

Andreas Beckmann debian at abeckmann.de
Mon Feb 27 14:04:01 UTC 2012


The following commit has been merged in the develop branch:
commit 18d03290ae7e3ea748a63c03987f0b90b4fbcb8c
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Fri Feb 24 14:38:54 2012 +0100

    check for piuparts issues and network issues in bugged logs
    
    Since the slave may deliver new logfiles while the daily
    processing runs
      detect_piuparts_issues
      detect_network_issues
      report_newly_bugged_packages
    there is a possibility for logs with piuparts or network issues
    to be classified as bugged by piuparts-analyze.
    
    Just run the detection of network and piuparts issues for
    bugged/*.log, too
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/home/piupartsm/bin/detect_network_issues b/home/piupartsm/bin/detect_network_issues
index 987a5df..eba5424 100755
--- a/home/piupartsm/bin/detect_network_issues
+++ b/home/piupartsm/bin/detect_network_issues
@@ -46,16 +46,18 @@ get_config_value SECTIONS global sections
 
 FILE=`mktemp`
 for SECTION in $SECTIONS ; do 
-	rgrep -l "Cannot initiate the connection to" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l "Hash Sum mismatch" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "Failed to fetch.*Could not resolve" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "Failed to fetch.*Something wicked happened resolving" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "Failed to fetch.*Unable to connect to" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l "Some index files failed to download, they have been ignored, or old ones used instead." $MASTER/$SECTION/fail >> $FILE
-	rgrep -l "Some index files failed to download. They have been ignored, or old ones used instead." $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "W: GPG error: .* Release: The following signatures were invalid: BADSIG" $MASTER/$SECTION/fail >> $FILE
-	# modified changelogs are usually caused by mirror pushes during the piuparts test
-	rgrep -l -E '  /usr/share/doc/(.*)/changelog.*owned by: \1' $MASTER/$SECTION/fail >> $FILE
+	for subdir in fail bugged ; do
+		rgrep -l "Cannot initiate the connection to" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l "Hash Sum mismatch" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "Failed to fetch.*Could not resolve" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "Failed to fetch.*Something wicked happened resolving" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "Failed to fetch.*Unable to connect to" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l "Some index files failed to download, they have been ignored, or old ones used instead." $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l "Some index files failed to download. They have been ignored, or old ones used instead." $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "W: GPG error: .* Release: The following signatures were invalid: BADSIG" $MASTER/$SECTION/$subdir >> $FILE
+		# modified changelogs are usually caused by mirror pushes during the piuparts test
+		rgrep -l -E '  /usr/share/doc/(.*)/changelog.*owned by: \1' $MASTER/$SECTION/$subdir >> $FILE
+	done
 done
 if [ -s $FILE ] ; then 
 	echo "Network problems on detected!"
diff --git a/home/piupartsm/bin/detect_piuparts_issues b/home/piupartsm/bin/detect_piuparts_issues
index ca8c739..d590aad 100755
--- a/home/piupartsm/bin/detect_piuparts_issues
+++ b/home/piupartsm/bin/detect_piuparts_issues
@@ -46,14 +46,16 @@ get_config_value SECTIONS global sections
 
 FILE=`mktemp`
 for SECTION in $SECTIONS ; do 
-	rgrep -l -E "tar( \(child\))?: .*.tar.gz: Cannot open: No such file or directory" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "gzip: stdin: invalid compressed data--crc error" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "ERROR:.*:Temporary directory is not a directory" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "^RuntimeError: maximum recursion depth exceeded while calling a Python object" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "^Traceback" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "^OSError:" $MASTER/$SECTION/fail >> $FILE
-	rgrep -l -e "^IndentationError:" $MASTER/$SECTION/fail >> $FILE
-	# Python errors from maintainer scripts etc. would be indented by 2 spaces, so don't match here.
+	for subdir in fail bugged ; do
+		rgrep -l -E "tar( \(child\))?: .*.tar.gz: Cannot open: No such file or directory" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "gzip: stdin: invalid compressed data--crc error" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "ERROR:.*:Temporary directory is not a directory" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "^RuntimeError: maximum recursion depth exceeded while calling a Python object" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "^Traceback" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "^OSError:" $MASTER/$SECTION/$subdir >> $FILE
+		rgrep -l -e "^IndentationError:" $MASTER/$SECTION/$subdir >> $FILE
+		# Python errors from maintainer scripts etc. would be indented by 2 spaces, so don't match here.
+	done
 done
 if [ -s $FILE ] ; then 
 	echo "piuparts problem detected!"

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list