Skip to content

Commit 0106a4b

Browse files
justfile/ci: Add composefs tests
Add tests for composefs backend for grub and sdboot. Update the testing matrix in CI Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent c354606 commit 0106a4b

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
matrix:
158158
# No fedora-44 due to https://bugzilla.redhat.com/show_bug.cgi?id=2429501
159159
test_os: [fedora-43, centos-9, centos-10]
160-
variant: [ostree, composefs-sealeduki-sdboot]
160+
variant: [ostree, composefs-sealeduki-sdboot, composefs-sdboot, composefs-grub]
161161
exclude:
162162
# centos-9 UKI is experimental/broken (https://github.com/bootc-dev/bootc/issues/1812)
163163
- test_os: centos-9
@@ -178,7 +178,18 @@ jobs:
178178
run: |
179179
BASE=$(just pullspec-for-os base ${{ matrix.test_os }})
180180
echo "BOOTC_base=${BASE}" >> $GITHUB_ENV
181-
echo "BOOTC_variant=${{ matrix.variant }}" >> $GITHUB_ENV
181+
182+
case "${{ matrix.variant }}" in
183+
composefs-grub|composefs-sdboot)
184+
echo "BOOTC_variant=composefs" >> $GITHUB_ENV
185+
;;
186+
187+
*)
188+
echo "BOOTC_variant=${{ matrix.variant }}" >> $GITHUB_ENV
189+
;;
190+
esac
191+
192+
182193
183194
if [ "${{ matrix.variant }}" = "composefs-sealeduki-sdboot" ]; then
184195
BUILDROOTBASE=$(just pullspec-for-os buildroot-base ${{ matrix.test_os }})
@@ -207,11 +218,12 @@ jobs:
207218

208219
- name: Run TMT integration tests
209220
run: |
210-
if [ "${{ matrix.variant }}" = "composefs-sealeduki-sdboot" ]; then
211-
just test-composefs
221+
if [[ "${{ matrix.variant }}" = composefs* ]]; then
222+
just "test-${{ matrix.variant }}"
212223
else
213224
just test-tmt integration
214225
fi
226+
215227
just clean-local-images
216228
217229
- name: Archive TMT logs

Justfile

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,32 @@ test-container: build build-units
105105

106106
# Build and test sealed composefs images
107107
[group('core')]
108-
test-composefs:
108+
test-composefs-sealeduki-sdboot:
109109
just variant=composefs-sealeduki-sdboot test-tmt readonly local-upgrade-reboot
110110

111+
[group('core')]
112+
test-composefs bootloader:
113+
just variant=composefs test-tmt --composefs-backend --bootloader {{bootloader}} \
114+
readonly \
115+
bib-build \
116+
download-only \
117+
image-pushpull-upgrade \
118+
image-upgrade-reboot \
119+
install-outside-container \
120+
install-to-filesystem-var-mount \
121+
soft-reboot \
122+
usroverlay
123+
124+
# Build and test composefs images booted using Type1 boot entries and systemd-boot as the bootloader
125+
[group('core')]
126+
test-composefs-sdboot:
127+
just test-composefs systemd
128+
129+
# Build and test composefs images booted using Type1 boot entries and grub as the bootloader
130+
[group('core')]
131+
test-composefs-grub:
132+
just test-composefs grub
133+
111134
# Run cargo fmt and clippy checks in container
112135
[group('core')]
113136
validate:
@@ -220,6 +243,7 @@ clean-local-images:
220243
podman image prune -f
221244
podman rmi {{fedora-coreos}} -f
222245

246+
223247
# Build packages (RPM) into target/packages/
224248
[group('maintenance')]
225249
package:

0 commit comments

Comments
 (0)