mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
[skip ci]Update deploy test (#12778)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
@@ -33,13 +33,19 @@ jobs:
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Install dependency
|
||||
shell: bash
|
||||
working-directory: tests/python_client/deploy
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install --upgrade protobuf
|
||||
|
||||
- name: Run deploy test
|
||||
timeout-minutes: 15
|
||||
shell: bash
|
||||
working-directory: tests/python_client/deploy
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install --upgrade protobuf
|
||||
mkdir -p ${{ matrix.mode }}/logs
|
||||
echo "test -m ${{ matrix.mode }} -t ${{ matrix.task }}" > ./${{ matrix.mode }}/logs/test_info.log
|
||||
python scripts/get_tag.py >> ./${{ matrix.mode }}/logs/test_info.log
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
docker==5.0.0
|
||||
grpcio==1.37.1
|
||||
grpcio-tools==1.37.1
|
||||
pymilvus==2.0.0rc7.dev22
|
||||
pymilvus==2.0.0rc8
|
||||
@@ -146,6 +146,15 @@ def load_and_search():
|
||||
ids = hits.ids
|
||||
print(ids)
|
||||
print("search latency = %.4fs" % (end_time - start_time))
|
||||
print("###########")
|
||||
t0 = time.time()
|
||||
expr = "count in [2,4,6,8]"
|
||||
output_fields = ["count", "random_value"]
|
||||
res = c.query(expr, output_fields)
|
||||
sorted_res = sorted(res, key=lambda k: k['count'])
|
||||
for r in sorted_res:
|
||||
print(r)
|
||||
t1 = time.time()
|
||||
print("query latency = %.4fs" % (t1 -t0))
|
||||
# c.release()
|
||||
print("###########")
|
||||
print("search data ends")
|
||||
|
||||
Reference in New Issue
Block a user