Skip to content

Commit

Permalink
gha: add cri-containerd workflow for ppc64le
Browse files Browse the repository at this point in the history
This PR adds workflow to run containerd tests on Power as a part of CI migration.

Fixes: kata-containers#8500

Depends-on: kata-containers#8459

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
  • Loading branch information
Amulyam24 committed Nov 23, 2023
1 parent 231b9df commit 29de2eb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,11 @@ jobs:
tarball-suffix: -${{ inputs.tag }}
commit-hash: ${{ inputs.commit-hash }}
target-branch: ${{ inputs.target-branch }}

run-cri-containerd-tests-ppc64le:
needs: build-kata-static-tarball-ppc64le
uses: ./.github/workflows/run-cri-containerd-tests-ppc64le.yaml
with:
tarball-suffix: -${{ inputs.tag }}
commit-hash: ${{ inputs.commit-hash }}
target-branch: ${{ inputs.target-branch }}
62 changes: 62 additions & 0 deletions .github/workflows/run-cri-containerd-tests-ppc64le.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI | Run cri-containerd tests on ppc64le
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: ppc64le
env:
CONTAINERD_VERSION: ${{ matrix.containerd_version }}
GOPATH: ${{ github.workspace }}
KATA_HYPERVISOR: ${{ matrix.vmm }}
steps:
- name: Adjust a permission for repo
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE

- name: Prepare the self-hosted runner
run: ${HOME}/scripts/prepare_runner.sh

- 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@v3
with:
name: kata-static-tarball-ppc64le${{ 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
2 changes: 1 addition & 1 deletion tests/integration/cri-containerd/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function testContainerStop() {
}

function TestKilledVmmCleanup() {
if [[ "${KATA_HYPERVISOR}" != "qemu" ]]; then
if [[ "${KATA_HYPERVISOR}" != "qemu" ]] || [[ "${ARCH}" == "ppc64le" ]]; then
info "TestKilledVmmCleanup is skipped for ${KATA_HYPERVISOR}, only QEMU is currently tested"
return 0
fi
Expand Down

0 comments on commit 29de2eb

Please sign in to comment.