mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
Merge pull request #8108 from GabyCT/topic/ghastability
gha: Add stability tests workflow for gha
This commit is contained in:
commit
c8b9ec1cb5
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
@ -217,6 +217,14 @@ jobs:
|
|||||||
commit-hash: ${{ inputs.commit-hash }}
|
commit-hash: ${{ inputs.commit-hash }}
|
||||||
target-branch: ${{ inputs.target-branch }}
|
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:
|
run-nydus-tests:
|
||||||
needs: build-kata-static-tarball-amd64
|
needs: build-kata-static-tarball-amd64
|
||||||
uses: ./.github/workflows/run-nydus-tests.yaml
|
uses: ./.github/workflows/run-nydus-tests.yaml
|
||||||
|
50
.github/workflows/run-containerd-stability-tests.yaml
vendored
Normal file
50
.github/workflows/run-containerd-stability-tests.yaml
vendored
Normal file
@ -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
|
33
tests/stability/gha-run.sh
Executable file
33
tests/stability/gha-run.sh
Executable file
@ -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 "$@"
|
Loading…
Reference in New Issue
Block a user