Skip to content

Commit a402c45

Browse files
Johan-Liebert1cgwalters
authored andcommitted
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 <pragyanpoudyal41999@gmail.com>
1 parent 2c11d55 commit a402c45

2 files changed

Lines changed: 41 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
matrix:
162162
# No fedora-44 due to https://bugzilla.redhat.com/show_bug.cgi?id=2429501
163163
test_os: [fedora-43, centos-9, centos-10]
164-
variant: [ostree, composefs-sealeduki-sdboot]
164+
variant: [ostree, composefs-sealeduki-sdboot, composefs-sdboot, composefs-grub]
165165
exclude:
166166
# centos-9 UKI is experimental/broken (https://github.com/bootc-dev/bootc/issues/1812)
167167
- test_os: centos-9
@@ -182,7 +182,18 @@ jobs:
182182
run: |
183183
BASE=$(just pullspec-for-os base ${{ matrix.test_os }})
184184
echo "BOOTC_base=${BASE}" >> $GITHUB_ENV
185-
echo "BOOTC_variant=${{ matrix.variant }}" >> $GITHUB_ENV
185+
186+
case "${{ matrix.variant }}" in
187+
composefs-grub|composefs-sdboot)
188+
echo "BOOTC_variant=composefs" >> $GITHUB_ENV
189+
;;
190+
191+
*)
192+
echo "BOOTC_variant=${{ matrix.variant }}" >> $GITHUB_ENV
193+
;;
194+
esac
195+
196+
186197
187198
if [ "${{ matrix.variant }}" = "composefs-sealeduki-sdboot" ]; then
188199
BUILDROOTBASE=$(just pullspec-for-os buildroot-base ${{ matrix.test_os }})
@@ -211,11 +222,12 @@ jobs:
211222

212223
- name: Run TMT integration tests
213224
run: |
214-
if [ "${{ matrix.variant }}" = "composefs-sealeduki-sdboot" ]; then
215-
just test-composefs
225+
if [[ "${{ matrix.variant }}" = composefs* ]]; then
226+
just "test-${{ matrix.variant }}"
216227
else
217228
just test-tmt integration
218229
fi
230+
219231
just clean-local-images
220232
221233
- 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)