-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Make inclusion of metrics in SeldonMessage configurable in 1.…
…1" (#1624) * Revert "make testing more robust: wait_for_rollout will repeat get_deployment_names if that is empty" This reverts commit fc10d48. * Revert "partially revert 8afb6f3 to read env var only once" This reverts commit 5f5f520. * Revert "add note in docs" This reverts commit aa72cbd. * Revert "improve hadling and testing of INCLUDE_METRICS_IN_CLIENT_RESPONSE env variable" This reverts commit c330b23. * Revert "fixes from code review" This reverts commit 03ba1b3. * Revert "add tests for custom metrics returned to client" This reverts commit 258dd55. * Revert "simplify metrics test code" This reverts commit 6987fe2. * Revert "skip metrics also in raw methods" This reverts commit be6969c. * Revert "WIP: skip metrics in meta returned to client" This reverts commit 9d32de7.
- Loading branch information
1 parent
fc10d48
commit 1c2b511
Showing
6 changed files
with
269 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
import pytest | ||
import logging | ||
|
||
import seldon_core | ||
|
||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
@pytest.fixture(params=[True, False]) | ||
def client_gets_metrics(monkeypatch, request): | ||
value = request.param | ||
monkeypatch.setattr( | ||
seldon_core.user_model, "INCLUDE_METRICS_IN_CLIENT_RESPONSE", value | ||
) | ||
monkeypatch.setattr( | ||
seldon_core.seldon_methods, "INCLUDE_METRICS_IN_CLIENT_RESPONSE", value | ||
) | ||
return value |
Oops, something went wrong.