From 88ec5fba2bf580904477b48db5a210b3a6de5227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 4 Mar 2025 17:48:39 +0100 Subject: [PATCH] ci: arm64: Run cri-container tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As already done for k8s tests, let's make sure we can run the cri-containerd tests also for arm64. Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/ci.yaml | 10 ++++ .../run-cri-containerd-tests-arm64.yaml | 56 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .github/workflows/run-cri-containerd-tests-arm64.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd6f15259..287c54a7b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -301,6 +301,16 @@ jobs: commit-hash: ${{ inputs.commit-hash }} target-branch: ${{ inputs.target-branch }} + run-cri-containerd-tests-arm64: + if: ${{ inputs.skip-test != 'yes' }} + needs: build-kata-static-tarball-s390x + uses: ./.github/workflows/run-cri-containerd-tests-arm64.yaml + with: + tarball-suffix: -${{ inputs.tag }} + commit-hash: ${{ inputs.commit-hash }} + target-branch: ${{ inputs.target-branch }} + + run-cri-containerd-tests-s390x: if: ${{ inputs.skip-test != 'yes' }} needs: build-kata-static-tarball-s390x diff --git a/.github/workflows/run-cri-containerd-tests-arm64.yaml b/.github/workflows/run-cri-containerd-tests-arm64.yaml new file mode 100644 index 000000000..a177b8180 --- /dev/null +++ b/.github/workflows/run-cri-containerd-tests-arm64.yaml @@ -0,0 +1,56 @@ +name: CI | Run cri-containerd 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-cri-containerd: + strategy: + # We can set this to true whenever we're 100% sure that + # the all the tests are not flaky, otherwise we'll fail + # all the tests due to a single flaky instance + fail-fast: false + matrix: + containerd_version: ['active'] + vmm: ['qemu'] + runs-on: arm64-non-k8s + env: + CONTAINERD_VERSION: ${{ matrix.containerd_version }} + GOPATH: ${{ github.workspace }} + 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/integration/cri-containerd/gha-run.sh install-dependencies + + - name: get-kata-tarball + uses: actions/download-artifact@v4 + with: + name: kata-static-tarball-arm64${{ inputs.tarball-suffix }} + path: kata-artifacts + + - name: Install kata + run: bash tests/integration/cri-containerd/gha-run.sh install-kata kata-artifacts + + - name: Run cri-containerd tests + run: bash tests/integration/cri-containerd/gha-run.sh run