Skip to content

Commit

Permalink
feat(ci): repro-check.sh - use HostOS .zst image instead of .gz
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Nov 16, 2023
1 parent e029d6c commit 987cc3f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gitlab-ci/tools/repro-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ download_ci_files() {
local os_url="${BASE_URL}/${os_type}/update-img/update-img.tar.gz"
local sha_url="${BASE_URL}/${os_type}/update-img/SHA256SUMS"

if [ "$os_type" == "host-os" ]; then
os_url="${BASE_URL}/${os_type}/update-img/update-img.tar.zst"
sha_url="${BASE_URL}/${os_type}/update-img/SHA256SUMS"
fi

if [ "$os_type" == "setup-os" ]; then
os_url="${BASE_URL}/${os_type}/disk-img/disk-img.tar.gz"
sha_url="${BASE_URL}/${os_type}/disk-img/SHA256SUMS"
Expand Down Expand Up @@ -304,7 +309,7 @@ check_ci_hash() {
log "Validating that uploaded image hashes match the provided proposal hashes"

check_ci_hash "guestos" "update-img.tar.gz" "ci_package_guestos_sha256_hex"
check_ci_hash "hostos" "update-img.tar.gz" "ci_package_hostos_sha256_hex"
check_ci_hash "hostos" "update-img.tar.zst" "ci_package_hostos_sha256_hex"
check_ci_hash "setupos" "disk-img.tar.gz" "ci_package_setupos_sha256_hex"

log_success "The CI's artifacts and hash match"
Expand Down Expand Up @@ -351,7 +356,7 @@ log "Build IC-OS"
log_success "Built IC-OS successfully"

mv artifacts/icos/guestos/update-img.tar.gz "$dev_out/guestos"
mv artifacts/icos/hostos/update-img.tar.gz "$dev_out/hostos"
mv artifacts/icos/hostos/update-img.tar.zst "$dev_out/hostos"
mv artifacts/icos/setupos/disk-img.tar.gz "$dev_out/setupos"

compute_dev_hash() {
Expand All @@ -367,7 +372,7 @@ compute_dev_hash() {
}

compute_dev_hash "guestos" "update-img.tar.gz" "dev_package_guestos_sha256_hex"
compute_dev_hash "hostos" "update-img.tar.gz" "dev_package_hostos_sha256_hex"
compute_dev_hash "hostos" "update-img.tar.zst" "dev_package_hostos_sha256_hex"
compute_dev_hash "setupos" "disk-img.tar.gz" "dev_package_setupos_sha256_hex"

compare_hashes() {
Expand Down

0 comments on commit 987cc3f

Please sign in to comment.