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

Fix tests to handle ambiguous mlClient method signature #995

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

dbwiddis
Copy link
Member

Description

Following opensearch-project/ml-commons#3382, the ML Client has multiple method signatures matching deleteConnector(String, Object).

Updates tests that were failing due to this ambiguity.

Related Issues

Resolves failing compilation and tests such as https://github.com/opensearch-project/flow-framework/actions/runs/12784028161/job/35636228362

Check List

  • New functionality includes testing.
  • Commits are signed per the DCO using --signoff.

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.

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.57%. Comparing base (0284554) to head (8ee3ada).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #995   +/-   ##
=========================================
  Coverage     77.57%   77.57%           
  Complexity      993      993           
=========================================
  Files            99       99           
  Lines          4714     4714           
  Branches        431      431           
=========================================
  Hits           3657     3657           
  Misses          877      877           
  Partials        180      180           

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

Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

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

I fixed this on my local with the current change I am working on. Thanks for the PR!

@dbwiddis dbwiddis merged commit 4b92fb8 into opensearch-project:main Jan 15, 2025
21 of 23 checks passed
@dbwiddis dbwiddis deleted the fix-mlclient-tests branch January 15, 2025 18:42
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 15, 2025
Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit 4b92fb8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Jan 15, 2025
#996)

Fix tests to handle ambiguous mlClient method signature (#995)


(cherry picked from commit 4b92fb8)

Signed-off-by: Daniel Widdis <widdis@gmail.com>
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 skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants