Unverified Commit a395b84f authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

reproducible: fix the auto-offline thing by checking content of the permalinks...


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's avatarMattia Rizzolo <mattia@debian.org>
parent dcdaea8e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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/