You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2026/03/12 11:00:57 UTC
(beam) branch cp-37668 created (now 2cfbe768166)
This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a change to branch cp-37668
in repository https://gitbox.apache.org/repos/asf/beam.git
at 2cfbe768166 Cherrypick #37668
This branch includes the following new commits:
new 2cfbe768166 Cherrypick #37668
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(beam) 01/01: Cherrypick #37668
Posted by vt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a commit to branch cp-37668
in repository https://gitbox.apache.org/repos/asf/beam.git
commit 2cfbe768166280091179e529643dcf74a49081b3
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Thu Mar 12 15:00:41 2026 +0400
Cherrypick #37668
---
.../ml/rag/ingestion/milvus_search_it_test.py | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/sdks/python/apache_beam/ml/rag/ingestion/milvus_search_it_test.py b/sdks/python/apache_beam/ml/rag/ingestion/milvus_search_it_test.py
index 38b497e8fa7..b6e5083ea72 100644
--- a/sdks/python/apache_beam/ml/rag/ingestion/milvus_search_it_test.py
+++ b/sdks/python/apache_beam/ml/rag/ingestion/milvus_search_it_test.py
@@ -22,12 +22,6 @@ from typing import Callable
from typing import cast
import pytest
-from pymilvus import CollectionSchema
-from pymilvus import DataType
-from pymilvus import FieldSchema
-from pymilvus import MilvusClient
-from pymilvus.exceptions import MilvusException
-from pymilvus.milvus_client import IndexParams
import apache_beam as beam
from apache_beam.ml.rag.ingestion.jdbc_common import WriteConfig
@@ -41,11 +35,21 @@ from apache_beam.ml.rag.utils import retry_with_backoff
from apache_beam.ml.rag.utils import unpack_dataclass_with_kwargs
from apache_beam.testing.test_pipeline import TestPipeline
+# pylint: disable=wrong-import-order, wrong-import-position, ungrouped-imports
try:
+ from pymilvus import CollectionSchema
+ from pymilvus import DataType
+ from pymilvus import FieldSchema
+ from pymilvus import MilvusClient
+ from pymilvus.exceptions import MilvusException
+ from pymilvus.milvus_client import IndexParams
+
from apache_beam.ml.rag.ingestion.milvus_search import MilvusVectorWriterConfig
from apache_beam.ml.rag.ingestion.milvus_search import MilvusWriteConfig
-except ImportError as e:
- raise unittest.SkipTest(f'Milvus dependencies not installed: {str(e)}')
+ PYMILVUS_AVAILABLE = True
+except ImportError:
+ PYMILVUS_AVAILABLE = False
+# pylint: enable=wrong-import-order, wrong-import-position, ungrouped-imports
def _construct_index_params():
@@ -158,6 +162,7 @@ def drop_collection(client: MilvusClient, collection_name: str):
@pytest.mark.require_docker_in_docker
+@unittest.skipIf(not PYMILVUS_AVAILABLE, 'pymilvus is not installed.')
@unittest.skipUnless(
platform.system() == "Linux",
"Test runs only on Linux due to lack of support, as yet, for nested "