Skip to content

Commit

Permalink
workflows: check status of Relay port-forward
Browse files Browse the repository at this point in the history
Since we start a background process for port-forwarding Relay, we must
check if it actually succeeded or failed before allowing workflows to
continue.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
  • Loading branch information
nbusseneau authored and kkourt committed Jul 8, 2021
1 parent bae1a65 commit 00ae9fb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/conformance-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Run connectivity test
run: |
Expand Down Expand Up @@ -279,6 +280,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Restart connectivity test pods
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-aws-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Run connectivity test
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/conformance-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Run connectivity test
run: |
Expand Down Expand Up @@ -254,6 +255,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Restart connectivity test pods
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/conformance-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Run connectivity test
run: |
Expand Down Expand Up @@ -234,6 +235,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Restart connectivity test pods
run: |
Expand Down Expand Up @@ -270,6 +272,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Restart connectivity test pods
run: |
Expand Down Expand Up @@ -304,6 +307,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Restart connectivity test pods
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/conformance-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Run connectivity test
run: |
Expand Down Expand Up @@ -116,6 +117,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Restart connectivity test pods
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-multicluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ jobs:
run: |
cilium hubble port-forward --context ${{ steps.contexts.outputs.context1 }}&
sleep 10s
[[ $(pgrep -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay" | wc -l) == 2 ]]
- name: Run connectivity test
run: |
Expand Down

0 comments on commit 00ae9fb

Please sign in to comment.