Skip to content

Commit fccc244

Browse files
Johan-Liebert1cgwalters
authored andcommitted
ci: Skip composefs tests on CentOS 9
On CentOS 9, composefs installation fails with EUCLEAN. Skipping the tests until we figure it out Avoid accessing status.booted.composefs.bootloader outside the composefs path in `test-install-outside-container` Increase DISK_IMG size to 15G in `test-install-to-filesystem-var-mount` as we need a larger ESP for composefs, and since we ate up space for that, ostree test failed with insufficient space Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
1 parent d93f73a commit fccc244

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ jobs:
166166
# centos-9 UKI is experimental/broken (https://github.com/bootc-dev/bootc/issues/1812)
167167
- test_os: centos-9
168168
variant: composefs-sealeduki-sdboot
169+
# centos-9 fails with EUCLEAN (https://github.com/bootc-dev/bootc/issues/1812)
170+
# See: https://github.com/bootc-dev/bcvk/pull/204
171+
- test_os: centos-9
172+
variant: composefs-sdboot
173+
- test_os: centos-9
174+
variant: composefs-grub
169175

170176
runs-on: ubuntu-24.04
171177

tmt/tests/booted/test-install-outside-container.nu

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ umount /var/mnt
3131
# And using systemd-run here breaks our install_t so we disable SELinux enforcement
3232
setenforce 0
3333

34-
let st = bootc status --json | from json
35-
let bootloader = ($st.status.booted.composefs.bootloader | str downcase)
36-
3734
let install_cmd = if (tap is_composefs) {
35+
let st = bootc status --json | from json
36+
let bootloader = ($st.status.booted.composefs.bootloader | str downcase)
3837
$"bootc install to-disk --disable-selinux --via-loopback --composefs-backend --bootloader=($bootloader) --filesystem ext4 --source-imgref ($target_image) ./disk.img"
3938
} else {
4039
$"bootc install to-disk --disable-selinux --via-loopback --filesystem xfs --source-imgref ($target_image) ./disk.img"

tmt/tests/booted/test-install-to-filesystem-var-mount.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ RUN rm -rf /usr/lib/bootc/bound-images.d/*
3333
EOF
3434
podman build -t "$TARGET_IMAGE" -f /tmp/Containerfile.drop-lbis
3535

36-
# Create a 12GB sparse disk image in /var/tmp (not /tmp which may be tmpfs)
36+
# Create a 15GB sparse disk image in /var/tmp (not /tmp which may be tmpfs)
37+
# Increased this as we want a larger ESP for composefs
3738
DISK_IMG=/var/tmp/disk-var-mount-test.img
38-
truncate -s 12G "$DISK_IMG"
39+
truncate -s 15G "$DISK_IMG"
3940

4041
# Setup loop device
4142
LOOP_DEV=$(losetup -f --show "$DISK_IMG")

0 commit comments

Comments
 (0)