-
Notifications
You must be signed in to change notification settings - Fork 138
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 dispatching execute task; don't dispatch ML task again #279
support dispatching execute task; don't dispatch ML task again #279
Conversation
Signed-off-by: Yaliang Wu <[email protected]>
plugin/build.gradle
Outdated
@@ -207,7 +207,8 @@ jacocoTestReport { | |||
List<String> jacocoExclusions = [ | |||
// TODO: add more unit test to meet the minimal test coverage. | |||
'org.opensearch.ml.constant.CommonValue', | |||
'org.opensearch.ml.plugin.MachineLearningPlugin*' | |||
'org.opensearch.ml.plugin.MachineLearningPlugin*', | |||
'org.opensearch.ml.task.MLPredictTaskRunner' |
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.
We might want to refactor this PredictTaskRunner later. It has a big body in predict() method which is not test friendly.
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.
Yes, good point, we can refactor later
Signed-off-by: Yaliang Wu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #279 +/- ##
=======================================
Coverage ? 92.16%
Complexity ? 360
=======================================
Files ? 51
Lines ? 1111
Branches ? 51
=======================================
Hits ? 1024
Misses ? 69
Partials ? 18
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@@ -46,6 +49,8 @@ public class TaskRunnerTests extends OpenSearchTestCase { | |||
MLTaskDispatcher mlTaskDispatcher; | |||
@Mock | |||
MLCircuitBreakerService mlCircuitBreakerService; | |||
@Mock |
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.
Curiosity question: this CuslterService mock has to be used together with extending
OpenSearchTestCase` right?
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.
Answering my own question here: no it doesn't have to
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-279-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1e15c8804e0734015c3494a2f0bc070d59634df9
# Push it to GitHub
git push --set-upstream origin backport/backport-279-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.0 2.0
# Navigate to the new working tree
cd .worktrees/backport-2.0
# Create a new branch
git switch --create backport/backport-279-to-2.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1e15c8804e0734015c3494a2f0bc070d59634df9
# Push it to GitHub
git push --set-upstream origin backport/backport-279-to-2.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.0 Then, create a pull request where the |
…earch-project#279) * support dispatching execute task; don't dispatch ML task again Signed-off-by: Yaliang Wu <[email protected]> * remove MLPredictTaskRunner from jacoco exclusion list Signed-off-by: Yaliang Wu <[email protected]>
… task again (#298) * support dispatching execute task; don't dispatch ML task again (#279) * support dispatching execute task; don't dispatch ML task again Signed-off-by: Yaliang Wu <[email protected]> * remove MLPredictTaskRunner from jacoco exclusion list Signed-off-by: Yaliang Wu <[email protected]> * fix compiling error Signed-off-by: Yaliang Wu <[email protected]>
…earch-project#279) * support dispatching execute task; don't dispatch ML task again Signed-off-by: Yaliang Wu <[email protected]> * remove MLPredictTaskRunner from jacoco exclusion list Signed-off-by: Yaliang Wu <[email protected]>
… task again (#279) (#301) * support dispatching execute task; don't dispatch ML task again (#279) * support dispatching execute task; don't dispatch ML task again Signed-off-by: Yaliang Wu <[email protected]> * remove MLPredictTaskRunner from jacoco exclusion list Signed-off-by: Yaliang Wu <[email protected]> * fix checkstyle error Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Yaliang Wu [email protected]
Description
Check List
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.