Skip to content

Commit 20fb922

Browse files
committed
add pgvector int test
1 parent 2624b22 commit 20fb922

3 files changed

Lines changed: 33 additions & 8 deletions

File tree

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,25 @@ test-python-universal-postgres-online:
216216
not test_snowflake" \
217217
sdk/python/tests
218218

219+
test-python-universal-pgvector-online:
220+
PYTHONPATH='.' \
221+
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.contrib.pgvector_repo_configuration \
222+
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.postgres \
223+
python -m pytest -n 8 --integration \
224+
-k "not test_universal_cli and \
225+
not test_go_feature_server and \
226+
not test_feature_logging and \
227+
not test_reorder_columns and \
228+
not test_logged_features_validation and \
229+
not test_lambda_materialization_consistency and \
230+
not test_offline_write and \
231+
not test_push_features_to_offline_store and \
232+
not gcs_registry and \
233+
not s3_registry and \
234+
not test_universal_types and \
235+
not test_snowflake" \
236+
sdk/python/tests
237+
219238
test-python-universal-mysql-online:
220239
PYTHONPATH='.' \
221240
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.contrib.mysql_repo_configuration \
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from tests.integration.feature_repos.integration_test_repo_config import (
2+
IntegrationTestRepoConfig,
3+
)
4+
from tests.integration.feature_repos.universal.online_store.postgres import (
5+
PGVectorOnlineStoreCreator,
6+
)
7+
8+
FULL_REPO_CONFIGS = [
9+
IntegrationTestRepoConfig(
10+
online_store="pgvector", online_store_creator=PGVectorOnlineStoreCreator
11+
),
12+
]

sdk/python/feast/infra/online_stores/contrib/postgres_repo_configuration.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
IntegrationTestRepoConfig,
33
)
44
from tests.integration.feature_repos.universal.online_store.postgres import (
5-
PGVectorOnlineStoreCreator,
65
PostgresOnlineStoreCreator,
76
)
87

98
FULL_REPO_CONFIGS = [
109
IntegrationTestRepoConfig(
1110
online_store="postgres", online_store_creator=PostgresOnlineStoreCreator
12-
),
13-
IntegrationTestRepoConfig(
14-
online_store="pgvector", online_store_creator=PGVectorOnlineStoreCreator
15-
),
16-
]
17-
18-
AVAILABLE_ONLINE_STORES = {"pgvector": PGVectorOnlineStoreCreator}
11+
)
12+
]

0 commit comments

Comments
 (0)