-
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
Fix broken sanity tests + Add skip wait option in test teardown in model serving #1157
Changes from 20 commits
1276323
8953db2
e56ad4c
0dcc905
b72d1b7
7630cb5
afe1124
957e4b4
87827a8
c50f4f6
63183e2
0a1cafa
aa88d0a
a6da1b6
60530cb
58d7276
4cf3ca3
8705048
1443179
aa06ca5
ebbca32
821c020
17c983a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,6 @@ | |
${BUCKET_SECRET_FILEPATH}= ${LLM_RESOURCES_DIRPATH}/bucket_secret.yaml | ||
${BUCKET_SA_FILEPATH}= ${LLM_RESOURCES_DIRPATH}/bucket_sa.yaml | ||
${USE_BUCKET_HTTPS}= "1" | ||
${UWM_ENABLE_FILEPATH}= ${LLM_RESOURCES_DIRPATH}/uwm_cm_enable.yaml | ||
${UWM_CONFIG_FILEPATH}= ${LLM_RESOURCES_DIRPATH}/uwm_cm_conf.yaml | ||
${MODELS_BUCKET}= ${S3.BUCKET_3} | ||
${SERVICEMESH_CR_NS}= istio-system | ||
&{RUNTIME_FLIEPATHS}= caikit-tgis-runtime=${LLM_RESOURCES_DIRPATH}/serving_runtimes/caikit_tgis_servingruntime_{{protocol}}.yaml | ||
|
@@ -62,8 +60,8 @@ | |
... region=${MODELS_BUCKET.REGION} namespace=${namespace} | ||
Deploy Serving Runtime namespace=${namespace} runtime=${runtime} protocol=${protocol} | ||
IF ${enable_metrics} == ${TRUE} | ||
Oc Apply kind=ConfigMap src=${UWM_CONFIG_FILEPATH} | ||
Oc Apply kind=ConfigMap src=${UWM_ENABLE_FILEPATH} | ||
Enable User Workload Monitoring | ||
Configure User Workload Monitoring | ||
ELSE | ||
Log message=Skipping UserWorkloadMonitoring enablement. | ||
END | ||
|
@@ -292,6 +290,7 @@ | |
[Documentation] Group together the test steps for preparing, deploying | ||
... and querying a model | ||
[Arguments] ${model_storage_uri} ${model_name} ${isvc_name}=${model_name} | ||
... ${runtime}=caikit-tgis-runtime ${protocol}=grpc ${inference_type}=all-tokens | ||
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Show resolved
Hide resolved
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Show resolved
Hide resolved
|
||
... ${canaryTrafficPercent}=${EMPTY} ${namespace}=${TEST_NS} ${sa_name}=${DEFAULT_BUCKET_SA_NAME} | ||
... ${n_queries}=${1} ${query_idx}=${0} ${validate_response}=${TRUE} | ||
Compile Inference Service YAML isvc_name=${isvc_name} | ||
|
@@ -303,8 +302,9 @@ | |
Wait For Pods To Be Ready label_selector=serving.kserve.io/inferenceservice=${isvc_name} | ||
... namespace=${namespace} | ||
Query Model Multiple Times isvc_name=${isvc_name} model_name=${model_name} | ||
... endpoint=${CAIKIT_ALLTOKENS_ENDPOINT} n_times=${n_queries} streamed_response=${FALSE} | ||
... namespace=${namespace} query_idx=${query_idx} validate_response=${validate_response} | ||
... n_times=${n_queries} namespace=${namespace} query_idx=${query_idx} | ||
... validate_response=${validate_response} protocol=${protocol} | ||
... runtime=${runtime} inference_type=${inference_type} | ||
|
||
Upgrade Caikit Runtime Image | ||
[Documentation] Replaces the image URL of the Caikit Runtim with the given | ||
|
@@ -567,7 +567,7 @@ | |
Clean Up Test Project | ||
[Documentation] Deletes the given InferenceServices, check the NS gets removed from ServiceMeshMemberRoll | ||
... and deletes the DS Project | ||
[Arguments] ${test_ns} ${isvc_names} ${isvc_delete}=${TRUE} | ||
[Arguments] ${test_ns} ${isvc_names} ${isvc_delete}=${TRUE} ${wait_prj_deletion}=${TRUE} | ||
IF ${isvc_delete} == ${TRUE} | ||
FOR ${index} ${isvc_name} IN ENUMERATE @{isvc_names} | ||
Log Deleting ${isvc_name} | ||
|
@@ -580,5 +580,9 @@ | |
... namespace=${test_ns} | ||
${rc} ${out}= Run And Return Rc And Output oc delete project ${test_ns} | ||
Should Be Equal As Integers ${rc} ${0} | ||
${rc} ${out}= Run And Return Rc And Output oc wait --for=delete namespace ${test_ns} --timeout=300s | ||
Should Be Equal As Integers ${rc} ${0} | ||
IF ${wait_prj_deletion} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a lot of keywords deleting projects, for example Could you consider enhancing the existing one for your purposes in another PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about that while reviewing the code. I think the main difference is that the first one you mention handle DS Projects, while in this case we're handling basic OCP projects. I didn't apply enhancements for now, need to thinki a bit more about how to implement it, but I agree |
||
${rc} ${out}= Run And Return Rc And Output oc wait --for=delete namespace ${test_ns} --timeout=300s | ||
Should Be Equal As Integers ${rc} ${0} | ||
ELSE | ||
Log Project deletion started, but won't wait for it to finish.. | ||
END | ||
|
Check notice
Code scanning / Robocop
There is too many arguments per continuation line ({{ arguments_count }} / {{ max_arguments_count }}) Note test