[skip e2e]Split verification into more steps (#16467)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2022-04-13 11:39:34 +08:00 committed by GitHub
parent b971e2b3d0
commit 7d8d1ff99a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 3 deletions

View File

@ -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

View File

@ -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)