Merge pull request #7577 from GabyCT/topic/enableiperfm

metrics: Enable iperf benchmark on gha for kata metrics
This commit is contained in:
GabyCT 2023-09-05 14:53:47 -06:00 committed by GitHub
commit 3e3a91fd2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 5 deletions

View File

@ -110,3 +110,16 @@ checktype = "mean"
midval = 38656.0
minpercent = 20.0
maxpercent = 20.0
[[metric]]
name = "network-iperf3"
type = "json"
description = "iperf"
# Min and Max values to set a 'range' that
# the median of the CSV Results data must fall
# within (inclusive)
checkvar = ".\"network-iperf3\".Results | .[] | .jitter.Result"
checktype = "mean"
midval = 0.044
minpercent = 30.0
maxpercent = 30.0

View File

@ -110,3 +110,16 @@ checktype = "mean"
midval = 37120.0
minpercent = 20.0
maxpercent = 20.0
[[metric]]
name = "network-iperf3"
type = "json"
description = "iperf"
# Min and Max values to set a 'range' that
# the median of the CSV Results data must fall
# within (inclusive)
checkvar = ".\"network-iperf3\".Results | .[] | .jitter.Result"
checktype = "mean"
midval = 0.041
minpercent = 30.0
maxpercent = 30.0

View File

@ -87,16 +87,14 @@ function run_test_fio() {
info "Running FIO test using ${KATA_HYPERVISOR} hypervisor"
bash tests/metrics/storage/fio-k8s/fio-test-ci.sh
check_metrics
}
function run_test_iperf() {
info "Running Iperf test using ${KATA_HYPERVISOR} hypervisor"
# ToDo: remove the exit once the metrics workflow is stable
exit 0
bash network/iperf3_kubernetes/k8s-network-metrics-iperf3.sh
bash tests/metrics/network/iperf3_kubernetes/k8s-network-metrics-iperf3.sh -a
check_metrics
}
function main() {

View File

@ -177,6 +177,8 @@ function iperf3_start_deployment() {
cmds=("bc" "jq")
check_cmds "${cmds[@]}"
init_env
# Check no processes are left behind
check_processes