-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
The following are automatically added/executed:
Available user actions:
Supported labels{'/verified', '/hold', '/lgtm', '/wip'} |
/lgtm |
@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 |
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.
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
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.
removed the fixtures, calling directly where needed
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}") |
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.
I don't really understand what you're trying to do here, can't we use ResourceEditor directly?
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.
using resource editor - passing a dict with all required changes to all componenets. this for populates the dict
…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
Description
How Has This Been Tested?
Merge criteria: