Commit 098742fb authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: only keep diffoscope html output (=no json + no txt) for...


reproducible Debian: only keep diffoscope html output (=no json + no txt) for LTS suites and older to save diskspace on jenkins host

Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 31c6bb1f
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
#!/bin/bash
# vim: set noexpandtab:

# Copyright 2014-2022 Holger Levsen <holger@layer-acht.org>
# Copyright 2014-2023 Holger Levsen <holger@layer-acht.org>
#         © 2015-2018 Mattia Rizzolo <mattia@debian.org>
# released under the GPLv2

@@ -372,6 +372,14 @@ call_diffoscope_on_changes_files() {
		# this --timeout 120m below is arbitrary and can be subject to further evaluation later
		DIFFOSCOPE_TIMEOUT="--timeout $(( 120 * 60 ))"
	fi
	# for older suites we only keep diffoscope html output, which saves us >70GB diskspace...
	case "$SUITE" in
		# add bullseye here once it becomes LTS and also update this comment then
		stretch|buster)	DIFFOSCOPE_OUTPUT="--html $TMPDIR/${DBDREPORT}"
				;;
		*)		DIFFOSCOPE_OUTPUT="--html $TMPDIR/${DBDREPORT} --text $TMPDIR/$DBDTXT --json $TMPDIR/$DBDJSON"
				;;
	esac
	set -x
	set +e
	( timeout 155m nice schroot \
@@ -380,9 +388,7 @@ call_diffoscope_on_changes_files() {
		-c "$session" \
		-- sh -c "export TMPDIR=$TEMP ; timeout $TIMEOUT diffoscope \
			${DIFFOSCOPE_TIMEOUT-} \
			--html $TMPDIR/${DBDREPORT} \
			--text $TMPDIR/$DBDTXT \
			--json $TMPDIR/$DBDJSON \
			${DIFFOSCOPE_OUTPUT} \
			--profile=- \
			$TMPDIR/b1/${CHANGES} \
			$TMPDIR/b2/${CHANGES}" \