eBPF-based security platform
ci: run target suite once
John Fastabend3e3b771feaa9
diff --git a/.github/scripts/target-tests.sh b/.github/scripts/target-tests.shindex d0374156..dde531f9 100755--- a/.github/scripts/target-tests.sh+++ b/.github/scripts/target-tests.sh@@ -6,10 +6,10 @@# make -C testing test-tgt does on a developer's host. setup makes the# runner the VM host: KVM, the VM's packages, a compatible LVH kernel or# the Shirudo test kernel cache, and the OpenSSL 3.5 toolchain from-# vm-toolchain.sh. staging runs the suite as is, production boots the-# guest from a dracut initrd.+# vm-toolchain.sh. staging builds the host bundle and runs the target suite+# from a dracut initrd.#-# .github/scripts/target-tests.sh setup|production+# .github/scripts/target-tests.sh setup|staging## Runs as a user with passwordless sudo, from the checkout.@@ -251,9 +251,9 @@ setup() {}case "${1:-}" in-setup|staging|production) ;;+setup|staging) ;;*)- echo "usage: $0 setup|staging|production" >&2+ echo "usage: $0 setup|staging" >&2exit 2;;esac@@ -274,9 +274,5 @@ fi# emergency mode for instance, would otherwise hold the job for an hour.export TEST_VM_TIMEOUT=900-if [ "$1" = staging ]; then- make -C testing test-vm-bundle- sudo -E env PATH="$PATH" make -C testing test-tgt TEST_VM_INITRD=1-else- sudo -E env PATH="$PATH" make -C testing test-tgt TEST_VM_INITRD=1-fi+make -C testing test-vm-bundle+sudo -E env PATH="$PATH" make -C testing test-tgt TEST_VM_INITRD=1diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.ymlindex da68a803..2664cfba 100644--- a/.github/workflows/deb.yml+++ b/.github/workflows/deb.yml@@ -223,11 +223,6 @@ jobs:- name: Run target tests in staging configurationrun: .github/scripts/target-tests.sh staging- # Keep reporting the production boot failure without blocking package builds.- - name: Run target tests in production configuration- continue-on-error: true- run: .github/scripts/target-tests.sh production-- name: Save the target build dependenciesif: always() && steps.target-deps.outputs.cache-hit != 'true' && hashFiles('build/target-deps/lib/libcrypto.a') != '' && hashFiles('build/target-deps/curl/lib/libcurl.a') != ''uses: actions/cache/save@v4