-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] Unable to install lang-painless module when testDistribution is set to INTEG_TEST for k-NN #1676
Comments
Should we move this issue into OpenSearch repo? That’s where we’d be fixing it, right? |
@jmazanec15 Modules are only installed for The rootcause of the problem is 1.3.0-SNAPSHOT opensearch min artifact is not available for darwin. So unless that is resolved running integration tests on darwin would not work. That said, for the last part of the question: |
Closing this. Feel free to reopen if the comment does not help. |
@saratvemulapalli Not sure I have the ability to reopen, but wanted to continue discussion. I tried switching to INTEG_TEST, but this does not come with modules other than transport-netty. I was thinking about installing the "lang-painless" in the following way:
However, I get the following error:
I have a couple questions:
Related issue: opensearch-project/opensearch-build#1750 (comment) |
I can re-open the issue. |
@ryanbogan @saratvemulapalli @dblock @prudhvigodithi Wanted to follow up on this. Right now, we (k-NN) cannot run integration tests on Mac because we are not able to get the lang-painless zip artifact for the INTEG TEST distribution. I believe that Alerting has the same issue. With opensearch-project/opensearch-build#716 and opensearch.pluginzip, will we be able to add a dependency to pull core plugin artifacts from Maven so that we can install painless on the testcluster? |
@prudhvigodithi should be able to answer ^ |
Hey @jmazanec15 opensearch.pluginzip, this will publish the generated distribution plugin zip's to maven repo, is |
@prudhvigodithi I am not sure if its a part of any plugin bundle task. It is a core module. Is there a plan to publish all core plugin/module zips so that they can be consumed? |
It seems like there are several other plugins that might have this issue (i.e. cant bring up cluster on mac):
I am wondering if, given that modules are meant to be shipped with OpenSearch, it makes sense to have a testDistribution that includes modules and works on mac. Im not sure if this means adding support for it through the ARCHIVE distribution, or adding another distribution similar to INTEG_TEST. What do you think? @dblock @saratvemulapalli @prudhvigodithi @ryanbogan . |
+1 on this issue, Anomaly Detection is experiencing the exact same bug. |
@amitgalitz @jmazanec15 I see it as a workaround to help install default modules for a test distribution( My thoughts, I would rather have it supported the right way rather than putting in a work around. |
In general, it creates a lot of extra effort for someone to rampup on the project. They have to figure out a system that will sync mac dev environment with linux. Also, makes running debuggers more difficult. Overall, makes the bar to contribute higher. opensearch-project/opensearch-build#38 seems to be focused on supporting the bundle as a whole on Mac. I am wondering if as a first step, we could just enable it for OpenSearch and its modules to unblock development. Specifically, focus on making ARCHIVE work on Mac as opposed to waiting for Mac bundle to be ready and supported. |
Absolutely, I feel the pain as well :).
Yeah that would be a nice intermediate step which unblocks this, I love this idea. |
@saratvemulapalli Can you please clarify the artifact that you are referring in the above comment? Are you referring to opensearch-min artifact? |
Correct, opensearch-min artifact for MacOS (darwin). |
Does a cross-platform build for MacOS work on MacOS? If so we can probably add to the existing Jenkinsfile a "mac" build that's good enough? |
@dblock, or we can just run the distribution build on macOS ec2 jenkins agent, then the logic |
We are currently exploring this option. We will update this thread soon with our findings. |
Hey @jmazanec15, can you please test with |
Yes it works!
Just to be sure, this will get published to something like
correct? |
Similar issue but happening for all the OS versions with mavenLocalPublish. Can someone please take a look at this too? |
Hey @jmazanec15 will post an update regarding the darwin final download URL. |
Closing this. Thanks for all the work @prudhvigodithi. |
@prudhvigodithi Thanks for the work. This was really a blocker for the development on mac. |
What is the bug?
For k-NN, I am trying to run integ tests on Mac. To do this, I first switched testDistribution from ARCHIVE to INTEG_TEST. Otherwise, it cannot find the OpenSearch artifact:
After making the above switch, it is able to download, but fails with the following error (k-NN has a dependency on lang-painless):
This is because the modules do not come with the INTEG_TEST distribution.
So, I create the lang painless module from source and placed it in test resources. Then, I add it as a plugin. However, this then fails with this error:
So, I switch this line from plugin to module. However, this then produces the missing plugin error again:
I was wondering if there is any way to prevent gradle from attempting to install an extended plugin as a plugin when it is a module.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Expect to be able to add lang-painless as a module.
What is your host/environment?
The text was updated successfully, but these errors were encountered: