Skip to content

Conversation

@Johan-Liebert1
Copy link
Collaborator

No description provided.

gemini-code-assist[bot]

This comment was marked as outdated.

@Johan-Liebert1 Johan-Liebert1 force-pushed the cfs-tests branch 8 times, most recently from dc68b62 to 8da9fce Compare January 21, 2026 05:32
@cgwalters cgwalters mentioned this pull request Jan 22, 2026
22 tasks
@Johan-Liebert1 Johan-Liebert1 force-pushed the cfs-tests branch 2 times, most recently from 3799979 to 18bbf01 Compare January 27, 2026 09:23
@Johan-Liebert1 Johan-Liebert1 force-pushed the cfs-tests branch 6 times, most recently from 66fde4e to c6bc807 Compare January 28, 2026 08:37
@Johan-Liebert1
Copy link
Collaborator Author

Requires bootc-dev/infra#95

@Johan-Liebert1 Johan-Liebert1 marked this pull request as ready for review January 28, 2026 08:42
@bootc-bot bootc-bot bot requested a review from jeckersb January 28, 2026 08:43
This is the Non UKI version, i.e. version with Type1 bootloader entries

Signed-off-by: Pragyan Poudyal <[email protected]>
The tests assume an ostree system right now, but we want the same tests
for composefs systems as well. Add a `is_composefs` function to
differentitate between the two backends during testing

Signed-off-by: Pragyan Poudyal <[email protected]>
@Johan-Liebert1 Johan-Liebert1 force-pushed the cfs-tests branch 2 times, most recently from 50dcc5f to 0106a4b Compare January 29, 2026 06:06
@Johan-Liebert1
Copy link
Collaborator Author

Requires bootc-dev/actions#11

@Johan-Liebert1
Copy link
Collaborator Author

Hmmm, it's still picking up bcvk v0.9.0

Add tests for composefs backend for grub and sdboot. Update the testing
matrix in CI

Signed-off-by: Pragyan Poudyal <[email protected]>
@Johan-Liebert1 Johan-Liebert1 changed the title WIP: Cfs tests Composefs test parity with ostree Jan 29, 2026
On systemd v258, bootctl doesn't copy the systemd-boot binaries to the
ESP, so we copy the binaries ourselves if we don't find them in the
final ESP

Signed-off-by: Pragyan Poudyal <[email protected]>
# No fedora-44 due to https://bugzilla.redhat.com/show_bug.cgi?id=2429501
test_os: [fedora-43, centos-9, centos-10]
variant: [ostree, composefs-sealeduki-sdboot]
variant: [ostree, composefs-sealeduki-sdboot, composefs-sdboot, composefs-grub]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exciting!

Comment on lines +182 to +183
case "${{ matrix.variant }}" in
composefs-grub|composefs-sdboot)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer we do this kind of thing in Justfile so it's easier to do locally.

Comment on lines -210 to -211
if [ "${{ matrix.variant }}" = "composefs-sealeduki-sdboot" ]; then
just test-composefs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think at this point it'd be cleaner to have a mechainism to skip some tests (tmt already has metadata) so it's always just test-tmt integration and the variant detection does the right thing internally.

.run_inherited_with_cmd_context()?;

// Check for systemd-boot binaries in the EFI/systemd directory
// systemd v258 won't copy the binary if an EFI booted system is not detected
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we really want bootctl --force-if-non-efi-booted or so...did you file a bug report about this? We should chase down the change and find the rationale.

The logic here feels too manual. (I mean if we had to I'd argue we just fake it out by creating /sys/firmware/efi as mount point or so - or wahtever is needed to make bootctl work)

}

if args.composefs_backend {
opts.push("--filesystem=ext4".into());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this shouldn't be hardcoded here...actually "filesystem choice" is a whole new dimension to the matrix in general.

We absolutely should be testing (and support!) e.g. "insecure" (fsverity disabled) composefs-rs storage too.

I think we don't even have a mechanism to specify that, but we should. I guess it could be part of the install config?


[group('core')]
test-composefs bootloader:
just variant=composefs test-tmt --composefs-backend --bootloader {{bootloader}} \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per above I think we can attach "supports composefs" as metadata to tests instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants