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

[model server] Add Model mesh tensorflow test and enable openvino auth test #102

Merged
merged 46 commits into from
Jan 28, 2025

Conversation

rnetser
Copy link
Collaborator

@rnetser rnetser commented Jan 24, 2025

Description

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Copy link

The following are automatically added/executed:

Available user actions:

  • To mark a PR as WIP, add /wip in a comment. To remove it from the PR comment /wip cancel to the PR.
  • To block merging of a PR, add /hold in a comment. To un-block merging of PR comment /hold cancel.
  • To mark a PR as approved, add /lgtm in a comment. To remove, add /lgtm cancel.
    lgtm label removed on each new commit push.
  • To mark PR as verified comment /verified to the PR, to un-verify comment /verified cancel to the PR.
    verified label removed on each new commit push.
Supported labels

{'/verified', '/hold', '/lgtm', '/wip'}

@mwaykole
Copy link
Member

/lgtm

@mwaykole mwaykole merged commit 5f8dc35 into opendatahub-io:main Jan 28, 2025
4 checks passed
Comment on lines +165 to +172
@pytest.fixture(scope="class")
def modelmesh_management_state(dsc_resource: DataScienceCluster) -> str:
return dsc_resource.instance.spec.components[DscComponents.MODELMESHSERVING].managementState


@pytest.fixture(scope="class")
def kserve_management_state(dsc_resource: DataScienceCluster) -> str:
return dsc_resource.instance.spec.components[DscComponents.KSERVE].managementState
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer to have a single function/fixture that returns the management state for any component, I don't see the benefit in having to write the same one line function for each component

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed the fixtures, calling directly where needed

Comment on lines +35 to +42
for component_name, desired_state in components.items():
if (orig_state := dsc_components[component_name].managementState) != desired_state:
dsc_dict.setdefault("spec", {}).setdefault("components", {})[component_name] = {
"managementState": desired_state
}
component_to_reconcile[component_name] = orig_state
else:
LOGGER.warning(f"Component {component_name} was already set to managementState {desired_state}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't really understand what you're trying to do here, can't we use ResourceEditor directly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

using resource editor - passing a dict with all required changes to all componenets. this for populates the dict

mwaykole pushed a commit to mwaykole/opendatahub-tests that referenced this pull request Jan 29, 2025
…h test (opendatahub-io#102)

* Create size-labeler.yml

* Delete .github/workflows/size-labeler.yml

* add model mesh tests

* add model mesh tests

* add model mesh tests

* update code

* increase timeout

* add fixtures to enabe kserve modelmesh

* add fixtures to enabe kserve modelmesh

* add fixtures to enabe kserve modelmesh

* add fixtures to enabe kserve modelmesh

* update scope

* update scope

* add service mesh

* remove unused xitures

* update model registry type in dsc

* fix kserve type and remove check
# Conflicts:
#	tests/model_serving/model_server/utils.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants