From a50c7f1972cc4281a400ad4daa726f4519efb128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 26 Sep 2023 14:09:06 +0200 Subject: [PATCH] ci: Add placeholder for kata-monitor tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The kata-monitor tests is currently running as part of the Jenkins CI with the following setups: * Container Engines: CRI-O | containerd * VMMs: QEMU When using containerd, we're testing it with: * Snapshotter: overlayfs | devmapper We will stop running those tests on devmapper / overlayfs as that hardly would get us a functionality issue. Also, we're restricting this to run with the LTS version of containerd, when containerd is used. As it's known due to our GHA limitation, this is just a placeholder and the tests will actually be added in the next iterations. Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit a3fb067f1bccde0cbd3fd4d5de12dfb3d8c28b60) --- .github/workflows/ci.yaml | 8 +++ .github/workflows/run-kata-monitor-tests.yaml | 59 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .github/workflows/run-kata-monitor-tests.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7479e67777..35317c528f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -124,6 +124,14 @@ jobs: pr-number: ${{ inputs.pr-number }} target-branch: ${{ inputs.target-branch }} + run-kata-monitor-tests: + needs: build-kata-static-tarball-amd64 + uses: ./.github/workflows/run-kata-monitor-tests.yaml + with: + tarball-suffix: -${{ inputs.tag }} + commit-hash: ${{ inputs.commit-hash }} + target-branch: ${{ inputs.target-branch }} + run-k8s-tests-on-aks: needs: publish-kata-deploy-payload-amd64 uses: ./.github/workflows/run-k8s-tests-on-aks.yaml diff --git a/.github/workflows/run-kata-monitor-tests.yaml b/.github/workflows/run-kata-monitor-tests.yaml new file mode 100644 index 0000000000..98e2a2276e --- /dev/null +++ b/.github/workflows/run-kata-monitor-tests.yaml @@ -0,0 +1,59 @@ +name: CI | Run kata-monitor 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-monitor: + strategy: + fail-fast: false + matrix: + vmm: + - qemu + container_engine: + - crio + - containerd + include: + - container_engine: containerd + containerd_version: lts + runs-on: garm-ubuntu-2204-smaller + env: + CONTAINER_ENGINE: ${{ matrix.container_engine }} + CONTAINERD_VERSION: ${{ matrix.containerd_version }} + KATA_HYPERVISOR: ${{ matrix.vmm }} + steps: + - uses: actions/checkout@v4 + 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: Install dependencies + run: bash tests/functional/kata-monitor/gha-run.sh install-dependencies + + - 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/functional/kata-monitor/gha-run.sh install-kata kata-artifacts + + - name: Run kata-monitor tests + run: bash tests/functional/kata-monitor/gha-run.sh run