Skip to content

Commit 521f8a4

Browse files
[tests] Use Alpine for source.disk base instead of Ubuntu noble
The clone step is what this test exercises, not the HTTP import. Ubuntu noble is ~600MB; Alpine is ~50MB, which cuts CI time without losing coverage. Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent daec7c3 commit 521f8a4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎hack/e2e-apps/vm-disk.bats‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ EOF
3535
kubectl -n tenant-test delete vmdisks.apps.cozystack.io $clone --ignore-not-found --timeout=2m || true
3636
kubectl -n tenant-test delete vmdisks.apps.cozystack.io $base --ignore-not-found --timeout=2m || true
3737

38-
# Create the base disk via source.http (fast URL re-used from vminstance.bats)
38+
# Create the base disk via source.http. Alpine is ~50MB vs Ubuntu noble's ~600MB,
39+
# which keeps this test fast; the assertion here is the clone step, not the HTTP import.
3940
kubectl apply -f - <<EOF
4041
apiVersion: apps.cozystack.io/v1alpha1
4142
kind: VMDisk
@@ -45,7 +46,7 @@ metadata:
4546
spec:
4647
source:
4748
http:
48-
url: https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
49+
url: https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/nocloud_alpine-3.21.6-x86_64-bios-cloudinit-r0.qcow2
4950
optical: false
5051
storage: 5Gi
5152
storageClass: replicated

0 commit comments

Comments
 (0)