Skip to content

Commit

Permalink
ci|cri-containerd: Introduce qemu-runtime-rs for KATA_HYPERVISOR
Browse files Browse the repository at this point in the history
`qemu-runtime-rs` will be utilized to handle a test scenario where
the VMM is QEMU and runtime-rs is employed.

Note: Some of the tests are skipped. They are going to be reintegrated in
the follow-up PR (Check out kata-containers#9375).

Fixes: kata-containers#9371

Signed-off-by: Hyounggyu Choi <[email protected]>
  • Loading branch information
BbolroC committed Apr 12, 2024
1 parent 7795f9c commit 3c217c6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function enabling_hypervisor() {
declare -r CONTAINERD_SHIM_KATA="/usr/local/bin/containerd-shim-kata-${KATA_HYPERVISOR}-v2"

case "${KATA_HYPERVISOR}" in
dragonball | cloud-hypervisor)
dragonball|cloud-hypervisor|qemu-runtime-rs)
sudo ln -sf "${KATA_DIR}/runtime-rs/bin/containerd-shim-kata-v2" "${CONTAINERD_SHIM_KATA}"
declare -r CONFIG_DIR="${KATA_DIR}/share/defaults/kata-containers/runtime-rs"
;;
Expand Down
17 changes: 14 additions & 3 deletions tests/integration/cri-containerd/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ function TestContainerMemoryUpdate() {
DoContainerMemoryUpdate 0
fi

if [[ "${KATA_HYPERVISOR}" != "qemu" ]] || [[ "${ARCH}" == "ppc64le" ]] || [[ "${ARCH}" == "s390x" ]]; then
if [[ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ]]; then
# Remove TestContainerMemoryUpdate from passing_test
info "TestContainerMemoryUpdate skipped for qemu with runtime-rs"
info "Please check out https://github.com/kata-containers/kata-containers/issues/9375"
return
elif [[ "${KATA_HYPERVISOR}" != "qemu" ]] || [[ "${ARCH}" == "ppc64le" ]] || [[ "${ARCH}" == "s390x" ]]; then
return
fi

Expand Down Expand Up @@ -657,8 +662,14 @@ function main() {
TestContainerMemoryUpdate

if [[ "${ARCH}" != "ppc64le" ]]; then
TestKilledVmmCleanup
TestDeviceCgroup
if [[ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ]]; then
info "TestKilledVmmCleanup and TestDeviceCgroup skipped for qemu with runtime-rs"
info "Please check out https://github.com/kata-containers/kata-containers/issues/9375"
break
else
TestKilledVmmCleanup
TestDeviceCgroup
fi
fi

popd
Expand Down

0 comments on commit 3c217c6

Please sign in to comment.