@@ -467,7 +467,10 @@ def create_user_yaml(service_port: int, max_vector_field_num=5):
467467 os .remove (path )
468468
469469
470- @pytest .mark .uses_testcontainer
470+ # Mark Milvus itests with require_non_self_hosted due to Docker-in-Docker
471+ # runtime issues on the self-hosted envs. This typically runs on the
472+ # ubuntu-latest env.
473+ @pytest .mark .require_non_self_hosted
471474@unittest .skipUnless (
472475 platform .system () == "Linux" ,
473476 "Test runs only on Linux due to lack of support, as yet, for nested "
@@ -483,22 +486,17 @@ class TestMilvusSearchEnrichment(unittest.TestCase):
483486
484487 @classmethod
485488 def setUpClass (cls ):
486- try :
487- cls ._db = MilvusEnrichmentTestHelper .start_db_container (
488- cls ._version , vector_client_max_retries = 1 , tc_max_retries = 1 )
489- cls ._connection_params = MilvusConnectionParameters (
490- uri = cls ._db .uri ,
491- user = cls ._db .user ,
492- password = cls ._db .password ,
493- db_id = cls ._db .id ,
494- token = cls ._db .token )
495- cls ._collection_load_params = MilvusCollectionLoadParameters ()
496- cls ._collection_name = MilvusEnrichmentTestHelper .initialize_db_with_data (
497- cls ._connection_params )
498- except Exception as e :
499- pytest .skip (
500- f"Skipping all tests in { cls .__name__ } due to DB startup failure: { e } "
501- )
489+ cls ._db = MilvusEnrichmentTestHelper .start_db_container (
490+ cls ._version , vector_client_max_retries = 1 )
491+ cls ._connection_params = MilvusConnectionParameters (
492+ uri = cls ._db .uri ,
493+ user = cls ._db .user ,
494+ password = cls ._db .password ,
495+ db_id = cls ._db .id ,
496+ token = cls ._db .token )
497+ cls ._collection_load_params = MilvusCollectionLoadParameters ()
498+ cls ._collection_name = MilvusEnrichmentTestHelper .initialize_db_with_data (
499+ cls ._connection_params )
502500
503501 @classmethod
504502 def tearDownClass (cls ):
0 commit comments