Skip to content

Commit ec438ac

Browse files
committed
ci: Expand composefs testing to include upgrade
Signed-off-by: Colin Walters <[email protected]>
1 parent 96553df commit ec438ac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ jobs:
207207
- name: Unit and container integration tests
208208
run: just test-container
209209

210-
- name: Run readonly TMT tests
211-
# TODO: expand to more tests
212-
run: just test-tmt readonly
210+
- name: Run TMT tests
211+
# Note that this one only runs a subset of tests right now
212+
run: just test-composefs
213213

214214
- name: Archive TMT logs
215215
if: always()

Justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ build-integration-test-image: build
7878
# Keep these in sync with what's used in hack/lbi
7979
podman pull -q --retry 5 --retry-delay 5s quay.io/curl/curl:latest quay.io/curl/curl-base:latest registry.access.redhat.com/ubi9/podman:latest
8080

81-
# Build+test composefs; compat alias
81+
# Build+test using the `composefs-sealeduki-sdboot` variant.
8282
test-composefs:
8383
# These first two are currently a distinct test suite from tmt that directly
8484
# runs an integration test binary in the base image via bcvk
8585
just variant=composefs-sealeduki-sdboot build
8686
cargo run --release -p tests-integration -- composefs-bcvk {{base_img}}
87-
# We're trying to move more testing to tmt, so
88-
just variant=composefs-sealeduki-sdboot test-tmt readonly
87+
# We're trying to move more testing to tmt
88+
just variant=composefs-sealeduki-sdboot test-tmt readonly local-upgrade-reboot
8989

9090
# Only used by ci.yml right now
9191
build-install-test-image: build-integration-test-image
@@ -113,7 +113,7 @@ test-tmt *ARGS: build-integration-test-image _build-upgrade-image
113113

114114
# Generate a local synthetic upgrade
115115
_build-upgrade-image:
116-
podman build -t {{integration_upgrade_img}}-bin --from={{integration_img}}-bin -f tmt/tests/Dockerfile.upgrade /usr/share/empty
116+
cat tmt/tests/Dockerfile.upgrade | podman build -t {{integration_upgrade_img}}-bin --from={{integration_img}}-bin -
117117
./tests/build-sealed {{variant}} {{integration_upgrade_img}}-bin {{integration_upgrade_img}}
118118

119119
# Assume the localhost/bootc-integration image is up to date, and just run tests.

0 commit comments

Comments
 (0)