From cccc73178e25e9f254b039555440235820183baa Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Tue, 31 Mar 2026 01:05:58 +0200 Subject: [PATCH] Add repro test for the rootFS Show bit for bit reproducibility of the rootFS --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4241153..be45a44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,10 +149,16 @@ image:build:secure: .test_repro: stage: repro before_script: - - pacman -Syu --noconfirm git make fakechroot fakeroot podman diffoci + - pacman -Syu --noconfirm git make fakechroot fakeroot podman diffoscope diffoci - pacman -Sdd --noconfirm devtools script: - make BUILDDIR="$PWD/repro-build" OUTPUTDIR="$PWD/repro-output" $PWD/repro-output/Dockerfile.repro + - echo "The sha256 hash of the original rootFS is:" + - cat output/repro.tar.zst.SHA256 + - echo "The sha256 hash of the rebuilt rootFS is:" + - cat repro-output/repro.tar.zst.SHA256 + - diffoscope output/repro.tar.zst repro-output/repro.tar.zst + - echo "RootFS is reproducible!" - | SOURCE_DATE_EPOCH=$(date -u -d "-1 day" +%s) podman build \