diff --git a/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-clh-kata-metric8.toml b/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-clh-kata-metric8.toml index cf5042dbc..c0436b24c 100644 --- a/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-clh-kata-metric8.toml +++ b/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-clh-kata-metric8.toml @@ -98,6 +98,19 @@ midval = 98.0 minpercent = 20.0 maxpercent = 20.0 +[[metric]] +name = "latency" +type = "json" +description = "measure container latency" +# Min and Max values to set a 'range' that +# the median of the CSV Results data must fall +# within (inclusive) +checkvar = ".\"latency\".Results | .[] | .latency.Result" +checktype = "mean" +midval = 0.75 +minpercent = 20.0 +maxpercent = 20.0 + [[metric]] name = "network-iperf3" type = "json" @@ -147,5 +160,5 @@ description = "iperf" checkvar = ".\"network-iperf3\".Results | .[] | .jitter.Result" checktype = "mean" midval = 0.044 -minpercent = 40.0 -maxpercent = 40.0 +minpercent = 50.0 +maxpercent = 50.0 diff --git a/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-qemu-kata-metric8.toml b/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-qemu-kata-metric8.toml index 8281ed71a..666a898be 100644 --- a/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-qemu-kata-metric8.toml +++ b/tests/metrics/cmd/checkmetrics/ci_worker/checkmetrics-json-qemu-kata-metric8.toml @@ -98,6 +98,19 @@ midval = 98.0 minpercent = 20.0 maxpercent = 20.0 +[[metric]] +name = "latency" +type = "json" +description = "measure container latency" +# Min and Max values to set a 'range' that +# the median of the CSV Results data must fall +# within (inclusive) +checkvar = ".\"latency\".Results | .[] | .latency.Result" +checktype = "mean" +midval = 0.70 +minpercent = 20.0 +maxpercent = 20.0 + [[metric]] name = "network-iperf3" type = "json" @@ -147,5 +160,5 @@ description = "iperf" checkvar = ".\"network-iperf3\".Results | .[] | .jitter.Result" checktype = "mean" midval = 0.041 -minpercent = 40.0 -maxpercent = 40.0 +minpercent = 50.0 +maxpercent = 50.0 diff --git a/tests/metrics/gha-run.sh b/tests/metrics/gha-run.sh index 4f0848821..3c7686e12 100755 --- a/tests/metrics/gha-run.sh +++ b/tests/metrics/gha-run.sh @@ -93,14 +93,14 @@ function run_test_iperf() { info "Running Iperf test using ${KATA_HYPERVISOR} hypervisor" bash tests/metrics/network/iperf3_kubernetes/k8s-network-metrics-iperf3.sh -a - - check_metrics } function run_test_latency() { info "Running Latency test using ${KATA_HYPERVISOR} hypervisor" bash tests/metrics/network/latency_kubernetes/latency-network.sh + + check_metrics } function main() {