[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible Archlinux: detect "The requested URL returned error: 504" (gateway timeout) failures

Holger Levsen gitlab at salsa.debian.org
Fri Sep 28 14:47:56 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
0be9051e by Holger Levsen at 2018-09-28T13:31:49Z
reproducible Archlinux: detect "The requested URL returned error: 504" (gateway timeout) failures

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

- - - - -
0810f04c by Holger Levsen at 2018-09-28T13:47:38Z
reproducible Archlinux: correctly detect and report if pacman cannot lock it's database

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

- - - - -


2 changed files:

- bin/reproducible_build_archlinux_pkg.sh
- bin/reproducible_html_archlinux.sh


Changes:

=====================================
bin/reproducible_build_archlinux_pkg.sh
=====================================
@@ -100,8 +100,13 @@ create_pkg_html() {
 			echo DEPWAIT_0 > $ARCHLINUX_PKG_PATH/pkg.state
 			echo "       <img src=\"/userContent/static/weather-snow.png\" alt=\"depwait icon\" /> could not resolve dependencies as there are conflicts" >> $HTML_BUFFER
 		elif [ ! -z "$(egrep '==> ERROR: (Could not resolve all dependencies|.pacman. failed to install missing dependencies)' $ARCHLINUX_PKG_PATH/build1.log $ARCHLINUX_PKG_PATH/build2.log 2>/dev/null)" ] ; then
-			echo DEPWAIT_1 > $ARCHLINUX_PKG_PATH/pkg.state
-			echo "       <img src=\"/userContent/static/weather-snow.png\" alt=\"depwait icon\" /> could not resolve dependencies" >> $HTML_BUFFER
+			if [ ! -z "$(grep 'error: failed to init transaction (unable to lock database)' $ARCHLINUX_PKG_PATH/build1.log $ARCHLINUX_PKG_PATH/build2.log 2>/dev/null)" ] ; then
+				echo DEPWAIT_2 > $ARCHLINUX_PKG_PATH/pkg.state
+				echo "       <img src=\"/userContent/static/weather-snow.png\" alt=\"depwait icon\" /> pacman could not lock database" >> $HTML_BUFFER
+			else
+				echo DEPWAIT_1 > $ARCHLINUX_PKG_PATH/pkg.state
+				echo "       <img src=\"/userContent/static/weather-snow.png\" alt=\"depwait icon\" /> could not resolve dependencies" >> $HTML_BUFFER
+			fi
 		elif [ ! -z "$(egrep '^error: unknown package: ' $ARCHLINUX_PKG_PATH/build1.log $ARCHLINUX_PKG_PATH/build2.log 2>/dev/null)" ] ; then
 			echo 404_0 > $ARCHLINUX_PKG_PATH/pkg.state
 			echo "       <img src=\"/userContent/static/weather-severe-alert.png\" alt=\"404 icon\" /> unknown package" >> $HTML_BUFFER
@@ -139,6 +144,9 @@ create_pkg_html() {
 			elif [ ! -z "$(egrep 'fatal: the remote end hung up unexpectedly' $ARCHLINUX_PKG_PATH/build1.log $ARCHLINUX_PKG_PATH/build2.log 2>/dev/null)" ] ; then
 				echo 404_A > $ARCHLINUX_PKG_PATH/pkg.state
 				EXTRA_REASON="could not clone git repository"
+			elif [ ! -z "$(grep 'The requested URL returned error: 504' $ARCHLINUX_PKG_PATH/build1.log $ARCHLINUX_PKG_PATH/build2.log 2>/dev/null)" ] ; then
+				echo 404_B > $ARCHLINUX_PKG_PATH/pkg.state
+				EXTRA_REASON="with 504 - gateway timeout"
 			fi
 			echo "       <img src=\"/userContent/static/weather-severe-alert.png\" alt=\"404 icon\" /> $REASON $EXTRA_REASON" >> $HTML_BUFFER
 		elif [ ! -z "$(egrep '==> ERROR: (install file .* does not exist or is not a regular file|The download program wget is not installed)' $ARCHLINUX_PKG_PATH/build1.log 2>/dev/null)" ] ; then


=====================================
bin/reproducible_html_archlinux.sh
=====================================
@@ -18,8 +18,8 @@ echo "$(date -u) - starting."
 DATE=$(date -u +'%Y-%m-%d')
 YESTERDAY=$(date '+%Y-%m-%d' -d "-1 day")
 MEMBERS_FTBFS="0 1 2 3 4"
-MEMBERS_DEPWAIT="0 1"
-MEMBERS_404="0 1 2 3 4 5 6 7 8 9 A"
+MEMBERS_DEPWAIT="0 1 2"
+MEMBERS_404="0 1 2 3 4 5 6 7 8 9 A B"
 MEMBERS_FTBR="0 1 2"
 HTML_BUFFER=$(mktemp -t archlinuxrb-html-XXXXXXXX)
 HTML_REPOSTATS=$(mktemp -t archlinuxrb-html-XXXXXXXX)



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/f8d3d67bfeefa30c9915012c4d92ee7ed268e66d...0810f04c52e7b06b7c00c81cbcd451f862b4c1a7

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/f8d3d67bfeefa30c9915012c4d92ee7ed268e66d...0810f04c52e7b06b7c00c81cbcd451f862b4c1a7
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/qa-jenkins-scm/attachments/20180928/32e84446/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list