mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-03-09 22:32:24 +00:00
Compare commits
4 Commits
main
...
topic/re-e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59f487d7ab | ||
|
|
1f9260d978 | ||
|
|
b80edd5fb5 | ||
|
|
458a64e9b9 |
7
.github/workflows/basic-ci-amd64.yaml
vendored
7
.github/workflows/basic-ci-amd64.yaml
vendored
@@ -25,10 +25,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
containerd_version: ['active']
|
||||
vmm: ['dragonball', 'cloud-hypervisor', 'qemu-runtime-rs']
|
||||
# TODO: enable me when https://github.com/containerd/containerd/issues/11640 is fixed
|
||||
if: false
|
||||
runs-on: ubuntu-22.04
|
||||
# vmm: ['dragonball', 'cloud-hypervisor', 'qemu-runtime-rs']
|
||||
vmm: ['dragonball', 'qemu-runtime-rs']
|
||||
runs-on: ubuntu-24.04
|
||||
env:
|
||||
CONTAINERD_VERSION: ${{ matrix.containerd_version }}
|
||||
GOPATH: ${{ github.workspace }}
|
||||
|
||||
@@ -61,9 +61,23 @@ function install_dependencies() {
|
||||
"install_${dep[0]}" "${dep[1]}"
|
||||
done
|
||||
|
||||
# Clone containerd as we'll need to build it in order to run the tests
|
||||
# base_version: The version to be intalled in the ${major}.${minor} format
|
||||
clone_cri_containerd $(get_from_kata_deps ".externals.containerd.${CONTAINERD_VERSION}")
|
||||
# Clone containerd as we'll need to build it in order to run the tests.
|
||||
# TODO: revert to upstream once https://github.com/containerd/containerd/pull/XXXXX
|
||||
# (fix for getRuncOptions() failing for non-runc runtimes like Kata) is merged and
|
||||
# released.
|
||||
local containerd_fork="fidencio/containerd"
|
||||
local containerd_branch="topic/fix-runc-options-type-mismatch-for-non-runc-runtimes"
|
||||
info "Cloning containerd from fork ${containerd_fork}@${containerd_branch} (temporary, pending upstream fix)"
|
||||
rm -rf containerd
|
||||
git clone -b "${containerd_branch}" "https://github.com/${containerd_fork}"
|
||||
|
||||
# `make cri-integration` uses the cloned tree's `bin/containerd`, but later
|
||||
# Kata-specific tests restart the systemd service and thus use
|
||||
# `/usr/local/bin/containerd`. Install the same patched daemon there so both
|
||||
# phases exercise the same containerd build.
|
||||
info "Building and installing the patched containerd daemon for systemd restarts"
|
||||
make -C containerd bin/containerd
|
||||
sudo install -m 0755 containerd/bin/containerd /usr/local/bin/containerd
|
||||
}
|
||||
|
||||
function run() {
|
||||
|
||||
@@ -162,6 +162,13 @@ function err_report() {
|
||||
|
||||
function check_daemon_setup() {
|
||||
info "containerd(cri): Check daemon works with runc"
|
||||
# Use podsandbox for the runc sanity check: the shim sandboxer has a known
|
||||
# containerd-side bug where the OCI spec is not populated before NewBundle is
|
||||
# called, so config.json is never written and containerd-shim-runc-v2 fails.
|
||||
# See https://github.com/containerd/containerd/issues/11640
|
||||
# This check only verifies that containerd + runc are functional before the
|
||||
# real kata tests run, so the sandboxer choice doesn't matter here.
|
||||
local SANDBOXER="podsandbox"
|
||||
create_containerd_config "runc"
|
||||
|
||||
# containerd cri-integration will modify the passed in config file. Let's
|
||||
@@ -659,7 +666,13 @@ function main() {
|
||||
info "containerd(cri): Running cri-integration"
|
||||
|
||||
|
||||
passing_test="TestContainerStats|TestContainerRestart|TestContainerListStatsWithIdFilter|TestContainerListStatsWithIdSandboxIdFilter|TestDuplicateName|TestImageLoad|TestImageFSInfo|TestSandboxCleanRemove"
|
||||
# TestContainerRestart is excluded: creating a new container in the same
|
||||
# sandbox VM after the previous container has exited and been removed has
|
||||
# never been supported by kata-containers (neither with the go-based nor
|
||||
# the rust-based runtime). The kata VM shuts down when its last container
|
||||
# is removed, so any attempt to start a new container in the same sandbox
|
||||
# fails. This test exercises a use-case kata does not currently support.
|
||||
passing_test="TestContainerStats|TestContainerListStatsWithIdFilter|TestContainerListStatsWithIdSandboxIdFilter|TestDuplicateName|TestImageLoad|TestImageFSInfo|TestSandboxCleanRemove"
|
||||
|
||||
if [[ "${KATA_HYPERVISOR}" == "cloud-hypervisor" || \
|
||||
"${KATA_HYPERVISOR}" == "qemu" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user