Skip to content

Commit

Permalink
gha: Add general dependencies to stability tests
Browse files Browse the repository at this point in the history
This PR adds the general dependencies to stability tests.

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
(cherry picked from commit 84e3d88)
  • Loading branch information
GabyCT authored and fidencio committed Oct 11, 2023
1 parent a818f62 commit ef49db5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/stability/gha-run.sh
Expand Up @@ -14,6 +14,27 @@ kata_tarball_dir="${2:-kata-artifacts}"
stability_dir="$(dirname "$(readlink -f "$0")")"
source "${stability_dir}/../common.bash"

function install_dependencies() {
info "Installing the dependencies needed for running the containerd-stability tests"

declare -a system_deps=(
jq
)

sudo apt-get update
sudo apt-get -y install "${system_deps[@]}"

ensure_yq

declare -a github_deps
github_deps[0]="cri_containerd:$(get_from_kata_deps "externals.containerd.${CONTAINERD_VERSION}")"

for github_dep in "${github_deps[@]}"; do
IFS=":" read -r -a dep <<< "${github_dep}"
install_${dep[0]} "${dep[1]}"
done
}

function run() {
info "Running soak parallel stability tests using ${KATA_HYPERVISOR} hypervisor"

Expand All @@ -24,6 +45,7 @@ function run() {
function main() {
action="${1:-}"
case "${action}" in
install-dependencies) install_dependencies ;;
install-kata) install_kata ;;
enabling-hypervisor) enabling_hypervisor ;;
run) run ;;
Expand Down

0 comments on commit ef49db5

Please sign in to comment.