Skip to content

Commit 163b012

Browse files
committed
test(ostree): add greenboot packages to blueprint to use Copr repo
Add greenboot and greenboot-default-health-checks to osbuild-composer blueprint to ensure they're pulled from Copr source instead of base image. Also add depsolve output verification. Signed-off-by: Sarita Mahajan <sarmahaj@redhat.com>
1 parent fe72330 commit 163b012

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

tests/greenboot-ostree.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,15 @@ build_image() {
259259
# Prepare the blueprint for the compose.
260260
greenprint "📋 Preparing blueprint"
261261
sudo composer-cli blueprints push "$blueprint_file"
262-
sudo composer-cli blueprints depsolve "$blueprint_name"
262+
sudo composer-cli blueprints depsolve "$blueprint_name" | tee /tmp/depsolve-output.txt
263+
264+
# Verify greenboot is being pulled from Copr (should have PR-specific NVR)
265+
greenprint "🔍 Verifying greenboot source"
266+
if grep -i "greenboot" /tmp/depsolve-output.txt; then
267+
greenprint "✅ greenboot package found in depsolve output"
268+
else
269+
greenprint "⚠️ greenboot not explicitly in depsolve (may be in base image)"
270+
fi
263271

264272
# Get worker unit file so we can watch the journal.
265273
WORKER_UNIT=$(sudo systemctl list-units | grep -o -E "osbuild.*worker.*\.service")
@@ -371,6 +379,14 @@ version = "*"
371379
name = "sssd"
372380
version = "*"
373381
382+
[[packages]]
383+
name = "greenboot"
384+
version = "*"
385+
386+
[[packages]]
387+
name = "greenboot-default-health-checks"
388+
version = "*"
389+
374390
[customizations.services]
375391
enabled = ["greenboot-healthcheck.service", "greenboot-set-rollback-trigger.service", "greenboot-success.target"]
376392

0 commit comments

Comments
 (0)