Unverified Commit 8aa4a37a authored by del-zhenwu's avatar del-zhenwu Committed by GitHub
Browse files

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



* enable cron test on 0.10.0

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

* fix merge result

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

* import test_during_creating_index_restart

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

* disable restart case

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

* [skip ci] Disable cron on 0.10.0

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

* enable cron

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

* [skip ci] disable cron on 0.10.0

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

* [skip ci] remove repeat

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

Co-authored-by: default avatarzw <zw@milvus.io>
Co-authored-by: default avatarshengjun.li <shengjun.li@zilliz.com>
parent 5f3c0052
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/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
+4 −1
Original line number Diff line number Diff line
@@ -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()
+0 −1
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -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
+4 −2
Original line number Diff line number Diff line
@@ -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)