From e96d544c2fa276e0b62dea8282e61b9b75f80e72 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Wed, 28 Jan 2026 15:05:55 +0800 Subject: [PATCH] ci: Build test binaries before sudo commands Move `cargo build --release -p tests-integration` to run before `sudo podman build` to avoid cargo registry permission issues. The tests-integration binary doesn't depend on the fsverity image, so this reordering has no functional impact on the test flow. Signed-off-by: Xiaofeng Wang --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9db2adb..80decfd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,11 +73,12 @@ jobs: just copy-to-rootful localhost/bootc-install # Copy bound images (LBI) to root's storage for tests that need them just copy-lbi-to-rootful - sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity - # TODO move into a container, and then have this tool run other containers + # Build test binaries before any sudo commands to avoid cargo permission issues cargo build --release -p tests-integration + sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity + df -h / sudo install -m 0755 target/release/tests-integration /usr/bin/bootc-integration-tests sudo rm target -rf