[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: debstrap jobs: temp. call diffoscope differently...

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon Aug 29 19:09:46 BST 2022



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


Commits:
22cd970a by Holger Levsen at 2022-08-29T20:09:37+02:00
reproducible Debian: debstrap jobs: temp. call diffoscope differently...

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

- - - - -


1 changed file:

- bin/reproducible_debstrap.sh


Changes:

=====================================
bin/reproducible_debstrap.sh
=====================================
@@ -16,17 +16,19 @@ set -o pipefail # see eg http://petereisentraut.blogspot.com/2010/11/pipefail.ht
 cleanup() {
 	local RESULT=$1
 	output_echo "Cleanup ${RESULT}"
-	# Cleanup the workspace
-	if [ ! -z "${BUILDDIR}" ]; then
-		echo sudo rm -rf --one-file-system ${BUILDDIR}
-	fi
+	# Cleanup the workspace and results directory
+	for CLEANUP in ${BUILDDIR} ${RESULTSDIR} ; do
+		if [ ! -z "$CLEANUP" ]; then
+			echo sudo rm -rf --one-file-system ${CLEANUP}
+		fi
+	done
 }
 
 
 # Init some variables
 export TOOL="$1"
 export SUITE="$2"
-output_echo "About to bootstrap $SUITE using $TOOL."
+output_echo "About to bootstrap $SUITE using $TOOL version $(dpkg-query  --showformat='${Version}' --show $TOOL)."
 export SOURCE_DATE_EPOCH="$(date +%s)"
 output_echo "SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH"
 export BUILDDIR=$(mktemp --tmpdir=/srv/workspace/ -d -t ${TOOL}-${SUITE}.XXXXXXXX)
@@ -84,7 +86,10 @@ else
 	TIMEOUT="240m"
 	DIFFOSCOPE="$(schroot --directory /tmp -c chroot:jenkins-reproducible-${DBDSUITE}-diffoscope diffoscope -- --version 2>&1)"
 	TMPDIR=${RESULTSDIR}
-	call_diffoscope ${TOOL} ${SUITE}.tar
+	#call_diffoscope ${TOOL} ${SUITE}.tar
+	# the previous, temporarily disabled line is only useful if we also make the .html file visible...
+	schroot --directory /tmp -c chroot:jenkins-reproducible-${DBDSUITE}-diffoscope diffoscope -- --restructured-text $RESULTSDIR/${TOOL}_${SUITE}.txt $RESULTSDIR/b1/${TOOL}/${SUITE}.tar $RESULTSDIR/b2/${TOOL}/${SUITE}.tar
+	cat $RESULTSDIR/${TOOL}_${SUITE}.txt
 fi
 
 cleanup success



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/22cd970af27e070d59824c5dfc2672ead1d020e3
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/20220829/48e95b85/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list