From 3733266a6074d3dcbd38a2b81f3dedbba77bf64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 15 Aug 2024 22:36:09 +0200 Subject: [PATCH] ci: nydus: Treat the snapshotter as a dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of deploying and removing the snapshotter on every single run, let's make sure the snapshotter is always deploy on the TDX case. We're doing this as an experiment, in order to see if we'll be able to reduce the failures we've been facing with the nydus snapshotter. Signed-off-by: Fabiano FidĂȘncio --- tests/integration/kubernetes/gha-run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index fda4d98517..0b79e98cf5 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -415,6 +415,11 @@ function cleanup() { } function deploy_snapshotter() { + if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then + echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine" + return + fi + echo "::group::Deploying ${SNAPSHOTTER}" case ${SNAPSHOTTER} in nydus) deploy_nydus_snapshotter ;; @@ -424,6 +429,11 @@ function deploy_snapshotter() { } function cleanup_snapshotter() { + if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then + echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine" + return + fi + echo "::group::Cleanuping ${SNAPSHOTTER}" case ${SNAPSHOTTER} in nydus) cleanup_nydus_snapshotter ;;