Skip to content

Commit 30ed749

Browse files
chore: Fixing testing in Milvus, Makefile, and repo_configuration (feast-dev#4881)
* chore: Fixing testing in Milvus, Makefile, and repo_configuration Signed-off-by: Francisco Javier Arceo <[email protected]> * adjusted variable name Signed-off-by: Francisco Javier Arceo <[email protected]> * linter Signed-off-by: Francisco Javier Arceo <[email protected]> * removed connection_string argument in config definition Signed-off-by: Francisco Javier Arceo <[email protected]> --------- Signed-off-by: Francisco Javier Arceo <[email protected]>
1 parent 3b6d8e3 commit 30ed749

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ test-python-universal-milvus-online:
367367
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.milvus_online_store.milvus_repo_configuration \
368368
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.milvus \
369369
python -m pytest -n 8 --integration \
370-
-k "test_retrieve_online_milvus_ocuments" \
370+
-k "test_retrieve_online_milvus_documents" \
371371
sdk/python/tests --ignore=sdk/python/tests/integration/offline_store/test_dqm_validation.py
372372

373373
test-python-universal-singlestore-online:

sdk/python/tests/integration/feature_repos/repo_configuration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
)
8787

8888
DYNAMO_CONFIG = {"type": "dynamodb", "region": "us-west-2"}
89+
MILVUS_CONFIG = {"type": "milvus"}
8990
REDIS_CONFIG = {"type": "redis", "connection_string": "localhost:6379,db=0"}
9091
REDIS_CLUSTER_CONFIG = {
9192
"type": "redis",
@@ -162,6 +163,7 @@
162163
AVAILABLE_ONLINE_STORES["datastore"] = ("datastore", None)
163164
AVAILABLE_ONLINE_STORES["snowflake"] = (SNOWFLAKE_CONFIG, None)
164165
AVAILABLE_ONLINE_STORES["bigtable"] = (BIGTABLE_CONFIG, None)
166+
AVAILABLE_ONLINE_STORES["milvus"] = (MILVUS_CONFIG, None)
165167

166168
# Uncomment to test using private IKV account. Currently not enabled as
167169
# there is no dedicated IKV instance for CI testing and there is no
@@ -559,6 +561,9 @@ def construct_test_environment(
559561
cache_ttl_seconds=1,
560562
)
561563

564+
if test_repo_config.online_store in ["milvus", "pgvector", "qdrant"]:
565+
entity_key_serialization_version = 3
566+
562567
environment_params = {
563568
"name": project,
564569
"provider": test_repo_config.provider,

sdk/python/tests/integration/online_store/test_universal_online.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,8 @@ def assert_feature_service_entity_mapping_correctness(
862862

863863
@pytest.mark.integration
864864
@pytest.mark.universal_online_stores(only=["pgvector", "elasticsearch", "qdrant"])
865-
def test_retrieve_online_documents(vectordb_environment, fake_document_data):
866-
fs = vectordb_environment.feature_store
865+
def test_retrieve_online_documents(environment, fake_document_data):
866+
fs = environment.feature_store
867867
df, data_source = fake_document_data
868868
item_embeddings_feature_view = create_item_embeddings_feature_view(data_source)
869869
fs.apply([item_embeddings_feature_view, item()])
@@ -899,8 +899,8 @@ def test_retrieve_online_documents(vectordb_environment, fake_document_data):
899899

900900
@pytest.mark.integration
901901
@pytest.mark.universal_online_stores(only=["milvus"])
902-
def test_retrieve_online_milvus_documents(vectordb_environment, fake_document_data):
903-
fs = vectordb_environment.feature_store
902+
def test_retrieve_online_milvus_documents(environment, fake_document_data):
903+
fs = environment.feature_store
904904
df, data_source = fake_document_data
905905
item_embeddings_feature_view = create_item_embeddings_feature_view(data_source)
906906
fs.apply([item_embeddings_feature_view, item()])

0 commit comments

Comments
 (0)