Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Feb 27, 2024
1 parent a0fd8bf commit 37c30bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion ods_ci/tests/Resources/CLI/Minio.resource
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ${MINIO_SA_FILEPATH}= ${MINIO_RESOURCES_DIRPATH}/minio_serviceaccount.yaml

*** Keywords ***
Deploy MinIO

Check warning

Code scanning / Robocop

Keyword '{{ keyword_name }}' has too many keywords inside ({{ keyword_count }}/{{ max_allowed_count }}) Warning test

Keyword 'Deploy MinIO' has too many keywords inside (16/10)
[Documentation] Deploys MiniIO pod, service and route using the given ${minio_image}
[Arguments] ${minio_image}=quay.io/modh/ods-ci-minio-models:1.0
... ${namespace}=minio ${podname}=ods-ci-minio

Check notice

Code scanning / Robocop

There is too many arguments per continuation line ({{ arguments_count }} / {{ max_arguments_count }}) Note test

There is too many arguments per continuation line (2 / 1)
... ${service_name}=ods-ci-minio-srv ${route_name}=ods-ci-minio-route

Check notice

Code scanning / Robocop

There is too many arguments per continuation line ({{ arguments_count }} / {{ max_arguments_count }}) Note test

There is too many arguments per continuation line (2 / 1)
Expand All @@ -38,16 +39,23 @@ Deploy MinIO
RETURN ${route}

Generate Minio Random Credentials
[Documentation] Generates a random pair of keywords to be used as default MinIO user credentials
${key}= Generate Random String chars=[NUMBERS][LETTERS]
${pw}= Generate Random String chars=[NUMBERS][LETTERS] length=12
RETURN ${key} ${pw}

Get Minio Credentials
[Documentation] Extracts the default MinIO user credentials from the pod env variables
[Arguments] ${namespace} ${podname}=ods-ci-minio
${rc} ${key}= Run And Return Rc And Output
... oc get pod ${podname} -n ${namespace} -o jsonpath='{range .spec.containers[*].env[?(@.name=="MINIO_ACCESS_KEY")]}{@.value}{end}' # robocop: disable
Should Be Equal As Integers ${rc} ${0}
${rc} ${pw}= Run And Return Rc And Output
... oc get pod ${podname} -n ${namespace} -o jsonpath='{range .spec.containers[*].env[?(@.name=="MINIO_SECRET_KEY")]}{@.value}{end}' # robocop: disable
Should Be Equal As Integers ${rc} ${0}
RETURN ${key} ${pw}
RETURN ${key} ${pw}

Remove Minio
[Documentation] Delete the MinIO objects from the cluster
Log message=To Be Implemented
# for the time being the test using Minio is deleting the NS.

Check warning

Code scanning / Robocop

Missing trailing blank line at the end of file Warning test

Missing trailing blank line at the end of file
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*** Settings ***
Documentation Collection of CLI tests to validate the model serving stack for Large Language Models (LLM).
Documentation Collection of CLI tests to validate fetching models from different object storages
... in the scope of model serving stack for Large Language Models (LLM).
... These tests leverage on TGIS Standalone Serving Runtime
Resource ../../../../Resources/OCP.resource
Resource ../../../../Resources/CLI/ModelServing/llm.resource
Expand All @@ -14,13 +15,12 @@ Test Tags KServe
${MODEL_S3_DIR}= flan-t5-small-hf
${TEST_NS}= tgis-storages
${TGIS_RUNTIME_NAME}= tgis-runtime
@{SEARCH_METRICS}= tgi_ istio_


Check warning

Code scanning / Robocop

Trailing whitespace at the end of line Warning test

Trailing whitespace at the end of line
*** Test Cases ***
Verify User Can Serve And Query A Model From Minio

Check warning

Code scanning / Robocop

Test case '{{ test_name }}' is too long ({{ test_length }}/{{ allowed_length }}) Warning test

Test case 'Verify User Can Serve And Query A Model From Minio' is too long (32/20)

Check warning

Code scanning / Robocop

Test case '{{ test_name }}' has too many keywords inside ({{ keyword_count }}/{{ max_allowed_count }}) Warning test

Test case 'Verify User Can Serve And Query A Model From Minio' has too many keywords inside (13/10)
[Documentation] Basic tests for preparing, deploying and querying a LLM model
... using Kserve and Caikit+TGIS runtime
... using Kserve and TGIS runtime fetching models from a MinIO server
[Tags] Tier1 RHOAIENG-3490
${minio_namespace}= Set Variable minio-models
${minio_endpoint}= Deploy MinIO namespace=${minio_namespace}
Expand Down Expand Up @@ -59,4 +59,4 @@ Suite Setup
Skip If Component Is Not Enabled kserve
RHOSi Setup
Load Expected Responses
Run git clone https://github.com/IBM/text-generation-inference/
Run git clone https://github.com/IBM/text-generation-inference/

0 comments on commit 37c30bd

Please sign in to comment.