ci: nydus: Treat the snapshotter as a dependency

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 <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2024-08-15 22:36:09 +02:00
parent 0223eedda5
commit 3733266a60
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B

View File

@ -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 ;;