mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
Merge pull request #8197 from GabyCT/topic/enablescability
tests: Enable scability test for stability CI
This commit is contained in:
commit
bc6eadf4f6
@ -39,6 +39,9 @@ function run() {
|
|||||||
|
|
||||||
export ITERATIONS=2 MAX_CONTAINERS=20
|
export ITERATIONS=2 MAX_CONTAINERS=20
|
||||||
bash "${stability_dir}/soak_parallel_rm.sh"
|
bash "${stability_dir}/soak_parallel_rm.sh"
|
||||||
|
|
||||||
|
info "Running scability test using ${KATA_HYPERVISOR} hypervisor"
|
||||||
|
bash "${stability_dir}/scability_test.sh" 15 60
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
@ -39,8 +39,7 @@ function main() {
|
|||||||
local containers=()
|
local containers=()
|
||||||
local not_started_count="${NUM_CONTAINERS}"
|
local not_started_count="${NUM_CONTAINERS}"
|
||||||
|
|
||||||
init_env
|
clean_env_ctr
|
||||||
check_cmds "${cmds[@]}"
|
|
||||||
sudo -E ctr i pull "${IMAGE}"
|
sudo -E ctr i pull "${IMAGE}"
|
||||||
|
|
||||||
info "Creating ${NUM_CONTAINERS} containers"
|
info "Creating ${NUM_CONTAINERS} containers"
|
||||||
@ -53,16 +52,10 @@ function main() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Check that the requested number of containers are running
|
# Check that the requested number of containers are running
|
||||||
check_containers_are_up & pid=$!
|
check_containers_are_up "${NUM_CONTAINERS}"
|
||||||
(sleep "${TIMEOUT_LAUNCH}" && kill -HUP "${pid}") 2>/dev/null & pid_tout=$!
|
|
||||||
|
|
||||||
if wait "${pid}" 2>/dev/null; then
|
# Check that the requested number of containers are running
|
||||||
pkill -HUP -P "${pid_tout}"
|
check_containers_are_running "${NUM_CONTAINERS}"
|
||||||
wait "${pid_tout}"
|
|
||||||
else
|
|
||||||
warn "Time out exceeded"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
clean_env_ctr
|
clean_env_ctr
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ function init() {
|
|||||||
check_kata_components=0
|
check_kata_components=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
versions_file="${cidir}/../versions.yaml"
|
versions_file="${cidir}/../../versions.yaml"
|
||||||
nginx_version=$("${GOPATH}/bin/yq" read "$versions_file" "docker_images.nginx.version")
|
nginx_version=$("${GOPATH}/bin/yq" read "$versions_file" "docker_images.nginx.version")
|
||||||
nginx_image="docker.io/library/nginx:$nginx_version"
|
nginx_image="docker.io/library/nginx:$nginx_version"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user