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

[3.0] Update neural-search for OpenSearch 3.0 compatibility #1141

Merged

Conversation

martin-gaievski
Copy link
Member

@martin-gaievski martin-gaievski commented Jan 24, 2025

Description

Prepare neural search code base to upcoming 3.x release.

Changes in this PR:

consume API of 3.0-alpha and related dependencies:

  • lucene 10.1
  • latest core OS code
  • consume latest format of lower level query explain response

changes in logic:

  • accept new format of wrapped query for index alias (core rewrites query into bool, now they do additional rewrite that query and structure of bool clauses can change)

infra:

  • version bump for BWC to 2.19 and 2.20-snapshot
  • fixed flaky BWC tests
  • remove some redundant CI actions: precommit and bwc for windows, extra aggs tests for jdk 21

Related Issues

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.

@martin-gaievski martin-gaievski added skip-changelog Maintenance Add support for new versions of OpenSearch/Dashboards from upstream labels Jan 24, 2025
@yuye-aws
Copy link
Member

@martin-gaievski Thanks for working on this PR. Feel free to ping me for code review once it's ready.

@peterzhuamazon
Copy link
Member

knn has updated to 3.0.0.0-alpha1 now.

Thanks.

@martin-gaievski
Copy link
Member Author

we also need ml-commons to be 3.0 alpha ready, neural consumes both knn and ml-commons

@martin-gaievski martin-gaievski changed the base branch from main to 3.0.0-alpha1 February 11, 2025 00:32
@martin-gaievski martin-gaievski changed the base branch from 3.0.0-alpha1 to main February 11, 2025 00:35
@martin-gaievski martin-gaievski changed the base branch from main to 3.0.0-alpha1 February 11, 2025 16:38
@junqiu-lei
Copy link
Member

Waiting ml-commons PR merged to unblock this PR. opensearch-project/ml-commons#3530

@peterzhuamazon
Copy link
Member

Waiting ml-commons PR merged to unblock this PR. opensearch-project/ml-commons#3530

Pending opensearch-project/ml-commons#3426 as the other one is a duplication.

@peterzhuamazon
Copy link
Member

Seems like conflicts with main now.

@martin-gaievski martin-gaievski force-pushed the point_main_to_alpha1 branch 3 times, most recently from dca84f5 to ec3e60c Compare February 14, 2025 02:57
@peterzhuamazon
Copy link
Member

Well @reta @martin-gaievski after @cwperks rerun the snapshots publishing, I think it is passing for now 😄

Thanks.

@martin-gaievski martin-gaievski changed the title Fix failures after core upgrade to lucene 10 [3.0] Update neural-search for OpenSearch 3.0 compatibility Feb 14, 2025
@martin-gaievski martin-gaievski force-pushed the point_main_to_alpha1 branch 3 times, most recently from 1ffa7d6 to 2b2ef5d Compare February 15, 2025 01:03
Copy link
Member

@zhichao-aws zhichao-aws left a comment

Choose a reason for hiding this comment

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

Thanks for creating the PR.

@@ -117,28 +117,6 @@ jobs:
name: coverage-report-${{ matrix.os }}-${{ matrix.java }}
path: ./jacocoTestReport.xml

Precommit-neural-search-windows:
Copy link
Member

Choose a reason for hiding this comment

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

Is there any background to remove the workflows on windows?

Copy link
Member Author

@martin-gaievski martin-gaievski Feb 17, 2025

Choose a reason for hiding this comment

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

mainly it's to offload some work from CI to make it lighter => less flaky and faster. in other plugins (e.g. k-NN https://github.com/opensearch-project/k-NN/actions/runs/13340226034) they use just a single platform, and I cannot recall a case when we caught any error specific to win or linux platform.

Copy link
Member

@vibrantvarun vibrantvarun left a comment

Choose a reason for hiding this comment

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

One minor comment. Overall looks good.

@vibrantvarun vibrantvarun merged commit c36ca15 into opensearch-project:main Feb 17, 2025
74 checks passed
@vibrantvarun
Copy link
Member

Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Maintenance Add support for new versions of OpenSearch/Dashboards from upstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants