Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TEST START and TEST END log messages bracketing each test #31

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

RobGeada
Copy link
Contributor

@RobGeada RobGeada commented Sep 10, 2024

Tests now have bracketed start and end messages in the log files:

INFO     trustyai_tests.tests.utils:conftest.py:27 
=========================================================================================================================================================
======= Test 'trustyai_tests/tests/drift/test_drift.py::TestDriftMetrics::test_gaussian_credit_model_metadata' STARTED ==================================
=========================================================================================================================================================
INFO     trustyai_tests.tests.utils:utils.py:174 Model metadata: {'gaussian-credit-model': {'metrics': {'scheduledMetadata': {'metricCounts': {}}}, 'data': {'inputSchema': {'items': {'credit_inputs-2': {'type': 'DOUBLE', 'name': 'credit_inputs-2', 'columnIndex': 2}, 'credit_inputs-3': {'type': 'DOUBLE', 'name': 'credit_inputs-3', 'columnIndex': 3}, 'credit_inputs-0': {'type': 'DOUBLE', 'name': 'credit_inputs-0', 'columnIndex': 0}, 'credit_inputs-1': {'type': 'DOUBLE', 'name': 'credit_inputs-1', 'columnIndex': 1}}, 'nameMapping': {}}, 'outputSchema': {'items': {'predict-0': {'type': 'FLOAT', 'name': 'predict-0', 'columnIndex': 4}}, 'nameMapping': {}}, 'inputTensorName': 'credit_inputs', 'outputTensorName': 'predict', 'observations': 5}}}
INFO     trustyai_tests.tests.utils:utils.py:351 Successfully sent data for file: 0.json
INFO     trustyai_tests.tests.utils:utils.py:174 Model metadata: {'gaussian-credit-model': {'metrics': {'scheduledMetadata': {'metricCounts': {}}}, 'data': {'inputSchema': {'items': {'credit_inputs-2': {'type': 'DOUBLE', 'name': 'credit_inputs-2', 'columnIndex': 2}, 'credit_inputs-3': {'type': 'DOUBLE', 'name': 'credit_inputs-3', 'columnIndex': 3}, 'credit_inputs-0': {'type': 'DOUBLE', 'name': 'credit_inputs-0', 'columnIndex': 0}, 'credit_inputs-1': {'type': 'DOUBLE', 'name': 'credit_inputs-1', 'columnIndex': 1}}, 'nameMapping': {}}, 'outputSchema': {'items': {'predict-0': {'type': 'FLOAT', 'name': 'predict-0', 'columnIndex': 4}}, 'nameMapping': {}}, 'inputTensorName': 'credit_inputs', 'outputTensorName': 'predict', 'observations': 10}}}
INFO     trustyai_tests.tests.utils:utils.py:351 Successfully sent data for file: 10.json
INFO     trustyai_tests.tests.utils:utils.py:174 Model metadata: {'gaussian-credit-model': {'metrics': {'scheduledMetadata': {'metricCounts': {}}}, 'data': {'inputSchema': {'items': {'credit_inputs-2': {'type': 'DOUBLE', 'name': 'credit_inputs-2', 'columnIndex': 2}, 'credit_inputs-3': {'type': 'DOUBLE', 'name': 'credit_inputs-3', 'columnIndex': 3}, 'credit_inputs-0': {'type': 'DOUBLE', 'name': 'credit_inputs-0', 'columnIndex': 0}, 'credit_inputs-1': {'type': 'DOUBLE', 'name': 'credit_inputs-1', 'columnIndex': 1}}, 'nameMapping': {}}, 'outputSchema': {'items': {'predict-0': {'type': 'FLOAT', 'name': 'predict-0', 'columnIndex': 4}}, 'nameMapping': {}}, 'inputTensorName': 'credit_inputs', 'outputTensorName': 'predict', 'observations': 15}}}
INFO     trustyai_tests.tests.utils:utils.py:351 Successfully sent data for file: 15.json
INFO     trustyai_tests.tests.utils:utils.py:174 Model metadata: {'gaussian-credit-model': {'metrics': {'scheduledMetadata': {'metricCounts': {}}}, 'data': {'inputSchema': {'items': {'credit_inputs-2': {'type': 'DOUBLE', 'name': 'credit_inputs-2', 'columnIndex': 2}, 'credit_inputs-3': {'type': 'DOUBLE', 'name': 'credit_inputs-3', 'columnIndex': 3}, 'credit_inputs-0': {'type': 'DOUBLE', 'name': 'credit_inputs-0', 'columnIndex': 0}, 'credit_inputs-1': {'type': 'DOUBLE', 'name': 'credit_inputs-1', 'columnIndex': 1}}, 'nameMapping': {}}, 'outputSchema': {'items': {'predict-0': {'type': 'FLOAT', 'name': 'predict-0', 'columnIndex': 4}}, 'nameMapping': {}}, 'inputTensorName': 'credit_inputs', 'outputTensorName': 'predict', 'observations': 20}}}
INFO     trustyai_tests.tests.utils:utils.py:351 Successfully sent data for file: 5.json
INFO     trustyai_tests.tests.utils:utils.py:375 Uploading data to TrustyAI Service.
INFO     trustyai_tests.tests.utils:utils.py:174 Model metadata: {'gaussian-credit-model': {'metrics': {'scheduledMetadata': {'metricCounts': {}}}, 'data': {'inputSchema': {'items': {'credit_inputs-2': {'type': 'DOUBLE', 'name': 'credit_inputs-2', 'columnIndex': 2}, 'credit_inputs-3': {'type': 'DOUBLE', 'name': 'credit_inputs-3', 'columnIndex': 3}, 'credit_inputs-0': {'type': 'DOUBLE', 'name': 'credit_inputs-0', 'columnIndex': 0}, 'credit_inputs-1': {'type': 'DOUBLE', 'name': 'credit_inputs-1', 'columnIndex': 1}}, 'nameMapping': {}}, 'outputSchema': {'items': {'predict-0': {'type': 'FLOAT', 'name': 'predict-0', 'columnIndex': 4}}, 'nameMapping': {}}, 'inputTensorName': 'credit_inputs', 'outputTensorName': 'predict', 'observations': 1020}}}
INFO     trustyai_tests.tests.utils:conftest.py:32 
======= Test 'trustyai_tests/tests/drift/test_drift.py::TestDriftMetrics::test_gaussian_credit_model_metadata' COMPLETED ================================

@RobGeada RobGeada requested a review from ruivieira September 11, 2024 12:11
@RobGeada RobGeada merged commit 8947714 into trustyai-explainability:main Sep 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants