[Git][qa/jenkins.debian.net][master] reproducible Debian: automatically reschedule packages regressing to FTBFS or FTBR

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Jan 4 16:59:56 GMT 2024



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


Commits:
8d145dc9 by Holger Levsen at 2024-01-04T17:59:00+01:00
reproducible Debian: automatically reschedule packages regressing to FTBFS or FTBR

this is done after updating the DB, so if the result is reproduced,
the package won't be rescheduled again.

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

- - - - -


1 changed file:

- bin/reproducible_build.sh


Changes:

=====================================
bin/reproducible_build.sh
=====================================
@@ -96,6 +96,7 @@ update_db_and_html() {
 	#
 	# save everything as status of this package in the db
 	#
+	local RETRY=false
 	STATUS="$@"
 	local OLD_STATUS=$(query_db "SELECT status FROM results WHERE package_id='${SRCPKGID}'" || \
 			   query_db "SELECT status FROM results WHERE package_id='${SRCPKGID}'")
@@ -106,6 +107,7 @@ update_db_and_html() {
 			MESSAGE="${DEBIAN_URL}/${SUITE}/${ARCH}/${SRCPACKAGE} : ${OLD_STATUS} ➤ ${STATUS}"
 			log_info "$MESSAGE"
 			irc_message debian-reproducible-changes "$MESSAGE"
+			RETRY=true
 		fi
 		if [ "$OLD_STATUS" != "$STATUS" ] && [ "$NOTIFY_MAINTAINER" -eq 1 ] && \
 		  [ "$OLD_STATUS" != "depwait" ] && [ "$STATUS" != "depwait" ] && \
@@ -124,6 +126,9 @@ update_db_and_html() {
 	echo
 	echo "$(date -u) - successfully updated the database and updated $DEBIAN_URL/rb-pkg/${SUITE}/${ARCH}/$SRCPACKAGE.html"
 	echo
+	if $RETRY ; then
+		/srv/jenkins/bin/reproducible_schedule_on_demand.sh -a ${ARCH} -s ${SUITE} ${SRCPACKAGE} || true
+	fi
 }
 
 update_rbuildlog() {



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8d145dc968d7900026702c59ced828066a2cc433

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8d145dc968d7900026702c59ced828066a2cc433
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/20240104/3ba0acf3/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list