From 54f0c8f88ee49367d7499cb204fd71b7d5ffbb95 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Tue, 3 Oct 2023 17:36:39 +0000 Subject: [PATCH 1/3] gha: Add stability tests workflow for gha This PR adds the stability test workflow for gha for the kata CI. Fixes #8107 Signed-off-by: Gabriela Cervantes --- .../run-containerd-stability-tests.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/run-containerd-stability-tests.yaml diff --git a/.github/workflows/run-containerd-stability-tests.yaml b/.github/workflows/run-containerd-stability-tests.yaml new file mode 100644 index 000000000000..76de75d9e1de --- /dev/null +++ b/.github/workflows/run-containerd-stability-tests.yaml @@ -0,0 +1,50 @@ +name: CI | Run containerd stability tests +on: + workflow_call: + inputs: + tarball-suffix: + required: false + type: string + commit-hash: + required: false + type: string + target-branch: + required: false + type: string + default: "" + +jobs: + run-containerd-stability: + strategy: + fail-fast: false + matrix: + containerd_version: ['lts', 'active'] + vmm: ['clh', 'qemu'] + runs-on: garm-ubuntu-2204-smaller + env: + CONTAINERD_VERSION: ${{ matrix.containerd_version }} + GOPATH: ${{ github.workspace }} + KATA_HYPERVISOR: ${{ matrix.vmm }} + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ inputs.commit-hash }} + fetch-depth: 0 + + - name: Rebase atop of the latest target branch + run: | + ./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch" + env: + TARGET_BRANCH: ${{ inputs.target-branch }} + + - name: get-kata-tarball + uses: actions/download-artifact@v3 + with: + name: kata-static-tarball-amd64${{ inputs.tarball-suffix }} + path: kata-artifacts + + - name: Install kata + run: bash tests/stability/gha-run.sh install-kata kata-artifacts + + - name: Run containerd-stability tests + run: bash tests/stability/gha-run.sh run From 85d290a04830c21c4cec2687ac7b3b0165e67840 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Wed, 4 Oct 2023 17:45:45 +0000 Subject: [PATCH 2/3] gha: Add stability gha run script This PR adds the stability gha run script. Signed-off-by: Gabriela Cervantes --- tests/stability/gha-run.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 tests/stability/gha-run.sh diff --git a/tests/stability/gha-run.sh b/tests/stability/gha-run.sh new file mode 100755 index 000000000000..66e6f21c0500 --- /dev/null +++ b/tests/stability/gha-run.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +# Copyright (c) 2023 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 +# + +set -o errexit +set -o nounset +set -o pipefail + +kata_tarball_dir="${2:-kata-artifacts}" +stability_dir="$(dirname "$(readlink -f "$0")")" +source "${stability_dir}/../common.bash" + +function run() { + info "Running soak parallel stability tests using ${KATA_HYPERVISOR} hypervisor" + + # export ITERATIONS=2 MAX_CONTAINERS=20 + # bash "${stability_dir}/soak_parallel_rm.sh" +} + +function main() { + action="${1:-}" + case "${action}" in + install-kata) install_kata ;; + enabling-hypervisor) enabling_hypervisor ;; + run) run ;; + *) >&2 die "Invalid argument" ;; + esac +} + +main "$@" From 0f2dc8c675c368eadee2b2fa3dfbc9897aaa2581 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 5 Oct 2023 15:21:24 +0000 Subject: [PATCH 3/3] gha: Add containerd stability tests to ci yaml This PR adds containerd stability tests to ci yaml. Signed-off-by: Gabriela Cervantes --- .github/workflows/ci.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 35317c528f34..c7c98776dbfa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -217,6 +217,14 @@ jobs: commit-hash: ${{ inputs.commit-hash }} target-branch: ${{ inputs.target-branch }} + run-containerd-stability-tests: + needs: build-kata-static-tarball-amd64 + uses: ./.github/workflows/run-containerd-stability-tests.yaml + with: + tarball-suffix: -${{ inputs.tag }} + commit-hash: ${{ inputs.commit-hash }} + target-branch: ${{ inputs.target-branch }} + run-nydus-tests: needs: build-kata-static-tarball-amd64 uses: ./.github/workflows/run-nydus-tests.yaml