Skip to content

Commit c8a989f

Browse files
updated
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 8a71987 commit c8a989f

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

Makefile

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ test-python-universal-postgres-online:
262262
not test_snowflake" \
263263
sdk/python/tests
264264

265-
test-python-universal-mysql-online:
265+
test-python-universal-mysql-online:
266266
PYTHONPATH='.' \
267267
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.mysql_online_store.mysql_repo_configuration \
268268
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.mysql \
@@ -286,7 +286,11 @@ test-python-universal-cassandra:
286286
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.cassandra_online_store.cassandra_repo_configuration \
287287
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.cassandra \
288288
python -m pytest -x --integration \
289-
sdk/python/tests
289+
sdk/python/tests/integration/offline_store/test_feature_logging.py \
290+
--ignore=sdk/python/tests/integration/offline_store/test_validation.py \
291+
-k "not test_snowflake and \
292+
not test_spark_materialization_consistency and \
293+
not test_universal_materialization"
290294

291295
test-python-universal-hazelcast:
292296
PYTHONPATH='.' \
@@ -324,7 +328,7 @@ test-python-universal-cassandra-no-cloud-providers:
324328
not test_snowflake" \
325329
sdk/python/tests
326330

327-
test-python-universal-elasticsearch-online:
331+
test-python-universal-elasticsearch-online:
328332
PYTHONPATH='.' \
329333
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.elasticsearch_online_store.elasticsearch_repo_configuration \
330334
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.elasticsearch \
@@ -343,23 +347,12 @@ test-python-universal-cassandra-no-cloud-providers:
343347
not test_snowflake" \
344348
sdk/python/tests
345349

346-
test-python-universal-milvus-online:
350+
test-python-universal-milvus-online:
347351
PYTHONPATH='.' \
348352
FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.online_stores.milvus_online_store.milvus_repo_configuration \
349353
PYTEST_PLUGINS=sdk.python.tests.integration.feature_repos.universal.online_store.milvus\
350354
python -m pytest -n 8 --integration \
351-
-k "not test_universal_cli and \
352-
not test_go_feature_server and \
353-
not test_feature_logging and \
354-
not test_reorder_columns and \
355-
not test_logged_features_validation and \
356-
not test_lambda_materialization_consistency and \
357-
not test_offline_write and \
358-
not test_push_features_to_offline_store and \
359-
not gcs_registry and \
360-
not s3_registry and \
361-
not test_universal_types and \
362-
not test_snowflake" \
355+
-k "test_retrieve_online_documents and not test_validation" \
363356
sdk/python/tests
364357

365358
test-python-universal-singlestore-online:

sdk/python/tests/integration/offline_store/test_feature_logging.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,13 @@ def retrieve():
106106
)
107107

108108
persisted_logs = persisted_logs[expected_columns]
109+
109110
logs_df = logs_df[expected_columns]
111+
112+
# Convert timezone-aware datetime values to naive datetime values
113+
logs_df[LOG_TIMESTAMP_FIELD] = logs_df[LOG_TIMESTAMP_FIELD].dt.tz_localize(None)
114+
persisted_logs[LOG_TIMESTAMP_FIELD] = persisted_logs[LOG_TIMESTAMP_FIELD].dt.tz_localize(None)
115+
110116
pd.testing.assert_frame_equal(
111117
logs_df.sort_values(REQUEST_ID_FIELD).reset_index(drop=True),
112118
persisted_logs.sort_values(REQUEST_ID_FIELD).reset_index(drop=True),

0 commit comments

Comments
 (0)