-
Notifications
You must be signed in to change notification settings - Fork 74
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 JS compile issues caused by OpenSearch JPMS Refactoring #730
Conversation
Adding @peterzhuamazon @cwperks |
@cwperks can you please check the following error with
This looks to me like an error from security plugin ? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your project status has failed because the head coverage (37.67%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #730 +/- ##
=========================================
Coverage 37.67% 37.67%
Complexity 135 135
=========================================
Files 22 22
Lines 1189 1189
Branches 109 109
=========================================
Hits 448 448
Misses 704 704
Partials 37 37 ☔ View full report in Codecov by Sentry. |
AFAIK @cwperks is working on making security compatible with lucene10/alpha1. |
@@ -32,7 +32,7 @@ | |||
* The job runner should be a singleton class if it uses OpenSearch client or other objects passed | |||
* from OpenSearch. Because when registering the job runner to JobScheduler plugin, OpenSearch has | |||
* not invoke plugins' createComponents() method. That is saying the plugin is not completely initalized, | |||
* and the OpenSearch {@link org.opensearch.client.Client}, {@link ClusterService} and other objects | |||
* and the OpenSearch {@link Client}, {@link ClusterService} and other objects |
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.
Typo.
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.
and the OpenSearch {@link org.opensearch.client.Client}
should be changed to and the OpenSearch {@link org.opensearch.transport.client.Client}
?
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.
Since this org.opensearch.transport.client.Client
is already part of the import, Client
refers to the same package Peter. Thanks
I've run into the same issue in the security plugin and I think its due to a mismatch of running core and security with different qualifiers. If I run the core from opensearch-project/OpenSearch@8a5c3b5 (commit before Lucene 10) and run with the changes in security from opensearch-project/security#5053 I get the same NPE. It may happen in reverse too if core is running |
@cwperks just an FYI lot of refactoring has been done in Core (related to the JPMS phase-0) which may cause some breaking changes, see if this is the culprit. Thanks |
opensearch-project/security#5053 accounts for the changes in core to remove The checks are passing now so if you need to unblock the build I think its ok to merge, but I'm going to keep it open to allow maintainers to review it. Thank you to @reta for helping with adapting to the core changes for Lucene 10 + other breaking changes :) |
@prudhvigodithi I rerun the test now as @cwperks PR is merged now. Thanks. |
Signed-off-by: Prudhvi Godithi <[email protected]>
@@ -15,6 +15,9 @@ buildscript { | |||
// 2.2.0-SNAPSHOT -> 2.2.0.0-SNAPSHOT | |||
version_tokens = opensearch_version.tokenize('-') | |||
opensearch_build = version_tokens[0] + '.0' | |||
if (buildVersionQualifier) { | |||
opensearch_build += "-${buildVersionQualifier}" | |||
} |
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.
Thanks for suggesting this @cwperks. The security test pass now.
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.
Seems like this part was missing all the time 😄
62fb0c9
into
opensearch-project:main
Description
Fix JS compile issues caused by OpenSearch JPMS Refactoring. For more details see the CI failures part of #729.
Related Issues
Part of opensearch-project/OpenSearch#8110, #715, #426 and opensearch-project/opensearch-build#3747.
Check List
--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.