Skip to content

Commit

Permalink
Bug fix (#715)
Browse files Browse the repository at this point in the history
Fixed bug in _validate.

[ committed by @AlyssaCote ]
[ reviewed by @ankona ]
  • Loading branch information
AlyssaCote authored Sep 20, 2024
1 parent d43f7c7 commit 5ec287c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Jump to:

Description

- Quick bug fix in _validate
- Add helper methods to MLI classes
- Update error handling for consistency
- Parameterize installation of dragon package with `smart build`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _check_feature_stores(self, request: InferenceRequest) -> bool:
fs_actual = {item.descriptor for item in self._feature_stores.values()}
fs_missing = fs_desired - fs_actual

if self.has_featurestore_factory:
if not self.has_featurestore_factory:
logger.error("No feature store factory configured")
return False

Expand Down
6 changes: 0 additions & 6 deletions tests/dragon/test_error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,6 @@ def test_dispatcher_pipeline_stage_errors_handled(

mock_reply_fn = mock_pipeline_stage(monkeypatch, integrated_worker, stage)

monkeypatch.setattr(
request_dispatcher,
"_validate_request",
MagicMock(return_value=True),
)

if stage not in ["fetch_inputs"]:
monkeypatch.setattr(
integrated_worker,
Expand Down

0 comments on commit 5ec287c

Please sign in to comment.