[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] trbo health check: detect live build encountering incomplete snapshots

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Jan 8 00:41:32 GMT 2022



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


Commits:
bf8dd46d by Holger Levsen at 2022-01-08T01:41:15+01:00
trbo health check: detect live build encountering incomplete snapshots

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

- - - - -


2 changed files:

- bin/reproducible_debian_live_build.sh
- bin/reproducible_system_health.sh


Changes:

=====================================
bin/reproducible_debian_live_build.sh
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 
-# Copyright 2021 Holger Levsen <holger at layer-acht.org>
+# Copyright 2021-2022 Holger Levsen <holger at layer-acht.org>
 # Copyright 2021 Roland Clobus <rclobus at rclobus.nl>
 # released under the GPLv2
 
@@ -344,7 +344,7 @@ sudo lb build | tee -a $LB_OUTPUT
 RESULT=$?
 set -e
 if [ "$RESULT" != "0" ] ; then
-   output_echo "Warning: lb build failed with $RESULT. The latest snapshot might not be complete (yet). Use the previous snapshot instead"
+   output_echo "Warning: lb build failed with $RESULT. The latest snapshot might not be complete (yet). Now trying again using the previous snapshot instead."
    # Occasionally the snapshot is not complete, use the the previous snapshot instead of giving up
    # Find the snapshot that matches 1 second before the current snapshot
    wget ${WGET_OPTIONS} http://snapshot.notset.fr/mr/timestamp/debian/$(date --utc -d @$((${SOURCE_DATE_EPOCH}-1)) +%Y%m%dT%H%M%SZ) --output-document ${RESULTSDIR}/but_latest


=====================================
bin/reproducible_system_health.sh
=====================================
@@ -220,6 +220,8 @@ for JOB_NAME in $(ls -1d reproducible_* | sort ) ; do
 			small_note "compiler warning during build"
 		elif $(grep -q "^Warning: The following builds have failed due to diffoscope schroot problems and will be rescheduled now:" $LOG) ; then
 			small_note "found and rescheduled build failures due to diffoscope schroot problems"
+		elif $(grep -E -q "Warning: lb build failed with .* The latest snapshot might not be complete \(yet\). Now trying again using the previous snapshot instead." $LOG) ; then
+			small_note "live build encountered an incomplete snapshot stamp."
 		fi
 		if ! $SUSPECT ; then
 			echo "1|$JOB_NAME|$JOB_URL|true|$NOTE" >> ${UNSTABLE_JOBS}



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bf8dd46d36fe7562b7459a6c7d5193bf25098c7b
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/20220108/13ee6b41/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list