Skip to content

Commit

Permalink
ci: add retry to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jan 28, 2022
1 parent cc64f5c commit a5ca73c
Showing 1 changed file with 139 additions and 46 deletions.
185 changes: 139 additions & 46 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -150,10 +157,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -199,10 +213,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -248,10 +269,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install-underlay
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-underlay
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -313,10 +341,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install-single
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-single
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -362,10 +397,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install
ipv6-e2e:
needs: build
Expand Down Expand Up @@ -398,9 +440,12 @@ jobs:
docker load --input kube-ovn.tar
- name: Install Kube-OVN
run: |
docker load --input kube-ovn.tar
sudo make kind-install-ipv6
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-ipv6
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -451,9 +496,12 @@ jobs:
docker load --input kube-ovn.tar
- name: Install Kube-OVN
run: |
docker load --input kube-ovn.tar
sudo make kind-install-ipv6
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-ipv6
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -504,9 +552,12 @@ jobs:
docker load --input kube-ovn.tar
- name: Install Kube-OVN
run: |
docker load --input kube-ovn.tar
sudo make kind-install-underlay-ipv6
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-underlay-ipv6
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -573,9 +624,12 @@ jobs:
docker load --input kube-ovn.tar
- name: Install Kube-OVN
run: |
docker load --input kube-ovn.tar
sudo make kind-install-dual
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-dual
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -626,9 +680,12 @@ jobs:
docker load --input kube-ovn.tar
- name: Install Kube-OVN
run: |
docker load --input kube-ovn.tar
sudo make kind-install-underlay-dual
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-underlay-dual
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -695,9 +752,12 @@ jobs:
docker load --input kube-ovn.tar
- name: Install Kube-OVN
run: |
docker load --input kube-ovn.tar
sudo make kind-install-underlay-logical-gateway-dual
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install-underlay-logical-gateway-dual
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -759,12 +819,19 @@ jobs:
with:
name: kube-ovn

- name: Load Image
run: |
docker load --input kube-ovn.tar
- name: Install Kube-OVN without LoadBalancer
uses: nick-invision/retry@v2
env:
ENABLE_LB: "false"
run: |
docker load --input kube-ovn.tar
sudo make kind-install
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -810,12 +877,19 @@ jobs:
with:
name: kube-ovn

- name: Load Image
run: |
docker load --input kube-ovn.tar
- name: Install Kube-OVN without LoadBalancer
uses: nick-invision/retry@v2
env:
ENABLE_LB: "false"
run: |
docker load --input kube-ovn.tar
sudo make kind-install
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo make kind-install
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -861,12 +935,17 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN without network policy support
env:
ENABLE_NP: "false"
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo make kind-install
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo ENABLE_NP=false make kind-install
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -912,11 +991,18 @@ jobs:
with:
name: kube-ovn

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo PATH=~/.local/bin:$PATH make kind-install-cluster
sudo PATH=~/.local/bin:$PATH make kind-install-ic
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo PATH=~/.local/bin:$PATH make kind-install-cluster
sudo PATH=~/.local/bin:$PATH make kind-install-ic
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down Expand Up @@ -967,11 +1053,18 @@ jobs:
with:
version: v3.4.0

- name: Install Kube-OVN
- name: Load Image
run: |
docker load --input kube-ovn.tar
sudo PATH=~/.local/bin:$PATH make kind-install-cilium
docker exec kube-ovn-control-plane bash -c "ls -al /etc/cni/net.d/"
- name: Install Kube-OVN
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo PATH=~/.local/bin:$PATH make kind-install-cilium
docker exec kube-ovn-control-plane bash -c "ls -al /etc/cni/net.d/"
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down

0 comments on commit a5ca73c

Please sign in to comment.