diff mbox series

[isar-cip-core,v1,1/2] .reproducible-check-ci.yml: Upload wic files for reproducibility test

Message ID 20250224090052.260495-2-Adithya.Balakumar@toshiba-tsip.com (mailing list archive)
State New
Headers show
Series Test reproducibility of wic images | expand

Commit Message

Adithya Balakumar Feb. 24, 2025, 9 a.m. UTC
From: Adithya Balakumar <adithya.balakumar@toshiba-tsip.com>

Currently only the individual partition images are checked in the
reproducibility test. Now let's check the reproducibility of entire
disk image too.

Signed-off-by: Adithya Balakumar <adithya.balakumar@toshiba-tsip.com>
---
 .reproducible-check-ci.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.reproducible-check-ci.yml b/.reproducible-check-ci.yml
index 59fc216..7bf1ac6 100644
--- a/.reproducible-check-ci.yml
+++ b/.reproducible-check-ci.yml
@@ -33,12 +33,14 @@ 
     # Build 2nd time
     - !reference [.build_base, script]
     - mv build/tmp/deploy/images/${target} image2
+    # Compress artifacts
+    - tar --ignore-failed-read -cJf image1.tar.xz image1/*.wic* image1/*.swu
+    - tar --ignore-failed-read -cJf image2.tar.xz image2/*.wic* image2/*.swu
   artifacts:
     expire_in: 1 day
     paths:
       - scripts/repro-tests.sh
-      - image*/*.wic.p*
-      - image*/*.swu
+      - image*.tar.xz
 
 .repro-test:
   image:
@@ -55,6 +57,10 @@ 
   before_script:
     - apt update && DEBIAN_FRONTEND=noninteractive apt install -y diffoscope
   script:
+    - mkdir image1
+    - tar -xJf image1.tar.xz --strip-components=1 -C image1
+    - mkdir image2
+    - tar -xJf image2.tar.xz --strip-components=1 -C image2
     - ./scripts/repro-tests.sh --release ${release} --target ${target} --extension ${extension} image1 image2
   artifacts:
     when: always