From 5b5caf89081f1dc83eac404817955255f20ae3c3 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 3 Aug 2023 16:09:30 +0000 Subject: [PATCH 1/2] gha: Add iperf network metrics This PR adds the iperf network metrics to the github actions for kata metrics. Fixes #7535 Signed-off-by: Gabriela Cervantes --- .github/workflows/run-metrics.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/run-metrics.yaml b/.github/workflows/run-metrics.yaml index 596a3dea46..1801214962 100644 --- a/.github/workflows/run-metrics.yaml +++ b/.github/workflows/run-metrics.yaml @@ -52,6 +52,9 @@ jobs: - name: run fio test run: bash tests/metrics/gha-run.sh run-test-fio + - name: run iperf test + run: bash tests/metrics/gha-run.sh run-test-iperf + - name: make metrics tarball ${{ matrix.vmm }} run: bash tests/metrics/gha-run.sh make-tarball-results From 3c319d8d4c506ec2f786498a3a0ece061f1664ae Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 3 Aug 2023 16:16:21 +0000 Subject: [PATCH 2/2] metrics: Add iperf to gha run script This PR adds iperf to gha run script. Signed-off-by: Gabriela Cervantes --- tests/metrics/gha-run.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/metrics/gha-run.sh b/tests/metrics/gha-run.sh index dfe31a1cc7..ac773eb33c 100755 --- a/tests/metrics/gha-run.sh +++ b/tests/metrics/gha-run.sh @@ -93,6 +93,14 @@ function run_test_fio() { bash storage/fio-k8s/fio-test-ci.sh } +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 +} + function main() { action="${1:-}" case "${action}" in @@ -104,6 +112,7 @@ function main() { run-test-blogbench) run_test_blogbench ;; run-test-tensorflow) run_test_tensorflow ;; run-test-fio) run_test_fio ;; + run-test-iperf) run_test_iperf ;; *) >&2 die "Invalid argument" ;; esac }