Skip to content

Commit

Permalink
ci: check pod crashes on installation/e2e failure (#4160)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
  • Loading branch information
zhangzujian committed Jun 15, 2024
1 parent b7bf492 commit 4a662e2
Showing 1 changed file with 53 additions and 2 deletions.
55 changes: 53 additions & 2 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,14 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
env:
VERSION: ${{ env.DEBUG_TAG }}
DEBUG_WRAPPER: valgrind
run: make kind-install-${{ matrix.mode }}-${{ matrix.ip-family }}

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -538,6 +540,7 @@ jobs:
path: k8s-conformance-e2e-${{ matrix.ip-family }}-${{ matrix.mode }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Check valgrind result
Expand Down Expand Up @@ -675,12 +678,14 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
env:
VERSION: ${{ env.DEBUG_TAG }}
DEBUG_WRAPPER: valgrind
run: make kind-install-${{ matrix.ip-family }}

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
run: make k8s-netpol-e2e

Expand All @@ -698,6 +703,7 @@ jobs:
path: k8s-netpol-e2e-${{ matrix.ip-family }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Check valgrind result
Expand Down Expand Up @@ -959,12 +965,14 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
env:
VERSION: ${{ env.DEBUG_TAG }}
DEBUG_WRAPPER: valgrind
run: make kind-install-${{ matrix.ip-family }}

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
run: make cyclonus-netpol-e2e

Expand All @@ -982,6 +990,7 @@ jobs:
path: cyclonus-netpol-e2e-${{ matrix.ip-family }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Check valgrind result
Expand Down Expand Up @@ -1113,12 +1122,14 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
env:
VERSION: ${{ env.DEBUG_TAG }}
DEBUG_WRAPPER: valgrind
run: make kind-install-${{ matrix.mode }}-${{ matrix.ip-family }}

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -1143,6 +1154,7 @@ jobs:
path: kube-ovn-conformance-e2e-${{ matrix.mode }}-${{ matrix.ip-family }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Check valgrind result
Expand Down Expand Up @@ -1271,9 +1283,11 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
run: make kind-install-ovn-ic-${{ matrix.ip-family }}

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -1299,6 +1313,7 @@ jobs:
path: kube-ovn-ic-conformance-e2e-${{ matrix.ip-family }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

multus-conformance-e2e:
Expand Down Expand Up @@ -1394,12 +1409,14 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
run: make kind-install-${{ matrix.ip-family }}

- name: Install Multus
run: make kind-install-multus

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -1420,6 +1437,7 @@ jobs:
path: multus-conformance-e2e-${{ matrix.ip-family }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

chart-test:
Expand Down Expand Up @@ -1509,9 +1527,11 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
run: make kind-install-underlay-logical-gateway-dual

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && steps.install.conclusion == 'failure') }}
run: make check-kube-ovn-pod-restarts

- name: Cleanup
Expand Down Expand Up @@ -1558,11 +1578,13 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN without LoadBalancer
id: install
env:
ENABLE_LB: "false"
run: make kind-install

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && steps.install.conclusion == 'failure') }}
run: make check-kube-ovn-pod-restarts

- name: Cleanup
Expand Down Expand Up @@ -1609,11 +1631,13 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
env:
ENABLE_NP: "false"
run: make kind-install

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && steps.install.conclusion == 'failure') }}
run: make check-kube-ovn-pod-restarts

- name: Cleanup
Expand Down Expand Up @@ -1713,15 +1737,18 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Multus and Kube-OVN
id: install
run: make kind-install-lb-svc

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
run: make kube-ovn-lb-svc-conformance-e2e

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

webhook-e2e:
Expand Down Expand Up @@ -1810,10 +1837,12 @@ jobs:
sudo cp -r /root/.kube/ ~/.kube/
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
- name: Install Kube-OVN with webhook
id: install
run: make kind-install-webhook

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -1833,6 +1862,7 @@ jobs:
path: webhook-e2e-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

installation-compatibility-test:
Expand Down Expand Up @@ -1876,8 +1906,13 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
run: make kind-install

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && steps.install.conclusion == 'failure') }}
run: make check-kube-ovn-pod-restarts

- name: kubectl ko log
if: failure()
run: |
Expand Down Expand Up @@ -1991,9 +2026,11 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN with Cilium chaining
id: install
run: make kind-install-cilium-chaining

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_CILIUM_CHAINING: "true"
Expand All @@ -2014,6 +2051,7 @@ jobs:
path: cilium-chaining-e2e-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Cleanup
Expand Down Expand Up @@ -2118,11 +2156,13 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
run: |
sudo ENABLE_SSL=${{ matrix.ssl }} ENABLE_BIND_LOCAL_IP=${{ matrix.bind-local }} \
make kind-install-${{ matrix.ip-family }}
- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -2145,6 +2185,7 @@ jobs:
path: kube-ovn-ha-e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Cleanup
Expand Down Expand Up @@ -2217,10 +2258,12 @@ jobs:
sudo cp -r /root/.kube/ ~/.kube/
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
- name: Install Kube-OVN and Submariner
id: install
run: make kind-install-ovn-submariner

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
run: make kube-ovn-submariner-conformance-e2e

Expand All @@ -2238,6 +2281,7 @@ jobs:
path: kube-ovn-submariner-conformance-e2e-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

- name: Cleanup
Expand Down Expand Up @@ -2337,9 +2381,11 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN with VPC NAT gateway enabled
id: install
run: make kind-install-vpc-nat-gw

- name: Run E2E
id: e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -2359,6 +2405,7 @@ jobs:
path: iptables-vpc-nat-gw-conformance-e2e-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

ovn-vpc-nat-gw-conformance-e2e:
Expand Down Expand Up @@ -2447,15 +2494,18 @@ jobs:
sudo chown -R $(id -un). ~/.kube/
- name: Install Kube-OVN
id: install
run: make kind-install

- name: Run Vip E2E
id: vip-e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
run: make vip-conformance-e2e

- name: Run Ovn VPC NAT GW E2E
id: vpc-e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
Expand All @@ -2475,6 +2525,7 @@ jobs:
path: ovn-vpc-nat-gw-conformance-e2e-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.vip-e2e.conclusion == 'failure' || steps.vpc-e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts

push:
Expand Down

0 comments on commit 4a662e2

Please sign in to comment.