Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tmt/tests/booted/test-switch-from-delta.nu
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const image = "localhost/bootc-delta-target:latest"
const delta = "/var/tmp/image-1-to-2.oci-delta"
const state = "/var/tmp/bootc-delta-state.json"
const marker = "/usr/share/testing-bootc-delta"
# Largest file (in MiB) oci-delta diffs with bsdiff; see initial_build
const max_bsdiff_mib = 64

def initial_build [] {
tap begin "switch from OCI delta"
Expand Down Expand Up @@ -56,7 +58,9 @@ def initial_build [] {
let reference = $"localhost/bootc-delta-target@($target.Digest)"
assert ($target.Digest != $st.status.booted.image.imageDigest)

oci-delta create $"oci-archive:($source_archive)" $"containers-storage:($image)" $delta
# bsdiff needs ~16 bytes of memory per byte of the old file; the ~120 MiB
# UKI (under oci-delta's default 192 MiB cap) got it OOM killed in the 4G VM.
oci-delta create --max-bsdiff-size $max_bsdiff_mib $"oci-archive:($source_archive)" $"containers-storage:($image)" $delta
# Keep the target available only through the delta.
podman rmi $image

Expand Down
Loading