Skip to content

Commit 865082a

Browse files
committed
bootc: Update revdep test for current bootc main
Now that bootc vendors the latest composefs-rs, we can re-sync the CI here to re-test using the bootc tests. Update the patch URL, add cfsctl to the patched crates, and pass the required arguments through to bootc's test-composefs target (defaulting to grub + ext4). Assisted-by: OpenCode (Claude claude-opus-4-6) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent b928c6b commit 865082a

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

bootc/Justfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ patch: clone
5959
{
6060
echo ''
6161
echo '# Patched by composefs-rs CI to test against local composefs-rs'
62-
echo '[patch."https://github.com/containers/composefs-rs"]'
62+
echo '[patch."https://github.com/composefs/composefs-rs"]'
6363
echo "composefs = { path = \"$_COMPOSEFS_SRC/crates/composefs\" }"
64+
echo "cfsctl = { path = \"$_COMPOSEFS_SRC/crates/cfsctl\" }"
6465
echo "composefs-boot = { path = \"$_COMPOSEFS_SRC/crates/composefs-boot\" }"
6566
echo "composefs-oci = { path = \"$_COMPOSEFS_SRC/crates/composefs-oci\" }"
6667
} >> Cargo.toml
@@ -70,7 +71,7 @@ patch: clone
7071
sed -i 's/missing_docs = "deny"/missing_docs = "allow"/' Cargo.toml
7172

7273
# Update Cargo.lock so the patch is recognized by cargo xtask local-rust-deps
73-
cargo update composefs composefs-boot composefs-oci
74+
cargo update composefs cfsctl composefs-boot composefs-oci
7475

7576
echo "bootc patched successfully"
7677

@@ -85,12 +86,12 @@ build: patch
8586

8687
# Run bootc composefs tests using local composefs-rs
8788
# Since the patch uses real local paths, no symlinks or special env vars needed
88-
test: build
89+
test bootloader="grub" filesystem="ext4": build
8990
#!/bin/bash
9091
set -euo pipefail
9192
cd "$COMPOSEFS_BOOTC_PATH"
92-
echo "Running bootc composefs tests..."
93-
just test-composefs
93+
echo "Running bootc composefs tests (bootloader={{bootloader}}, filesystem={{filesystem}})..."
94+
just test-composefs {{bootloader}} {{filesystem}}
9495

9596
# Clean the bootc checkout and any patches
9697
clean:
@@ -120,6 +121,11 @@ config:
120121
COMPOSEFS_BOOTC_REF - Override bootc git ref (branch/tag/PR)
121122
COMPOSEFS_BOOTC_REPO - Override bootc git repository
122123

124+
Test Parameters:
125+
just bootc/test # Default: grub + ext4
126+
just bootc/test systemd ext4 # systemd-boot + ext4
127+
just bootc/test grub xfs # grub + xfs
128+
123129
Example Usage:
124130
just bootc/build # Clone main, patch, and build
125131
COMPOSEFS_BOOTC_REF=v1.2.0 just bootc/build # Use specific tag

0 commit comments

Comments
 (0)