diff --git a/kcl/cluster_health_performance/pipeline.k b/kcl/cluster_health_performance/pipeline.k index 960ab730eb..dc063d1fb1 100644 --- a/kcl/cluster_health_performance/pipeline.k +++ b/kcl/cluster_health_performance/pipeline.k @@ -165,25 +165,10 @@ fi } kperf.RunKperfDataIngest("cm", "kperf", s.name, total=s.count, qps=50, burst=50, size=s.size, groupSize=50, batchSize=s.count) kperf.RunKperfRunnerGroup("ghcr.io/xinweiwei24/kperf:20260709-pause", "file://$(Pipeline.Workspace)/s/${s.manifest}", affinity="agentpool=runner") - # Poll `kperf rg result` after a fixed sleep to avoid the long-lived port-forward that EOFs on the ADO agent. - steps.Script { - displayName = "Fetch kperf runner group result (${name})" - continueOnError = True - script = """ -set -euo pipefail -sleep 300 -attempt=0 -max_attempts=5 -until kperf rg result | tee "/tmp/kperf-result-${name}.json"; do - attempt=$((attempt + 1)) - if [ "$attempt" -ge "$max_attempts" ]; then - exit 1 - fi - echo "attempt $attempt failed; retry in 10s" >&2 - sleep 10 -done -""" - } + kperf.FetchKperfRunnerGroupResult( + displayName="Fetch kperf runner group result (${name})", + resultPath="/tmp/kperf-result-${name}.json", + initialDelaySeconds=300) # Delete the namespace before the next scenario recreates it. steps.Script { displayName = "Cleanup scenario state (${name})" diff --git a/kcl/cluster_health_performance/pipeline.yaml b/kcl/cluster_health_performance/pipeline.yaml index 22c62b9a2b..831242f706 100755 --- a/kcl/cluster_health_performance/pipeline.yaml +++ b/kcl/cluster_health_performance/pipeline.yaml @@ -757,12 +757,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario1_get_configmap_c1.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario1_get_configmap_c1.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -772,6 +772,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario1_get_configmap_c1) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -884,12 +885,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c1.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c1.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -899,6 +900,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c1) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1011,12 +1013,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c5.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c5.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1026,6 +1028,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c5) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1138,12 +1141,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c10.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c10.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1153,6 +1156,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c10) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1265,12 +1269,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c50.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c50.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1280,6 +1284,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c50) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1392,12 +1397,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1407,6 +1412,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1519,12 +1525,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1534,6 +1540,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1646,12 +1653,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1661,6 +1668,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1773,12 +1781,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1788,6 +1796,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -1900,12 +1909,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -1915,6 +1924,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2027,12 +2037,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2042,6 +2052,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2154,12 +2165,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2169,6 +2180,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2281,12 +2293,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2296,6 +2308,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2408,12 +2421,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2423,6 +2436,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2535,12 +2549,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2550,6 +2564,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2662,12 +2677,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2677,6 +2692,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2789,12 +2805,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2804,6 +2820,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -2916,12 +2933,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -2931,6 +2948,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3043,12 +3061,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3058,6 +3076,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3170,12 +3189,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3185,6 +3204,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3297,12 +3317,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3312,6 +3332,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3424,12 +3445,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3439,6 +3460,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3551,12 +3573,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3566,6 +3588,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3678,12 +3701,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario5_mixed_c10_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario5_mixed_c10_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3693,6 +3716,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario5_mixed_c10_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3805,12 +3829,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario5_mixed_c10_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario5_mixed_c10_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3820,6 +3844,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario5_mixed_c10_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -3932,12 +3957,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario6_getpodlog_c20.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario6_getpodlog_c20.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -3947,6 +3972,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario6_getpodlog_c20) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -4059,12 +4085,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario6_getpodlog_c25.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario6_getpodlog_c25.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -4074,6 +4100,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario6_getpodlog_c25) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -5331,12 +5358,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario1_get_configmap_c1.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario1_get_configmap_c1.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -5346,6 +5373,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario1_get_configmap_c1) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -5458,12 +5486,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c1.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c1.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -5473,6 +5501,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c1) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -5585,12 +5614,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c5.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c5.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -5600,6 +5629,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c5) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -5712,12 +5742,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c10.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c10.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -5727,6 +5757,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c10) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -5839,12 +5870,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c50.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c50.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -5854,6 +5885,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c50) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -5966,12 +5998,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -5981,6 +6013,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6093,12 +6126,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6108,6 +6141,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6220,12 +6254,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6235,6 +6269,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6347,12 +6382,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6362,6 +6397,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6474,12 +6510,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6489,6 +6525,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6601,12 +6638,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6616,6 +6653,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6728,12 +6766,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6743,6 +6781,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6855,12 +6894,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6870,6 +6909,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -6982,12 +7022,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -6997,6 +7037,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7109,12 +7150,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7124,6 +7165,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7236,12 +7278,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7251,6 +7293,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7363,12 +7406,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7378,6 +7421,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7490,12 +7534,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7505,6 +7549,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7617,12 +7662,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7632,6 +7677,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7744,12 +7790,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7759,6 +7805,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7871,12 +7918,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -7886,6 +7933,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -7998,12 +8046,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -8013,6 +8061,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -8125,12 +8174,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -8140,6 +8189,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -8252,12 +8302,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario5_mixed_c10_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario5_mixed_c10_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -8267,6 +8317,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario5_mixed_c10_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -8379,12 +8430,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario5_mixed_c10_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario5_mixed_c10_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -8394,6 +8445,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario5_mixed_c10_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -8506,12 +8558,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario6_getpodlog_c20.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario6_getpodlog_c20.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -8521,6 +8573,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario6_getpodlog_c20) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -8633,12 +8686,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario6_getpodlog_c25.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario6_getpodlog_c25.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -8648,6 +8701,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario6_getpodlog_c25) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -9905,12 +9959,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario1_get_configmap_c1.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario1_get_configmap_c1.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -9920,6 +9974,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario1_get_configmap_c1) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10032,12 +10087,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c1.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c1.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10047,6 +10102,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c1) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10159,12 +10215,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c5.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c5.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10174,6 +10230,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c5) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10286,12 +10343,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c10.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c10.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10301,6 +10358,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c10) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10413,12 +10471,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario2_get_list_configmap_c50.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario2_get_list_configmap_c50.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10428,6 +10486,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario2_get_list_configmap_c50) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10540,12 +10599,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10555,6 +10614,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10667,12 +10727,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10682,6 +10742,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10794,12 +10855,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c1_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c1_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10809,6 +10870,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c1_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -10921,12 +10983,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -10936,6 +10998,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11048,12 +11111,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11063,6 +11126,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11175,12 +11239,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c10_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c10_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11190,6 +11254,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c10_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11302,12 +11367,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11317,6 +11382,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11429,12 +11495,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11444,6 +11510,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11556,12 +11623,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario3_post_put_c50_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario3_post_put_c50_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11571,6 +11638,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario3_post_put_c50_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11683,12 +11751,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11698,6 +11766,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11810,12 +11879,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11825,6 +11894,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -11937,12 +12007,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n100_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -11952,6 +12022,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n100_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12064,12 +12135,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12079,6 +12150,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12191,12 +12263,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12206,6 +12278,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12318,12 +12391,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n1000_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12333,6 +12406,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n1000_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12445,12 +12519,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12460,6 +12534,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12572,12 +12647,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12587,6 +12662,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12699,12 +12775,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p100k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario4_list_configmap_n10000_p100k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12714,6 +12790,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario4_list_configmap_n10000_p100k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12826,12 +12903,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario5_mixed_c10_p1k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario5_mixed_c10_p1k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12841,6 +12918,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario5_mixed_c10_p1k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -12953,12 +13031,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario5_mixed_c10_p10k.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario5_mixed_c10_p10k.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -12968,6 +13046,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario5_mixed_c10_p10k) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -13080,12 +13159,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario6_getpodlog_c20.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario6_getpodlog_c20.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -13095,6 +13174,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario6_getpodlog_c20) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x @@ -13207,12 +13287,12 @@ stages: sleep 120 done displayName: Run kperf runner group - - script: | + - bash: | set -euo pipefail sleep 300 attempt=0 max_attempts=5 - until kperf rg result | tee "/tmp/kperf-result-scenario6_getpodlog_c25.json"; do + until kperf rg result --wait | tee "/tmp/kperf-result-scenario6_getpodlog_c25.json"; do attempt=$((attempt + 1)) if [ "$attempt" -ge "$max_attempts" ]; then exit 1 @@ -13222,6 +13302,7 @@ stages: done continueOnError: true displayName: Fetch kperf runner group result (scenario6_getpodlog_c25) + timeoutInMinutes: 15 - script: | set -euo pipefail set -x diff --git a/kcl/lib/steps/kperf/run_benchmark.k b/kcl/lib/steps/kperf/run_benchmark.k index f2bc2850af..d98d854e04 100644 --- a/kcl/lib/steps/kperf/run_benchmark.k +++ b/kcl/lib/steps/kperf/run_benchmark.k @@ -22,6 +22,31 @@ runkperf -v 3 bench \\ } } +# Tune initialDelaySeconds based on the known workload duration to minimise exposure +# to network disruption while fetching results over a port-forward connection. +FetchKperfRunnerGroupResult = lambda displayName: str = "Fetch kperf runner group result", resultPath: str = "", initialDelaySeconds: int = 0, timeoutInMinutes: int = 15 -> steps.Step { + assert initialDelaySeconds >= 0, "initialDelaySeconds must be non-negative" + steps.Bash { + bash = """ +set -euo pipefail +sleep ${initialDelaySeconds} +attempt=0 +max_attempts=5 +until kperf rg result --wait${' | tee "' + resultPath + '"' if resultPath else ""}; do + attempt=$((attempt + 1)) + if [ "$attempt" -ge "$max_attempts" ]; then + exit 1 + fi + echo "attempt $attempt failed; retry in 10s" >&2 + sleep 10 +done +""" + displayName = displayName + continueOnError = True + timeoutInMinutes = timeoutInMinutes + } +} + # RunKperfRunnerGroup runs `kperf rg run` with the specified runner image, runner # group manifest, optional flow control setting, and optional affinity selector. RunKperfRunnerGroup = lambda runnerImage: str, runnerGroup: str, flowcontrol: str = "", affinity: str = "", target: str = Undefined -> steps.Step {