From c3c92303d5e2aa2742a86d2b1bc5b140c2069359 Mon Sep 17 00:00:00 2001 From: viktor-kurchenko Date: Wed, 26 Jun 2024 18:15:09 +0300 Subject: [PATCH] ci: speedup workflows The PR adds `test-concurrency` param for connectivity tests concurrent run to speedup CI workflows. Signed-off-by: viktor-kurchenko --- .github/workflows/aks-byocni.yaml | 2 +- .github/workflows/eks-tunnel.yaml | 2 +- .github/workflows/eks.yaml | 2 +- .github/workflows/externalworkloads.yaml | 2 +- .github/workflows/gke.yaml | 2 +- .github/workflows/multicluster.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aks-byocni.yaml b/.github/workflows/aks-byocni.yaml index 5e4a245326..22a40c01c9 100644 --- a/.github/workflows/aks-byocni.yaml +++ b/.github/workflows/aks-byocni.yaml @@ -149,7 +149,7 @@ jobs: cilium status --wait # Run connectivity test - cilium connectivity test --collect-sysdump-on-failure --external-target bing.com. + cilium connectivity test --test-concurrency=5 --collect-sysdump-on-failure --external-target bing.com. # Run performance test cilium connectivity perf --duration 1s diff --git a/.github/workflows/eks-tunnel.yaml b/.github/workflows/eks-tunnel.yaml index d5b715a905..70f1bd2fb9 100644 --- a/.github/workflows/eks-tunnel.yaml +++ b/.github/workflows/eks-tunnel.yaml @@ -161,7 +161,7 @@ jobs: [[ $(pgrep -f "kubectl.*port-forward.*hubble-relay" | wc -l) == 1 ]] # Run connectivity test - cilium connectivity test --debug --all-flows --collect-sysdump-on-failure --external-target amazon.com. \ + cilium connectivity test --test-concurrency=3 --all-flows --collect-sysdump-on-failure --external-target amazon.com. \ --test '!dns-only,!to-fqdns,!client-egress-l7,!health' # workaround for nslookup issues in tunnel mode causing tests to fail reliably # TODO: remove once: diff --git a/.github/workflows/eks.yaml b/.github/workflows/eks.yaml index d4a71eac7c..6031ac2b42 100644 --- a/.github/workflows/eks.yaml +++ b/.github/workflows/eks.yaml @@ -160,7 +160,7 @@ jobs: [[ $(pgrep -f "kubectl.*port-forward.*hubble-relay" | wc -l) == 1 ]] # Run connectivity test - cilium connectivity test --debug --all-flows --collect-sysdump-on-failure --external-target amazon.com. + cilium connectivity test --test-concurrency=3 --all-flows --collect-sysdump-on-failure --external-target amazon.com. # Run performance test cilium connectivity perf --duration 1s diff --git a/.github/workflows/externalworkloads.yaml b/.github/workflows/externalworkloads.yaml index 867297078e..0ca3d1b12e 100644 --- a/.github/workflows/externalworkloads.yaml +++ b/.github/workflows/externalworkloads.yaml @@ -214,7 +214,7 @@ jobs: timeout-minutes: 30 run: | # Run connectivity test - cilium connectivity test --all-flows --collect-sysdump-on-failure --external-target google.com. + cilium connectivity test --test-concurrency=5 --all-flows --collect-sysdump-on-failure --external-target google.com. # Run performance test cilium connectivity perf --duration 1s diff --git a/.github/workflows/gke.yaml b/.github/workflows/gke.yaml index 8596e6d9e4..6bf65364c0 100644 --- a/.github/workflows/gke.yaml +++ b/.github/workflows/gke.yaml @@ -155,7 +155,7 @@ jobs: [[ $(pgrep -f "kubectl.*port-forward.*hubble-relay" | wc -l) == 1 ]] # Run connectivity test - cilium connectivity test --all-flows --collect-sysdump-on-failure --external-target google.com. + cilium connectivity test --test-concurrency=5 --all-flows --collect-sysdump-on-failure --external-target google.com. # Run performance test cilium connectivity perf --duration 1s diff --git a/.github/workflows/multicluster.yaml b/.github/workflows/multicluster.yaml index d77d616af5..3e370b735d 100644 --- a/.github/workflows/multicluster.yaml +++ b/.github/workflows/multicluster.yaml @@ -251,7 +251,7 @@ jobs: [[ $(pgrep -f "kubectl.*port-forward.*hubble-relay" | wc -l) == 1 ]] # Run connectivity test - cilium --context "${{ steps.contexts.outputs.cluster1 }}" connectivity test \ + cilium --context "${{ steps.contexts.outputs.cluster1 }}" connectivity test --test-concurrency=5 \ --multi-cluster "${{ steps.contexts.outputs.cluster2 }}" --test '!/*-deny,!/pod-to-.*-nodeport' \ --all-flows --collect-sysdump-on-failure --external-target google.com.