Skip to content

Commit

Permalink
Merge pull request kata-containers#8570 from fidencio/topic/gha-drago…
Browse files Browse the repository at this point in the history
…nball-enable-some-tests-but-do-not-run-them-yet

gha: dragonball: Enable, but do not run, cri-containerd, stability, and devmapper tests
  • Loading branch information
fidencio authored Dec 5, 2023
2 parents e2c6b8a + 05ce52d commit f75f17c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/basic-ci-amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
containerd_version: ['lts', 'active']
vmm: ['clh', 'qemu', 'stratovirt']
vmm: ['clh', 'dragonball', 'qemu', 'stratovirt']
runs-on: garm-ubuntu-2204-smaller
env:
CONTAINERD_VERSION: ${{ matrix.containerd_version }}
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
fail-fast: false
matrix:
containerd_version: ['lts', 'active']
vmm: ['clh', 'cloud-hypervisor', 'qemu', 'stratovirt']
vmm: ['clh', 'cloud-hypervisor', 'dragonball', 'qemu', 'stratovirt']
runs-on: garm-ubuntu-2204-smaller
env:
CONTAINERD_VERSION: ${{ matrix.containerd_version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-k8s-tests-on-garm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
matrix:
vmm:
- clh #cloud-hypervisor
- dragonball
- fc #firecracker
- qemu
snapshotter:
Expand Down
6 changes: 6 additions & 0 deletions tests/integration/cri-containerd/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ function run() {
info "Running cri-containerd tests using ${KATA_HYPERVISOR} hypervisor"

enabling_hypervisor

if [ "${KATA_HYPERVISOR}" = "dragonball" ]; then
echo "Skipping test for ${KATA_HYPERVISOR}"
return 0
fi

bash -c ${cri_containerd_dir}/integration-tests.sh
}

Expand Down
7 changes: 6 additions & 1 deletion tests/integration/kubernetes/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DOCKER_TAG=${DOCKER_TAG:-kata-containers-latest}
KATA_DEPLOY_WAIT_TIMEOUT=${KATA_DEPLOY_WAIT_TIMEOUT:-10m}
KATA_HYPERVISOR=${KATA_HYPERVISOR:-qemu}
KUBERNETES="${KUBERNETES:-}"
SNAPSHOTTER="${SNAPSHOTTER:-}"

function configure_devmapper() {
sudo mkdir -p /var/lib/containerd/devmapper
Expand Down Expand Up @@ -172,7 +173,11 @@ function run_tests() {

pushd "${kubernetes_dir}"
bash setup.sh
bash run_kubernetes_tests.sh
if [[ "${KATA_HYPERVISOR}" = "dragonball" ]] && [[ "${SNAPSHOTTER}" = "devmapper" ]]; then
echo "Skipping tests for dragonball using devmapper"
else
bash run_kubernetes_tests.sh
fi
popd
}

Expand Down
5 changes: 5 additions & 0 deletions tests/stability/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ function install_dependencies() {
function run() {
info "Running soak parallel stability tests using ${KATA_HYPERVISOR} hypervisor"

if [ "${KATA_HYPERVISOR}" = "dragonball" ]; then
echo "Skipping test for ${KATA_HYPERVISOR}"
return 0
fi

export ITERATIONS=2 MAX_CONTAINERS=20
bash "${stability_dir}/soak_parallel_rm.sh"

Expand Down

0 comments on commit f75f17c

Please sign in to comment.