[Git][qa/jenkins.debian.net][master] reproducible Debian: revert to not using systemd-run, as jenkins does not get...

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Oct 17 00:42:29 BST 2023



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


Commits:
6c2c7a27 by Holger Levsen at 2023-10-17T01:41:37+02:00
reproducible Debian: revert to not using systemd-run, as jenkins does not get authorized by polkit right now

test case for jenkins user:

systemd-run  --scope --collect --same-dir diffoscope --version

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

- - - - -


1 changed file:

- bin/reproducible_build.sh


Changes:

=====================================
bin/reproducible_build.sh
=====================================
@@ -376,9 +376,9 @@ call_diffoscope_on_changes_files() {
 	# 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
-		buster)	DIFFOSCOPE_OUTPUT="--html ./${DBDREPORT}"
+		buster)	DIFFOSCOPE_OUTPUT="--html $TMPDIR/${DBDREPORT}"
 				;;
-		*)		DIFFOSCOPE_OUTPUT="--html ./${DBDREPORT} --text ./$DBDTXT --json ./$DBDJSON"
+		*)		DIFFOSCOPE_OUTPUT="--html $TMPDIR/${DBDREPORT} --text $TMPDIR/$DBDTXT --json $TMPDIR/$DBDJSON"
 				;;
 	esac
 	set -x
@@ -390,13 +390,12 @@ call_diffoscope_on_changes_files() {
 	##dbd 	--run-session \
 	##dbd 	-c "$session" \
 	##dbd 	-- sh -c "export TMPDIR=$TEMP ; timeout $TIMEOUT diffoscope \
-	( timeout 155m nice sh -c "export TMPDIR=$TEMP ; cd $TMPDIR ; timeout $TIMEOUT ionice -n 6 \
-			systemd-run --user --wait --collect --same-dir diffoscope \
+	( timeout 155m nice sh -c "export TMPDIR=$TEMP ; cd $TMPDIR ; timeout $TIMEOUT ionice -n 6 diffoscope \
 			${DIFFOSCOPE_TIMEOUT-} \
 			${DIFFOSCOPE_OUTPUT} \
 			--profile=- \
-			./b1/${CHANGES} \
-			./b2/${CHANGES}" \
+			$TMPDIR/b1/${CHANGES} \
+			$TMPDIR/b2/${CHANGES}" \
 	2>&1 ) >> $TMPLOG
 	RESULT=$?
 	set -e



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6c2c7a27bf9b06f5adb11596a1f2eabd8c0cf3c9
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/20231016/45907caf/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list