From aceba94d951b66a19a3cdf8049745bbc5d3b9b48 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 8 Jan 2024 17:38:14 +0000 Subject: [PATCH] tests: Add check images as part of install dependencies To avoid random failures while trying to build and install the stressng image, this PR moves that step as part of the install dependencies in order to move the stability tests and avoid timeouts. Fixes #8787 Signed-off-by: Gabriela Cervantes --- tests/stability/gha-run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/stability/gha-run.sh b/tests/stability/gha-run.sh index 6db0ffe529..bf91090525 100755 --- a/tests/stability/gha-run.sh +++ b/tests/stability/gha-run.sh @@ -12,6 +12,9 @@ set -o pipefail kata_tarball_dir="${2:-kata-artifacts}" stability_dir="$(dirname "$(readlink -f "$0")")" source "${stability_dir}/../common.bash" +source "${stability_dir}/../metrics/lib/common.bash" +DOCKERFILE="${stability_dir}/stressng_dockerfile/Dockerfile" +IMAGE="docker.io/library/local-stressng:latest" function install_dependencies() { info "Installing the dependencies needed for running the containerd-stability tests" @@ -27,6 +30,7 @@ function install_dependencies() { ensure_yq install_docker + check_ctr_images "${IMAGE}" "${DOCKERFILE}" } function run() {