Skip to content

Commit e933f27

Browse files
committed
add-integration-test
Signed-off-by: Vanshika Vanshika <vvanshik@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent dba7e99 commit e933f27

3 files changed

Lines changed: 911 additions & 7 deletions

File tree

sdk/python/feast/feature_store.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,7 @@ def _init_mlflow_tracking(self):
254254
def _rebuild_fs_name_index(self) -> None:
255255
"""Rebuild the {frozenset(refs) → service_name} index from the registry."""
256256
index: Dict[frozenset, str] = {}
257-
for fs in self.registry.list_feature_services(
258-
self.project, allow_cache=True
259-
):
257+
for fs in self.registry.list_feature_services(self.project, allow_cache=True):
260258
fs_refs = frozenset(
261259
f"{p.name}:{f.name}"
262260
for p in fs.feature_view_projections

sdk/python/feast/mlflow_integration/logger.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ def _report_failure(msg: str, exc: Exception) -> None:
5454
global _consecutive_failures, _last_warning_time
5555
_consecutive_failures += 1
5656
now = time.monotonic()
57-
if _consecutive_failures == 1 or (now - _last_warning_time) >= _WARNING_INTERVAL_SECONDS:
58-
_logger.warning(
59-
"%s (failures=%d): %s", msg, _consecutive_failures, exc
60-
)
57+
if (
58+
_consecutive_failures == 1
59+
or (now - _last_warning_time) >= _WARNING_INTERVAL_SECONDS
60+
):
61+
_logger.warning("%s (failures=%d): %s", msg, _consecutive_failures, exc)
6162
_last_warning_time = now
6263
else:
6364
_logger.debug("%s (failures=%d): %s", msg, _consecutive_failures, exc)

0 commit comments

Comments
 (0)