From 4e49d1b437274dfc7aaffdee6e4e0b554164dcfe Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Fri, 15 Oct 2021 14:24:34 +0800 Subject: [PATCH] [skip ci]Add data consist test for chaos (#9939) Signed-off-by: zhuwenxing --- .github/workflows/pod-kill-chaos-test.yaml | 36 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pod-kill-chaos-test.yaml b/.github/workflows/pod-kill-chaos-test.yaml index 582a205453..324bfacbf4 100644 --- a/.github/workflows/pod-kill-chaos-test.yaml +++ b/.github/workflows/pod-kill-chaos-test.yaml @@ -36,11 +36,15 @@ jobs: python-version: 3.8 - name: Install dependency - shell: bash - working-directory: tests/python_client/chaos - run: | - pip install -r ../requirements.txt - pip install --upgrade protobuf + uses: nick-invision/retry@v2 + with: + timeout_minutes: 5 + max_attempts: 3 + retry_on: error + shell: bash + command: | + pip install -r tests/python_client/requirements.txt + pip install --upgrade protobuf - name: Deploy Chaos Mesh shell: bash @@ -80,10 +84,30 @@ jobs: cat constants.py pytest -s -v test_chaos.py --host 127.0.0.1 - - name: Milvus Function Test + - name: Milvus E2E Test + timeout-minutes: 5 + if: ${{ always() }} shell: bash working-directory: tests/python_client/chaos run: | + kubectl get pod -n chaos-testing + python hello_milvus.py + + - name: Data Consist Test + timeout-minutes: 5 + if: ${{ always() }} + shell: bash + working-directory: tests/python_client/chaos + run: | + pytest -s -v test_chaos_data_consist.py --host 127.0.0.1 + + - name: Milvus E2E Test + timeout-minutes: 5 + if: ${{ always() }} + shell: bash + working-directory: tests/python_client/chaos + run: | + kubectl get pod -n chaos-testing python hello_milvus.py - name: Export logs