[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible_debian_live_build: Use the new snapshot service
Mattia Rizzolo (@mattia)
gitlab at salsa.debian.org
Wed Aug 25 22:47:23 BST 2021
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
c266ac41 by Roland Clobus at 2021-08-25T23:47:08+02:00
reproducible_debian_live_build: Use the new snapshot service
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/reproducible_debian_live_build.sh
Changes:
=====================================
bin/reproducible_debian_live_build.sh
=====================================
@@ -84,8 +84,11 @@ output_echo "Received git version $(git log -1 --pretty=oneline)"
popd
export LB_OUTPUT=${RESULTSDIR}/lb_output.txt
-# Use 'now' as the basic timestamp
-export SOURCE_DATE_EPOCH=$(date +%s)
+# Use the timestamp of the latest mirror snapshot
+wget https://debian.notset.fr/snapshot/mr/timestamp/debian/latest --output-document ${RESULTSDIR}/latest
+export SNAPSHOT_TIMESTAMP=$(cat ${RESULTSDIR}/latest | awk '/"result":/ { split($0, a, "\""); print a[4] }')
+export SOURCE_DATE_EPOCH=$(date -d $(echo ${SNAPSHOT_TIMESTAMP} | awk '{ printf "%s-%s-%sT%s:%s:%sZ", substr($0,1,4), substr($0,5,2), substr($0,7,2), substr($0,10,2), substr($0,12,2), substr($0,14,2) }') +%s)
+export MIRROR=http://debian.notset.fr/snapshot/archive/debian/${SNAPSHOT_TIMESTAMP}
# Configuration for the smallest live image (mini, without installer)
# - For /etc/apt/sources.list: Use the mirror from ${MIRROR}, no security, no updates
@@ -306,10 +309,10 @@ if [ -f "${RESULTSDIR}/${PROJECTNAME}/${CONFIGURATION}/live-image-amd64.hybrid.i
save_artifacts debian_live_build ${CONFIGURATION} https://wiki.debian.org/ReproducibleInstalls/LiveImages
else
if [ "$RESULT" != "0" ] ; then
- echo "${DIFFOSCOPE} for ${PROJECTNAME} in configuration ${CONFIGURATION} returned error code ${RESULT}" > ${PAGE}
+ echo "${DIFFOSCOPE} for ${PROJECTNAME} in configuration ${CONFIGURATION} with timestamp ${SOURCE_DATE_EPOCH} (${SNAPSHOT_TIMESTAMP}) returned error code ${RESULT}" > ${PAGE}
save_artifacts debian_live_build ${CONFIGURATION} https://wiki.debian.org/ReproducibleInstalls/LiveImages
else
- echo "${PROJECTNAME} in configuration ${CONFIGURATION} is reproducible" > ${PAGE}
+ echo "${PROJECTNAME} in configuration ${CONFIGURATION} with timestamp ${SOURCE_DATE_EPOCH} (${SNAPSHOT_TIMESTAMP}) is reproducible" > ${PAGE}
fi
fi
publish_page debian_live_build
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c266ac4107fb9267d381fd0f9bed304029ec7050
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c266ac4107fb9267d381fd0f9bed304029ec7050
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/20210825/9b8713df/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list