[skip ci] disable cron on 0.10.0 (#2566)

* enable cron test on 0.10.0

Signed-off-by: zw <zw@milvus.io>

* fix merge result

Signed-off-by: shengjun.li <shengjun.li@zilliz.com>

* import test_during_creating_index_restart

Signed-off-by: zw <zw@milvus.io>

* disable restart case

Signed-off-by: zw <zw@milvus.io>

* [skip ci] Disable cron on 0.10.0

Signed-off-by: zw <zw@milvus.io>

* enable cron

Signed-off-by: zw <zw@milvus.io>

* [skip ci] disable cron on 0.10.0

Signed-off-by: zw <zw@milvus.io>

* [skip ci] remove repeat

Signed-off-by: zw <zw@milvus.io>

Co-authored-by: zw <zw@milvus.io>
Co-authored-by: shengjun.li <shengjun.li@zilliz.com>
This commit is contained in:
del-zhenwu 2020-06-16 00:01:22 +08:00 committed by GitHub
parent 5f3c005247
commit 8aa4a37af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env groovy
String cron_timezone = "TZ=Asia/Shanghai"
String cron_string = BRANCH_NAME == "0.10.0" ? "50 22 * * * " : ""
String cron_string = BRANCH_NAME == "master" ? "50 22 * * * " : ""
pipeline {
agent none

View File

@ -58,12 +58,15 @@ class TestGetBase:
for i in range(length):
assert_equal_vector(res[i], vectors[i])
def test_get_vector_C_limit(self, connect, collection):
def test_get_vector_C_limit(self, connect, collection, args):
'''
target: test.get_entity_by_id
method: add vector, and get, limit > 1000
expected: status ok, vector returned
'''
if args["handler"] == "HTTP":
pytest.skip("skip in http mode")
vectors = gen_vectors(nb, dim)
status, ids = connect.insert(collection, vectors)
assert status.OK()

View File

@ -582,7 +582,6 @@ class TestAddBase:
@pytest.mark.level(2)
@pytest.mark.timeout(30)
@pytest.mark.repeat(2)
def test_collection_add_rows_count_multi_threading(self, args, collection):
'''
target: test collection rows_count is correct or not with multi threading

View File

@ -378,7 +378,6 @@ class TestCompactBase:
assert status.OK()
@pytest.mark.timeout(COMPACT_TIMEOUT)
@pytest.mark.repeat(10)
def test_index_creation_after_compact(self, connect, collection, get_simple_index):
'''
target: test index creation after compact

View File

@ -34,13 +34,15 @@ class TestCreateBase:
assert status.OK()
@pytest.mark.level(3)
@pytest.mark.timeout(TIMEOUT)
def test_create_partition_limit(self, connect, collection):
def test_create_partition_limit(self, connect, collection, args):
'''
target: test create partitions, check status returned
method: call function: create_partition for 4097 times
expected: status not ok
'''
if args["handler"] == "HTTP":
pytest.skip("skip in http mode")
for i in range(4096):
tag_tmp = gen_unique_str()
status = connect.create_partition(collection, tag_tmp)