Update chart version and add concerned cases (#21766)

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/21793/head
NicoYuan1986 2023-01-18 17:43:43 +08:00 committed by GitHub
parent b0b0929c6c
commit 297fef67c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 2 deletions

View File

@ -8,7 +8,7 @@ String cron_string = BRANCH_NAME == "master" ? "50 1 * * * " : ""
// Make timeout 4 hours so that we can run two nightly during the ci
int total_timeout_minutes = 7 * 60
def imageTag=''
def chart_version='3.2.13'
def chart_version='4.0.6'
pipeline {
triggers {
cron """${cron_timezone}

View File

@ -4,7 +4,7 @@ int total_timeout_minutes = 60 * 5
int e2e_timeout_seconds = 70 * 60
def imageTag=''
int case_timeout_seconds = 10 * 60
def chart_version='3.2.13'
def chart_version='4.0.6'
pipeline {
options {
timestamps()

View File

@ -490,6 +490,7 @@ class TestNewIndexBase(TestcaseBase):
assert len(collection_w.indexes) == 1
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.xfail(reason="Each RPC is limited to 64 MB")
def test_annoy_index(self):
# The strange thing is that the indexnode crash is only reproduced when nb is 50000 and dim is 512
nb = 50000

View File

@ -813,6 +813,20 @@ class TestInsertOperation(TestcaseBase):
primary_field=ct.default_int64_field_name)
assert self.collection_wrap.num_entities == nb
@pytest.mark.tags(CaseLabel.L2)
def test_insert_equal_to_resource_limit(self):
"""
target: test insert data equal to RPC limitation 64MB (67108864)
method: calculated critical value and insert equivalent data
expected: raise exception
"""
nb = 127583
collection_name = cf.gen_unique_str(prefix)
collection_w = self.init_collection_wrap(name=collection_name)
data = cf.gen_default_dataframe_data(nb)
collection_w.insert(data=data)
assert collection_w.num_entities == nb
class TestInsertAsync(TestcaseBase):
"""
@ -1042,6 +1056,21 @@ class TestInsertInvalid(TestcaseBase):
error = {ct.err_code: 1, ct.err_msg: "Data type is not support."}
mutation_res, _ = collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error)
@pytest.mark.tags(CaseLabel.L1)
def test_insert_over_resource_limit(self):
"""
target: test insert over RPC limitation 64MB (67108864)
method: insert excessive data
expected: raise exception
"""
nb = 150000
collection_name = cf.gen_unique_str(prefix)
collection_w = self.init_collection_wrap(name=collection_name)
data = cf.gen_default_dataframe_data(nb)
error = {ct.err_code: 1, ct.err_msg: "<_MultiThreadedRendezvous of RPC that terminated with:"
"status = StatusCode.RESOURCE_EXHAUSTED"}
collection_w.insert(data=data, check_task=CheckTasks.err_res, check_items=error)
class TestInsertInvalidBinary(TestcaseBase):
"""