mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
[skip e2e]Split verification into more steps (#16467)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
b971e2b3d0
commit
7d8d1ff99a
23
.github/workflows/pod-kill-chaos-test.yaml
vendored
23
.github/workflows/pod-kill-chaos-test.yaml
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user