From 8aa4a37af6fa7710a5b7b88006f6a3306b00b705 Mon Sep 17 00:00:00 2001 From: del-zhenwu <56623710+del-zhenwu@users.noreply.github.com> Date: Tue, 16 Jun 2020 00:01:22 +0800 Subject: [PATCH] [skip ci] disable cron on 0.10.0 (#2566) * enable cron test on 0.10.0 Signed-off-by: zw * fix merge result Signed-off-by: shengjun.li * import test_during_creating_index_restart Signed-off-by: zw * disable restart case Signed-off-by: zw * [skip ci] Disable cron on 0.10.0 Signed-off-by: zw * enable cron Signed-off-by: zw * [skip ci] disable cron on 0.10.0 Signed-off-by: zw * [skip ci] remove repeat Signed-off-by: zw Co-authored-by: zw Co-authored-by: shengjun.li --- ci/jenkins/Jenkinsfile | 2 +- tests/milvus_python_test/entity/test_get_entity_by_id.py | 5 ++++- tests/milvus_python_test/entity/test_insert.py | 1 - tests/milvus_python_test/test_compact.py | 1 - tests/milvus_python_test/test_partition.py | 6 ++++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ci/jenkins/Jenkinsfile b/ci/jenkins/Jenkinsfile index 2143c8e7..fa715c2e 100644 --- a/ci/jenkins/Jenkinsfile +++ b/ci/jenkins/Jenkinsfile @@ -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 diff --git a/tests/milvus_python_test/entity/test_get_entity_by_id.py b/tests/milvus_python_test/entity/test_get_entity_by_id.py index ae0e67a8..16b6f15a 100644 --- a/tests/milvus_python_test/entity/test_get_entity_by_id.py +++ b/tests/milvus_python_test/entity/test_get_entity_by_id.py @@ -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() diff --git a/tests/milvus_python_test/entity/test_insert.py b/tests/milvus_python_test/entity/test_insert.py index 3bfff249..f8604500 100644 --- a/tests/milvus_python_test/entity/test_insert.py +++ b/tests/milvus_python_test/entity/test_insert.py @@ -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 diff --git a/tests/milvus_python_test/test_compact.py b/tests/milvus_python_test/test_compact.py index 9b54f642..ffdd6554 100644 --- a/tests/milvus_python_test/test_compact.py +++ b/tests/milvus_python_test/test_compact.py @@ -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 diff --git a/tests/milvus_python_test/test_partition.py b/tests/milvus_python_test/test_partition.py index b9ba5ac0..4e1e7a29 100644 --- a/tests/milvus_python_test/test_partition.py +++ b/tests/milvus_python_test/test_partition.py @@ -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) -- GitLab