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

Support deploy=true on RegisterRemoteModelStep #340

Merged
merged 2 commits into from
Dec 29, 2023

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Dec 29, 2023

Description

Supports deploy=true in the RegisterRemoteModelStep. Passes the argument to ML Commons API and updates the resources created to simulate the DeployModelStep having been called.

Additionally fixes a bug where a user could add a function name other than "remote" which would always fail.

Issues Resolved

Resolves #339
Fixes #341

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (c3ba8f0) 71.70% compared to head (0e4bf0f) 71.65%.

Files Patch % Lines
...lowframework/workflow/RegisterRemoteModelStep.java 73.46% 13 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #340      +/-   ##
============================================
- Coverage     71.70%   71.65%   -0.05%     
- Complexity      560      561       +1     
============================================
  Files            73       73              
  Lines          2962     2978      +16     
  Branches        224      226       +2     
============================================
+ Hits           2124     2134      +10     
- Misses          732      738       +6     
  Partials        106      106              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbwiddis dbwiddis merged commit a45b38c into opensearch-project:main Dec 29, 2023
21 checks passed
@dbwiddis dbwiddis deleted the register-deploy branch December 29, 2023 21:26
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 29, 2023
* Support deploy=true on RegisterRemoteModelStep

Signed-off-by: Daniel Widdis <[email protected]>

* Hardcode function_name to remote

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit a45b38c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Dec 29, 2023
Support deploy=true on RegisterRemoteModelStep (#340)

* Support deploy=true on RegisterRemoteModelStep



* Hardcode function_name to remote



---------


(cherry picked from commit a45b38c)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
2 participants