-
Notifications
You must be signed in to change notification settings - Fork 82
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
enhancement: add monitoring test to check rhoai dashboard metrics by code #2175
enhancement: add monitoring test to check rhoai dashboard metrics by code #2175
Conversation
@@ -123,6 +122,33 @@ | |||
List Should Contain Value ${targets} user_facing_endpoints_status_rhods_dashboard | |||
List Should Contain Value ${targets} user_facing_endpoints_status_workbenches | |||
|
|||
Test RHOAI Dashboard Metrics By Code Are Defined |
Check warning
Code scanning / Robocop
Test case '{{ test_name }}' is too long ({{ test_length }}/{{ allowed_length }}) Warning test
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
Robot Results
|
4af3679
to
8a84e2e
Compare
@@ -123,6 +122,48 @@ | |||
List Should Contain Value ${targets} user_facing_endpoints_status_rhods_dashboard | |||
List Should Contain Value ${targets} user_facing_endpoints_status_workbenches | |||
|
|||
Test RHOAI Dashboard Metrics By Code Are Defined |
Check warning
Code scanning / Robocop
Test case '{{ test_name }}' has too many keywords inside ({{ keyword_count }}/{{ max_allowed_count }}) Warning test
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
c7d394b
to
9974835
Compare
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot
Fixed
Show fixed
Hide fixed
0419bfc
to
6494a14
Compare
@@ -178,10 +178,9 @@ | |||
Should Match "${ls_server}" "${EMPTY}" | |||
|
|||
Get User Notebook Pod Name | |||
[Documentation] Returns notebook pod name for given username (e.g. for user ldap-admin1 it will be jupyterhub-nb-ldap-2dadmin1) | |||
[Documentation] Returns notebook pod name for given username (e.g. for user ldap-admin1 it will be jupyter-nb-ldap-2dadmin1-0) |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
# Get the notebook pod creation timestamp | ||
${notebook_pod_name}= Get User Notebook Pod Name ${TEST_USER2.USERNAME} | ||
${return_code} ${ntb_creation_timestamp} = Run And Return Rc And Output |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test
Should Be Equal As Integers ${return_code} 0 msg=${ntb_creation_timestamp} | ||
|
||
# Save the timestamp to the OpenShift ConfigMap so it can be used in test in the next phase | ||
${return_code} ${cmd_output} = Run And Return Rc And Output |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test
[Documentation] Basic suite setup | ||
Set Library Search Order SeleniumLibrary | ||
RHOSi Setup | ||
# Prepare a namespace for storing values that should be shared between different upgrade test phases | ||
# 1. if the namespace exists already, let's remove it | ||
${return_code} ${cmd_output} = Run And Return Rc And Output |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test
... oc delete namespace --wait --ignore-not-found ${UPGRADE_NS} | ||
Should Be Equal As Integers ${return_code} 0 msg=${cmd_output} | ||
# 2. create the namespace now | ||
${return_code} ${cmd_output} = Run And Return Rc And Output |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test
@@ -210,6 +212,49 @@ | |||
... AND | |||
... Run Keyword If "${KSERVE_MODE}"=="RawDeployment" Terminate Process triton-process kill=true | |||
|
|||
Test Onnx Model Grpc Inference Via API (Triton on Kserve) # robocop: off=too-long-test-case |
Check warning
Code scanning / Robocop
Test case '{{ test_name }}' has too many keywords inside ({{ keyword_count }}/{{ max_allowed_count }}) Warning test
[Tags] Tier2 RHOAIENG-16908 | ||
Setup Test Variables model_name=${ONNX_MODEL_NAME} use_pvc=${FALSE} use_gpu=${FALSE} | ||
... kserve_mode=${KSERVE_MODE} model_path=triton/model_repository/ | ||
Set Project And Runtime runtime=${KSERVE_RUNTIME_REST_NAME} protocol=${PROTOCOL_GRPC} namespace=${test_namespace} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
Set Project And Runtime runtime=${KSERVE_RUNTIME_REST_NAME} protocol=${PROTOCOL_GRPC} namespace=${test_namespace} | ||
... download_in_pvc=${DOWNLOAD_IN_PVC} model_name=${ONNX_MODEL_NAME} | ||
... storage_size=100Mi memory_request=100Mi | ||
${requests}= Create Dictionary memory=1Gi |
Check notice
Code scanning / Robocop
{{ create_keyword }} can be replaced with VAR Note test
Remove File ${INFERENCESERVICE_FILLED_FILEPATH} | ||
Wait For Pods To Be Ready label_selector=serving.kserve.io/inferenceservice=${ONNX_MODEL_NAME} | ||
... namespace=${test_namespace} | ||
${pod_name}= Get Pod Name namespace=${test_namespace} |
Check notice
Code scanning / Robocop
Variable '{{ name }}' is assigned but not used Note test
... namespace=${test_namespace} | ||
${pod_name}= Get Pod Name namespace=${test_namespace} | ||
... label_selector=serving.kserve.io/inferenceservice=${ONNX_MODEL_NAME} | ||
${valued} ${host}= Run And Return Rc And Output oc get ksvc ${ONNX_MODEL_NAME}-predictor -o jsonpath='{.status.url}' |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
6494a14
to
c97c64d
Compare
Should Be True ${metrics_by_code_5xx} == ${metrics_5xx} | ||
Should Be True ${metrics_by_code_2xx} == ${metrics_2xx} |
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.
This is more testing Prometheus aggregation than the actual metrics as this is the same metric just queried multiple times with different filters but I guess that is the only meaningful check we can do that there is any data. :)
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.
Yeah, know its a bit redundant, but is the only check that we can do using these data
c97c64d
to
fbc25d8
Compare
Quality Gate passedIssues Measures |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: asanzgom, CFSNM, MarianMacik The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Related JIRA: https://issues.redhat.com/browse/RHOAIENG-13261