[Piuparts-commits] [piuparts] 01/01: detect_network_issues and detect_piuparts_issues: dynamically report detected issues.

Holger Levsen holger at layer-acht.org
Fri Apr 21 14:16:54 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 28c03a5adf4fff36c444486d10da3699b7df869f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Apr 21 16:16:44 2017 +0200

    detect_network_issues and detect_piuparts_issues: dynamically report detected issues.
---
 debian/changelog                     | 2 ++
 master-bin/detect_network_issues.in  | 6 +-----
 master-bin/detect_piuparts_issues.in | 5 +++--
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 32d9484..6be4fd5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -64,6 +64,8 @@ piuparts (0.77) UNRELEASED; urgency=medium
   * master-bin/report_untestable_packages.in: 
     - also report runtime.
     - only act on sections with precedence < 100.
+  * master-bin/detect_network_issues.in: dynamically report detected issues.
+  * master-bin/detect_piuparts_issues.in: dynamically report detected issues.
   * instances/piuparts.conf-template.pejacevic: 
     - Add new suite to be tested:
       - stable22sid, upgrading jessie -> stretch -> sid
diff --git a/master-bin/detect_network_issues.in b/master-bin/detect_network_issues.in
index 6becb02..e949e76 100755
--- a/master-bin/detect_network_issues.in
+++ b/master-bin/detect_network_issues.in
@@ -61,11 +61,7 @@ if [ -s $FILE ] ; then
 	echo
 	echo "Network problems on detected!"
 	echo "(By grep'ing for"
-	echo "    'Cannot initiate the connection to',"
-	echo "    'Failed to fetch',"
-	echo "    'Some index files failed to download',"
-	echo "    'Hash Sum mismatch',"
-	echo "    'The following signatures were invalid'"
+	grep rgrep $0 | grep -v "grep rgrep" | cut -d "\$" -f1
 	echo "in failed logs.)"
 	echo "Test failures due to modified /usr/share/doc/*/changelog.*"
 	echo "are caused by mirror updates during the test."
diff --git a/master-bin/detect_piuparts_issues.in b/master-bin/detect_piuparts_issues.in
index ecc8daf..0f33953 100755
--- a/master-bin/detect_piuparts_issues.in
+++ b/master-bin/detect_piuparts_issues.in
@@ -77,8 +77,9 @@ if [ -s $FILE ] ; then
 	echo "Runtime: $RUNTIME"
 	echo
 	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 "(By grep'ing for)
+	grep rgrep $0 | grep -v "grep rgrep" | cut -d "\$" -f1
+	echo "in failed logs.)"
 	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"

-- 
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