[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible arch: detect more types of failures

Holger Levsen holger at moszumanska.debian.org
Sat Oct 17 13:41:54 UTC 2015


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

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 93e819f1f69d84d3d63277a955b424b9c278d61c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Oct 17 15:40:59 2015 +0200

    reproducible arch: detect more types of failures
---
 bin/reproducible_html_archlinux.sh | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 9aee073..45e4109 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -48,13 +48,20 @@ for PKG in $(find $ARCHBASE/* -maxdepth 1 -type d -exec basename {} \;) ; do
 		fi
 	done
 	if [ -z "$(cd $ARCHBASE/$PKG/ ; ls *.pkg.tar.xz.html 2>/dev/null)" ] ; then
-		if [ ! -z "$(grep 'ERROR: Could not resolve all dependencies' $ARCHBASE/$PKG/build1.log)" ] ; then
+		if [ ! -z "$(grep '==> ERROR: Could not resolve all dependencies' $ARCHBASE/$PKG/build1.log)" ] ; then
 			write_page "      <td>could not resolve dependencies</td>"
-		elif [ ! -z "$(egrep 'ERROR: .pacman. failed to install missing dependencies.' $ARCHBASE/$PKG/build1.log)" ] ; then
+		elif [ ! -z "$(egrep '==> ERROR: .pacman. failed to install missing dependencies.' $ARCHBASE/$PKG/build1.log)" ] ; then
 			write_page "      <td>failed to install dependencies</td>"
-
-		else
+		elif [ ! -z "$(egrep '==> ERROR: A failure occurred in (build|package)' $ARCHBASE/$PKG/build1.log)" ] ; then
 			write_page "      <td>failed to build from source</td>"
+		elif [ ! -z "$(egrep '==> ERROR: A failure occurred in check' $ARCHBASE/$PKG/build1.log)" ] ; then
+			write_page "      <td>failed to build from source, when running tests</td>"
+		elif [ ! -z "$(egrep '==> ERROR: Failure while downloading' $ARCHBASE/$PKG/build1.log)" ] ; then
+			write_page "      <td>failed to download source</td>"
+		elif [ ! -z "$(egrep '==> ERROR: One or more files did not pass the validity check' $ARCHBASE/$PKG/build1.log)" ] ; then
+			write_page "      <td>failed to verify source</td>"
+		else
+			write_page "      <td>probably failed to build from source, please investigate</td>"
 		fi
 	else
 		write_page "      <td>"

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



More information about the Qa-jenkins-scm mailing list