mirror of https://github.com/milvus-io/milvus.git
[skip ci]Update deploy test (#12778)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/12784/merge
parent
46b68ca794
commit
7753336917
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue