Skip to content
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 Model Serving test tags and skip if component is enabled #1010

Merged
merged 13 commits into from
Nov 21, 2023

Conversation

bdattoma
Copy link
Contributor

@bdattoma bdattoma commented Nov 7, 2023

Since KServe and ModelMesh are becoming full part of the product, we should have easier ways to select the tests when we runt them.
In order to achieve that, this PR is adding KServe and ModelMesh, besides adding Quality Gates tags in the KServe suite.

In this way we could include and exclude the tests based on the components we are going to deploy in the test cluster. Moreover, it automatically skips the corresponding tests if Model Mesh or KServe or both are disabled.

Small Extra: replacing the WatsonX references with KServe

@bdattoma bdattoma self-assigned this Nov 7, 2023
@bdattoma bdattoma added the enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) label Nov 7, 2023
FedeAlonso
FedeAlonso previously approved these changes Nov 8, 2023
Copy link
Contributor

@FedeAlonso FedeAlonso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bdattoma bdattoma added the do not merge Do not merge this yet please label Nov 8, 2023
@bdattoma bdattoma dismissed stale reviews from jgarciao and FedeAlonso via 3047289 November 9, 2023 09:08
Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
373 0 0 373 100

@bdattoma bdattoma removed the do not merge Do not merge this yet please label Nov 14, 2023
@bdattoma
Copy link
Contributor Author

bdattoma commented Nov 14, 2023

Smoke for PR test executed on rhods-smoke/3900: SUCCESS (2 failures unrelated to this PR)

@bdattoma bdattoma added the verified This PR has been tested with Jenkins label Nov 15, 2023
@bdattoma bdattoma changed the title Update Model Serving test tags Update Model Serving test tags and skip if component is enabled Nov 15, 2023
jgarciao
jgarciao previously approved these changes Nov 15, 2023
Copy link
Contributor

@jgarciao jgarciao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments, but they can be addressed in a future PR if needed

@@ -15,8 +15,8 @@ ${KSERVE_NS}= ${APPLICATIONS_NAMESPACE}
*** Test Cases ***
Verify KServe Is Shipped
[Documentation] Verify KServe Is Shipped And Enabled Within ODS
[Tags] WatsonX
... ODS-2325
[Tags] ODS-2325
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: Usage of Run Keyword And Continue On Failure can be replaced by adding [Tags] robot:recursive-continue-on-failure. This is documented here https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#continue-on-failure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

on purpose for this one. I'm not sure about keeping it because it requires the pre-req operators to be installed and it's not done in this suite. Will need to re-assess it's utility

@@ -65,15 +66,15 @@ ${SCRIPT_BREW_TAG}= ${EMPTY} # ^[0-9]+$
Verify External Dependency Operators Can Be Deployed
[Documentation] Checks the pre-required Operators can be installed
... and configured
[Tags] ODS-2326 WatsonX
[Tags] ODS-2326
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bdattoma What is the status of this? Is it okay or shall it be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just updated the PR

[Tags] ODS-2341 WatsonX
[Setup] Set Project And Runtime namespace=berto
${test_namespace}= Set Variable berto
[Tags] Smoke ODS-2341
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

@@ -384,7 +385,7 @@ Verify Model Can Be Served And Query On A GPU Node
Verify Non Admin Can Serve And Query A Model
[Documentation] Basic tests leveraging on a non-admin user for preparing, deploying and querying a LLM model
... using Kserve and Caikit+TGIS runtime
[Tags] ODS-2326 WatsonX
[Tags] Smoke ODS-2326
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

Copy link
Contributor Author

@bdattoma bdattoma Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we don't want to set Tier tag on Smoke after the discussion on redefine quality gates, am I wrong?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe TierX has to be always included, independently if the test is in Smoke or Sanity or any other special purpose quality gate

[Tags] ODS-2401 WatsonX
[Setup] Set Project And Runtime namespace=watsonx-metrics enable_metrics=${TRUE}
${test_namespace}= Set Variable watsonx-metrics
[Tags] Smoke ODS-2401
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

@@ -535,7 +536,7 @@ Verify User Can Access Model Metrics From UWM
Verify User Can Query A Model Using HTTP Calls
[Documentation] From RHOAI 2.5 HTTP is allowed and default querying protocol.
... This tests deploys the runtime enabling HTTP port and send queries to the model
[Tags] ODS-2501 WatsonX
[Tags] ODS-2501 Smoke
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TierX tag

jgarciao
jgarciao previously approved these changes Nov 21, 2023
@@ -384,7 +385,7 @@ Verify Model Can Be Served And Query On A GPU Node
Verify Non Admin Can Serve And Query A Model
[Documentation] Basic tests leveraging on a non-admin user for preparing, deploying and querying a LLM model
... using Kserve and Caikit+TGIS runtime
[Tags] ODS-2326 WatsonX
[Tags] Smoke ODS-2326
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe TierX has to be always included, independently if the test is in Smoke or Sanity or any other special purpose quality gate

Signed-off-by: bdattoma <[email protected]>
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jgarciao jgarciao self-requested a review November 21, 2023 11:45
@jgarciao jgarciao merged commit f24f800 into red-hat-data-services:master Nov 21, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants