diff --git a/CHANGELOG.md b/CHANGELOG.md index f8830194ac..de4226c21a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,8 @@ Please mark all change in change log and use the ticket from JIRA. - \#649 - Typo "partiton" should be "partition" - \#654 - Random crash when frequently insert vector one by one - \#658 - Milvus error out when building SQ8H index without GPU resources +- \#668 - Update badge of README +- \#670 - Random failure of unittest db_test::SEARCH_TEST ## Feature - \#12 - Pure CPU version for Milvus diff --git a/README.md b/README.md index 47f8bb6c4e..f975f0437e 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ ![LICENSE](https://img.shields.io/badge/license-Apache--2.0-brightgreen) ![Language](https://img.shields.io/badge/language-C%2B%2B-blue) [![codebeat badge](https://codebeat.co/badges/e030a4f6-b126-4475-a938-4723d54ec3a7?style=plastic)](https://codebeat.co/projects/github-com-jinhai-cn-milvus-master) -![Release](https://img.shields.io/badge/release-v0.5.3-yellowgreen) -![Release_date](https://img.shields.io/badge/release%20date-November-yellowgreen) +![Release](https://img.shields.io/badge/release-v0.6.0-yellowgreen) +![Release_date](https://img.shields.io/badge/release%20date-December-yellowgreen) [![codecov](https://codecov.io/gh/milvus-io/milvus/branch/master/graph/badge.svg)](https://codecov.io/gh/milvus-io/milvus) [中文版](README_CN.md) | [日本語版](README_JP.md) diff --git a/README_CN.md b/README_CN.md index 4eb360f5fd..92c81f6126 100644 --- a/README_CN.md +++ b/README_CN.md @@ -4,8 +4,8 @@ ![LICENSE](https://img.shields.io/badge/license-Apache--2.0-brightgreen) ![Language](https://img.shields.io/badge/language-C%2B%2B-blue) [![codebeat badge](https://codebeat.co/badges/e030a4f6-b126-4475-a938-4723d54ec3a7?style=plastic)](https://codebeat.co/projects/github-com-jinhai-cn-milvus-master) -![Release](https://img.shields.io/badge/release-v0.5.3-yellowgreen) -![Release_date](https://img.shields.io/badge/release_date-October-yellowgreen) +![Release](https://img.shields.io/badge/release-v0.6.0-yellowgreen) +![Release_date](https://img.shields.io/badge/release_date-December-yellowgreen) [![codecov](https://codecov.io/gh/milvus-io/milvus/branch/master/graph/badge.svg)](https://codecov.io/gh/milvus-io/milvus) diff --git a/README_JP.md b/README_JP.md index 6b11da7a62..7502fa28c3 100644 --- a/README_JP.md +++ b/README_JP.md @@ -5,8 +5,9 @@ ![LICENSE](https://img.shields.io/badge/license-Apache--2.0-brightgreen) ![Language](https://img.shields.io/badge/language-C%2B%2B-blue) [![codebeat badge](https://codebeat.co/badges/e030a4f6-b126-4475-a938-4723d54ec3a7?style=plastic)](https://codebeat.co/projects/github-com-jinhai-cn-milvus-master) -![Release](https://img.shields.io/badge/release-v0.5.3-yellowgreen) -![Release_date](https://img.shields.io/badge/release%20date-November-yellowgreen) +![Release](https://img.shields.io/badge/release-v0.6.0-yellowgreen) +![Release_date](https://img.shields.io/badge/release%20date-December-yellowgreen) +[![codecov](https://codecov.io/gh/milvus-io/milvus/branch/master/graph/badge.svg)](https://codecov.io/gh/milvus-io/milvus) # Milvus へようこそ diff --git a/core/unittest/db/test_db.cpp b/core/unittest/db/test_db.cpp index 768687a8a3..dbed92b355 100644 --- a/core/unittest/db/test_db.cpp +++ b/core/unittest/db/test_db.cpp @@ -338,7 +338,13 @@ TEST_F(DBTest, SEARCH_TEST) { { // search by specify index file milvus::engine::meta::DatesT dates; - std::vector file_ids = {"1", "2", "3", "4", "5", "6"}; + std::vector file_ids; + // sometimes this case run fast to merge file and build index, old file will be deleted immediately, + // so the QueryByFileID cannot get files to search + // input 100 files ids to avoid random failure of this case + for (int i = 0; i < 100; i++) { + file_ids.push_back(std::to_string(i)); + } milvus::engine::ResultIds result_ids; milvus::engine::ResultDistances result_distances; stat = db_->QueryByFileID(TABLE_NAME, file_ids, k, nq, 10, xq.data(), dates, result_ids, result_distances); diff --git a/tests/milvus_python_test/test_index.py b/tests/milvus_python_test/test_index.py index 917bef962c..a86f65dfdd 100644 --- a/tests/milvus_python_test/test_index.py +++ b/tests/milvus_python_test/test_index.py @@ -587,6 +587,8 @@ class TestIndexIP: ''' index_params = get_simple_index_params logging.getLogger().info(index_params) + if index_params["index_type"] == IndexType.IVF_PQ: + pytest.skip("Skip some PQ cases") status, ids = connect.add_vectors(ip_table, vectors) status = connect.create_index(ip_table, index_params) assert status.OK() @@ -812,11 +814,13 @@ class TestIndexIP: status, result = connect.describe_index(ip_table) logging.getLogger().info(result) assert result._table_name == ip_table - if index_params["index_type"] == IndexType.IVF_PQ: + status, mode = connect._cmd("mode") + if str(mode) == "GPU" and index_params["index_type"] == IndexType.IVF_PQ: assert result._index_type == IndexType.FLAT assert result._nlist == 16384 else: assert result._index_type == index_params["index_type"] + assert result._nlist == index_params["nlist"] def test_describe_index_partition(self, connect, ip_table, get_simple_index_params): '''