[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: fix the auto-offline thing by checking content of the permalinks...

Mattia Rizzolo gitlab at salsa.debian.org
Tue Oct 1 15:05:28 BST 2019



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
a395b84f by Mattia Rizzolo at 2019-10-01T14:04:29Z
reproducible: fix the auto-offline thing by checking content of the permalinks file instead of following the lastSuccessfulBuild link that is not being updated anymore.  bad jenkins.

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


2 changed files:

- bin/reproducible_maintenance.sh
- logparse/reproducible.rules


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -207,14 +207,14 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
 		esac
 		cd $i/builds
 		LAST=$(ls -rt1 | tail -1)
-		GOOD=$(basename $(readlink -f lastSuccessfulBuild))
+		GOOD=$(awk '/^lastSuccessfulBuild/ {print $2}' permalinks)
 		if [ "$LAST" = "$GOOD" ] ; then
 			DIFF=0
 		else
 			let DIFF=$LAST-$GOOD || DIFF=-1
 		fi
 		if [ $DIFF -eq -1 ] ; then
-			echo "Problems analysing $i build logs, ignoring $NODE."
+			echo "Warning: Problems analysing $i build logs, ignoring $NODE."
 		# either the diff is greater than $MAXDIFF (=the last $MAXDIFF job runs failed)
 		# or the last successful run is older than an hour (=a job is still running/hanging)
 		elif [ $DIFF -gt $MAXDIFF ] || [ $LAST -ot $DUMMY_FILE ] ; then


=====================================
logparse/reproducible.rules
=====================================
@@ -32,3 +32,4 @@ warning /Warning: schroots older than/
 warning /Warning: SQL query .+ failed.$/
 warning /Warning: systemd is reporting errors/
 warning /Warning: .+ has wrong MTU, please tell the jenkins admins to fix this./
+warning /Warning: Problems analysing/



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/a395b84fc35e8164ef6404f64793f406534ebfdf

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/a395b84fc35e8164ef6404f64793f406534ebfdf
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/20191001/de57dd76/attachment.html>


More information about the Qa-jenkins-scm mailing list