diff --git a/.github/workflows/pod-kill-chaos-test.yaml b/.github/workflows/pod-kill-chaos-test.yaml index 421df3ab53..c962c291ef 100644 --- a/.github/workflows/pod-kill-chaos-test.yaml +++ b/.github/workflows/pod-kill-chaos-test.yaml @@ -110,9 +110,8 @@ jobs: echo "result analysis" cat ${{ env.RELEASE }}.log || echo "no log file" - - name: Milvus E2E Test - timeout-minutes: 15 - if: ${{ always() }} + - name: Wait all pods ready + timeout-minutes: 5 shell: bash working-directory: tests/python_client run: | @@ -127,8 +126,26 @@ jobs: sleep 20s nc -vz 127.0.0.1 19530 + - name: Run e2e test after chaos + timeout-minutes: 5 + shell: bash + working-directory: tests/python_client + run: | + pytest -s -v testcases/test_e2e.py --host 127.0.0.1 --log-cli-level=INFO --capture=no + + - name: Run hello_milvus after chaos + timeout-minutes: 5 + shell: bash + working-directory: tests/python_client + run: | python chaos/scripts/hello_milvus.py --host 127.0.0.1 + + - name: Verify all collections after chaos + timeout-minutes: 15 + shell: bash + working-directory: tests/python_client + run: | python chaos/scripts/verify_all_collections.py --host 127.0.0.1 - name: Export logs diff --git a/tests/python_client/chaos/scripts/verify_all_collections.py b/tests/python_client/chaos/scripts/verify_all_collections.py index e3abc3a93e..6a32920a8c 100644 --- a/tests/python_client/chaos/scripts/verify_all_collections.py +++ b/tests/python_client/chaos/scripts/verify_all_collections.py @@ -111,6 +111,12 @@ connections.connect(host=args.host, port="19530") print(f"\nList collections...") collection_list = list_collections() print(collection_list) +# keep 10 collections with prefix "CreateChecker_", others will be skiped +cnt = 0 for collection_name in collection_list: + if collection_name.startswith("CreateChecker_"): + cnt += 1 + if collection_name.startswith("CreateChecker_") and cnt > 10: + continue print(f"check collection {collection_name}") hello_milvus(collection_name)