Skip to content

Commit 3fffae4

Browse files
have things behaving with the enviornment arg
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 8b9d912 commit 3fffae4

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ test-python-universal-milvus-online:
358358
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.milvus_online_store.milvus_repo_configuration \
359359
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.milvus \
360360
python -m pytest -n 8 --integration \
361-
-k "test_retrieve_online_documents" \
361+
-k "test_retrieve_online_documents2" \
362362
sdk/python/tests --ignore=sdk/python/tests/integration/offline_store/test_dqm_validation.py
363363

364364
test-python-universal-singlestore-online:

sdk/python/feast/infra/online_stores/milvus_online_store/milvus.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def online_write_batch(
187187
for k in PROTO_VALUE_TO_VALUE_TYPE_MAP.keys()
188188
if k is not None and "list" in k and "string" not in k
189189
]
190-
191190
entity_batch_to_insert = []
192191
for entity_key, values_dict, timestamp, created_ts in data:
193192
# need to construct the composite primary key also need to handle the fact that entities are a list

sdk/python/tests/conftest.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,18 @@ def environment(request, worker_id):
204204
e.teardown()
205205

206206

207+
207208
@pytest.fixture
208209
def vectordb_environment(request, worker_id):
209-
milvus_config = IntegrationTestRepoConfig(
210+
db_config = IntegrationTestRepoConfig(
210211
provider="local",
211-
online_store="milvus",
212-
online_store_creator=MilvusOnlineStoreCreator,
213-
offline_store_creator=FileDataSourceCreator,
212+
# online_store="milvus",
213+
# online_store_creator=MilvusOnlineStoreCreator,
214+
# offline_store_creator=FileDataSourceCreator,
214215
)
216+
print(request)
215217
e = construct_test_environment(
216-
milvus_config,
218+
db_config,
217219
fixture_request=request,
218220
worker_id=worker_id,
219221
entity_key_serialization_version=3,
@@ -229,7 +231,6 @@ def vectordb_environment(request, worker_id):
229231

230232
e.teardown()
231233

232-
233234
_config_cache: Any = {}
234235

235236

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def assert_feature_service_entity_mapping_correctness(
858858

859859
@pytest.mark.integration
860860
@pytest.mark.universal_online_stores(
861-
only=["pgvector", "elasticsearch", "qdrant", "milvus"]
861+
only=["pgvector", "elasticsearch", "qdrant"]
862862
)
863863
def test_retrieve_online_documents(vectordb_environment, fake_document_data):
864864
fs = vectordb_environment.feature_store
@@ -897,8 +897,9 @@ def test_retrieve_online_documents(vectordb_environment, fake_document_data):
897897

898898
@pytest.mark.integration
899899
@pytest.mark.universal_online_stores(only=["milvus"])
900-
def test_retrieve_online_documents2(vectordb_environment, fake_document_data):
901-
fs = vectordb_environment.feature_store
900+
def test_retrieve_online_documents2(environment, fake_document_data):
901+
print(environment.online_store)
902+
fs = environment.feature_store
902903
df, data_source = fake_document_data
903904
item_embeddings_feature_view = create_item_embeddings_feature_view(data_source)
904905
fs.apply([item_embeddings_feature_view, item()])

0 commit comments

Comments
 (0)