-
Notifications
You must be signed in to change notification settings - Fork 81
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
Update tests to use new Caikit + TGIS images #1009
Update tests to use new Caikit + TGIS images #1009
Conversation
tested on |
do not merge for now, there is a new change coming into the product image and the test files need to be accordingly changed |
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.
Robocop found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
d13455d
to
621274a
Compare
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
@@ -528,13 +532,39 @@ | |||
[Teardown] Clean Up Test Project test_ns=${test_namespace} | |||
... isvc_names=${models_names} | |||
|
|||
Verify User Can Query A Model Using HTTP Calls |
Check warning
Code scanning / Robocop
Test case '{{ test_name }}' is too long ({{ test_length }}/{{ allowed_length }})
[Arguments] ${namespace} | ||
${rc} ${out}= Run And Return Rc And Output oc get ServingRuntime caikit-runtime -n ${namespace} | ||
[Arguments] ${namespace} ${protocol} | ||
${rc} ${out}= Run And Return Rc And Output oc get ServingRuntime caikit-tgis-runtime -n ${namespace} |
Check warning
Code scanning / Robocop
Local variable '{{ name }}' is overwritten before usage
# temporarily disabling these lines - will be finalized in later stage due to a different format | ||
# of streamed reponse when using http protocol instead of grpc | ||
# ${cleaned_response_text}= Replace String Using Regexp ${model_response} data:(\\s+)?" " | ||
# ${cleaned_response_text}= Replace String Using Regexp ${cleaned_response_text} data:(\\s+)?{ { |
Check warning
Code scanning / Robocop
Trailing whitespace at the end of line
IF ${validate_response} == ${FALSE} | ||
${skip_json_load_response}= Set Variable ${TRUE} | ||
ELSE | ||
${skip_json_load_response}= Set Variable ${streamed_response} # always skip if using streaming endpoint | ||
END | ||
${host}= Get KServe Inference Host Via CLI isvc_name=${isvc_name} namespace=${namespace} | ||
${body}= Set Variable '{"text": "${EXP_RESPONSES}[queries][${query_idx}][query_text]"}' | ||
${header}= Set Variable 'mm-model-id: ${model_name}' | ||
IF "${protocol}" == "grpc" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion
IF "${protocol}" == "grpc" | ||
${body}= Set Variable '{"text": "${EXP_RESPONSES}[queries][${query_idx}][query_text]"}' | ||
${header}= Set Variable 'mm-model-id: ${model_name}' | ||
ELSE IF "${protocol}" == "http" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion
... json_body=${body} json_header=${header} | ||
... insecure=${TRUE} skip_res_json=${skip_json_load_response} | ||
... &{args} | ||
IF "${protocol}" == "grpc" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion
... json_body=${body} json_header=${header} | ||
... insecure=${TRUE} skip_res_json=${skip_json_load_response} | ||
... &{args} | ||
ELSE IF "${protocol}" == "http" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion
ods_ci/tests/Tests/400__ods_dashboard/420__model_serving/422__model_serving_llm.robot
Fixed
Show fixed
Hide fixed
@@ -29,7 +29,11 @@ | |||
Set To Dictionary ${LOG_RESP_DICT} url=${response.url} headers=${response.headers} body=${response.text} | |||
... status_code=${response.status_code} reason=${response.reason} | |||
Log ${request_type} Response: ${LOG_RESP_DICT} | |||
RETURN ${response.json()} | |||
IF ${skip_res_json} == ${TRUE} |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified
ods_ci/tests/Tests/400__ods_dashboard/420__model_serving/422__model_serving_llm.robot
Fixed
Show fixed
Hide fixed
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
PR validation:
|
Signed-off-by: bdattoma <[email protected]>
Signed-off-by: bdattoma <[email protected]>
Kudos, SonarCloud Quality Gate passed!
|
) * update runtime and model path Signed-off-by: bdattoma <[email protected]> * enable script-based install as default Signed-off-by: bdattoma <[email protected]> * use new runtime without configs Signed-off-by: bdattoma <[email protected]> * restore grpc port Signed-off-by: bdattoma <[email protected]> * restore grpc port Signed-off-by: bdattoma <[email protected]> * add test for http protocol Signed-off-by: bdattoma <[email protected]> * change tag for runtime upgrade test Signed-off-by: bdattoma <[email protected]> * delete unused file Signed-off-by: bdattoma <[email protected]> * fix all tokens http response validation Signed-off-by: bdattoma <[email protected]> * add missing test teardown Signed-off-by: bdattoma <[email protected]> * fix post deployment test Signed-off-by: bdattoma <[email protected]> * fix autoscale test + restore suite setup/teardown Signed-off-by: bdattoma <[email protected]> * fix robocop alerts Signed-off-by: bdattoma <[email protected]> * fix post install test - change label Signed-off-by: bdattoma <[email protected]> --------- Signed-off-by: bdattoma <[email protected]>
) * update runtime and model path Signed-off-by: bdattoma <[email protected]> * enable script-based install as default Signed-off-by: bdattoma <[email protected]> * use new runtime without configs Signed-off-by: bdattoma <[email protected]> * restore grpc port Signed-off-by: bdattoma <[email protected]> * restore grpc port Signed-off-by: bdattoma <[email protected]> * add test for http protocol Signed-off-by: bdattoma <[email protected]> * change tag for runtime upgrade test Signed-off-by: bdattoma <[email protected]> * delete unused file Signed-off-by: bdattoma <[email protected]> * fix all tokens http response validation Signed-off-by: bdattoma <[email protected]> * add missing test teardown Signed-off-by: bdattoma <[email protected]> * fix post deployment test Signed-off-by: bdattoma <[email protected]> * fix autoscale test + restore suite setup/teardown Signed-off-by: bdattoma <[email protected]> * fix robocop alerts Signed-off-by: bdattoma <[email protected]> * fix post install test - change label Signed-off-by: bdattoma <[email protected]> --------- Signed-off-by: bdattoma <[email protected]>
Updating the tests to reflect the new architecture of Caikit runtime with TGIS, as implemented in opendatahub-io/caikit-tgis-serving#107: new runtime is composed by 2 separate containers, one for TGIS and one for Caikit, in the same pod.