-
Notifications
You must be signed in to change notification settings - Fork 58
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
Updating Test Benchmark to Sysbench #1476
Conversation
@shekhar316 - Can you rebase the PR and update the status on this one please |
Signed-off-by: Shekhar Saxena <[email protected]>
Signed-off-by: Shekhar Saxena <[email protected]>
Signed-off-by: Shekhar Saxena <[email protected]>
Signed-off-by: Shekhar Saxena <[email protected]>
@shekhar316 please fix the syntax error
|
Signed-off-by: Shekhar Saxena <[email protected]>
Missed this conflict. Resolved now. |
@shekhar316 looks like Is 4 mins threshold enough for |
Signed-off-by: Shekhar Saxena <[email protected]>
# Wait for the container to complete | ||
wait_for_container_to_complete(container_id) | ||
# Wait for the threshold for short term recommendations | ||
time.sleep(180) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure the test behavior is consistent
wait_for_container_to_complete(container_id3) | ||
|
||
# Wait for the threshold for short term recommendations | ||
time.sleep(180) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure the test behavior is consistent and short recommendations are generated after this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shekhar316 - Any updates on this?
Signed-off-by: Shekhar Saxena <[email protected]>
Test ResultsLocal Monitoring e2e Test: ~/redhat/codebase/testKruize/autotune/tests/scripts/local_monitoring_tests/rest_apis git:[newTests]
pytest -vv --html=tmp/report.html --cluster_type openshift test_local_monitoring_e2e_workflow.py
================================================================================== test session starts ==================================================================================
platform linux -- Python 3.12.4, pytest-8.0.0, pluggy-1.4.0 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.12.4', 'Platform': 'Linux-6.10.3-200.fc40.x86_64-x86_64-with-glibc2.39', 'Packages': {'pytest': '8.0.0', 'pluggy': '1.4.0'}, 'Plugins': {'metadata': '3.1.0', 'html': '3.2.0'}, 'JAVA_HOME': '/opt/jdk-21.0.1+12'}
rootdir: /home/shesaxen/redhat/codebase/testKruize/autotune/tests/scripts/local_monitoring_tests
configfile: pytest.ini
plugins: metadata-3.1.0, html-3.2.0
collected 1 item
test_local_monitoring_e2e_workflow.py::test_list_recommendations_multiple_exps_for_datasource_workloads PASSED [100%]
--------------------- generated html file: file:///home/shesaxen/redhat/codebase/testKruize/autotune/tests/scripts/local_monitoring_tests/rest_apis/tmp/report.html ---------------------
============================================================================= 1 passed in 311.69s (0:05:11) ============================================================================= Namespace e2e Test: ~/redhat/codebase/testKruize/autotune/tests/scripts/local_monitoring_tests/rest_apis git:[newTests]
pytest -vv --html=tmp/report.html --cluster_type openshift test_namespace_reco_e2e_workflow.py
================================================================================== test session starts ==================================================================================
platform linux -- Python 3.12.4, pytest-8.0.0, pluggy-1.4.0 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.12.4', 'Platform': 'Linux-6.10.3-200.fc40.x86_64-x86_64-with-glibc2.39', 'Packages': {'pytest': '8.0.0', 'pluggy': '1.4.0'}, 'Plugins': {'metadata': '3.1.0', 'html': '3.2.0'}, 'JAVA_HOME': '/opt/jdk-21.0.1+12'}
rootdir: /home/shesaxen/redhat/codebase/testKruize/autotune/tests/scripts/local_monitoring_tests
configfile: pytest.ini
plugins: metadata-3.1.0, html-3.2.0
collected 1 item
test_namespace_reco_e2e_workflow.py::test_list_recommendations_namespace_exps PASSED [100%]
=================================================================================== warnings summary ====================================================================================
rest_apis/test_namespace_reco_e2e_workflow.py::test_list_recommendations_namespace_exps
/usr/lib/python3.12/site-packages/urllib3/connectionpool.py:1063: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api.shekhar.lab.psi.pnq2.redhat.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
--------------------- generated html file: file:///home/shesaxen/redhat/codebase/testKruize/autotune/tests/scripts/local_monitoring_tests/rest_apis/tmp/report.html ---------------------
======================================================================= 1 passed, 1 warning in 317.60s (0:05:17) ======================================================================== |
Signed-off-by: Shekhar Saxena <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@shekhar316 I see a couple of sleep(300), are we planning to use this in PR checks? |
Adding this to PR check will happen in a separate PR. This is ready for merge |
Description
This PR replaces TFB benchmark to sysbench for local monitoring use case.
How has this been tested?
Openshift Cluster
Test Configuration
Checklist 🎯
Additional information
Include any additional information such as links, test results, screenshots here