Merge pull request #8789 from GabyCT/topic/installimagestress

tests: Add check images as part of install dependencies
This commit is contained in:
GabyCT 2024-01-09 09:28:13 -06:00 committed by GitHub
commit 4ac5f13722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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() {

View File

@ -11,8 +11,6 @@ SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
source "${SCRIPT_PATH}/../metrics/lib/common.bash"
PAYLOAD_ARGS="${PAYLOAD_ARGS:-tail -f /dev/null}"
DOCKERFILE="${SCRIPT_PATH}/stressng_dockerfile/Dockerfile"
IMAGE="docker.io/library/local-stressng:latest"
CONTAINER_NAME="${CONTAINER_NAME:-stressng_test}"
function main() {
@ -20,7 +18,6 @@ function main() {
init_env
check_cmds "${cmds[@]}"
check_ctr_images "${IMAGE}" "${DOCKERFILE}"
sudo -E ctr run -d --runtime "${CTR_RUNTIME}" "${IMAGE}" "${CONTAINER_NAME}" sh -c "${PAYLOAD_ARGS}"
# Run 1 iomix stressor (mix of I/O operations) for 20 seconds with verbose output