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

Fixed unit test for neural query after recent knn change in rescore context #927

Conversation

martin-gaievski
Copy link
Member

Fixed unit test for neural query after recent push in k-NN opensearch-project/k-NN#2183. In that PR k-NN team has added a field userProvided to RescoreContext, and by default it's false, but anything user provided is true. Because of this the equals check in RescoreContext class start failing, and we need to compare only on certain fields.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

…ontext

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
@martin-gaievski martin-gaievski added backport 2.x Label will add auto workflow to backport PR to 2.x branch Maintenance Add support for new versions of OpenSearch/Dashboards from upstream skip-changelog labels Oct 9, 2024
@martin-gaievski
Copy link
Member Author

BWC will keep failing until packages with opensearch-project/k-NN#2195 got propagated to all maven repos

@yuye-aws
Copy link
Member

@martin-gaievski The code looks good to me. Shall we wait for the k-NN change to fix the BWC tests?

@martin-gaievski
Copy link
Member Author

@martin-gaievski The code looks good to me. Shall we wait for the k-NN change to fix the BWC tests?

I don't think we need to wait, we need changes from this PR anyways, and propagation of build artifacts can take days

@yuye-aws
Copy link
Member

@martin-gaievski I've verified that UT can pass with your PR. Thanks for creating this PR.

@yuye-aws
Copy link
Member

Pinging @navneet1v and @vibrantvarun for code review.

@martin-gaievski martin-gaievski merged commit ba94f75 into opensearch-project:main Oct 10, 2024
39 of 58 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 10, 2024
…ontext (#927)

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit ba94f75)
martin-gaievski added a commit that referenced this pull request Oct 11, 2024
…ontext (#927) (#929)

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit ba94f75)

Co-authored-by: Martin Gaievski <gaievski@amazon.com>
martin-gaievski added a commit to Johnsonisaacn/neural-search that referenced this pull request Oct 11, 2024
…ontext (opensearch-project#927)

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Label will add auto workflow to backport PR to 2.x branch Maintenance Add support for new versions of OpenSearch/Dashboards from upstream skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants