-
Notifications
You must be signed in to change notification settings - Fork 273
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
Publish plugin ZIPs to artifacts.opensearch.org #1823
Comments
I liked the maven approach in that we could add a dependency on a non-released dependency via SNAPSHOT. For instance, if a plugin depends on another plugin. Is there a way to address this? Maybe pulling from latest the zip from ci for dependent plugins? |
I think we should/can do both since we release the binaries for core/native plugins today, and should add the other plugins too. |
Once published to maven, we can give maven repo download URL for plugin zips, they can still download from maven repo the required plugins or work with dependency gradle model |
We can publish plugin zips snapshots to https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/opensearch/ This way all the zips can be downloaded on required by a click, also they can be added to dependency model and can be used to build other plugins or modules With just putting in artifacts.opensearch.org(http://artifacts.opensearch.org/), a user can download yes, but cant use them as dependency model in gradle workflow. So its better and clean to be only in https://aws.oss.sonatype.org/ |
Focusing on #716, that should solve the problem to download the zips that are part of maven repo with clickstreams (or with curl/wget). |
Hey @dblock, just a thought once the META issue to publish the zips to maven is resolved, do we still need to publish plugin ZIPs to artifacts.opensearch.org? |
@prudhvigodithi I believe that yes. They should be downloadable directly and guessing the maven location feels like abusing what maven is built for. |
got it @dblock, but once the zip is in maven they can also be downloaded directly via the URL, apart from using maven coordinates, if yes we need to publish to |
I personally don't have a problem with duplicates. |
Hey I see the parent issues is closed, right now since the release zips and SNAPSHOT zips are part of maven (signed and published), a user can always download from maven, I dont see a need to re-upload them again to the MVN can be used here to fetch the zips
For POM file
For a gradle project
Since we have multiple ways to get the zip, can we close this issue ? @dblock @bbarani @gaiksaya |
@prudhvigodithi I think we still have to document this - should we add a "Distribution Artifacts" section to https://github.com/opensearch-project/opensearch-build README, with a bit more technical content than https://opensearch.org/downloads.html, and a "Maven" section with the content above? |
Hey @dblock I agree with you, we should be adding some info in |
@prudhvigodithi @dblock It looks like the details for installing plugin using Maven has been already updated on the OpenSearch.org website. Do we need to add similar information in readme.txt as well in opensearch-build repo? |
I think we should document internals of where this publishing happens. |
Closing this issue as resolved. @dblock Maybe create a new issue to add a wiki page to this repo (See https://github.com/opensearch-project/opensearch-build/wiki) with details on what all should be documented? |
Is your feature request related to a problem? Please describe
Coming from #1750 (comment) where we are asked to publish plugin ZIPs. Currently to get k-nn-1.3.0.zip I have several options:
Use the released package to locate the .zip build
The drawback is that we're downloading unsigned bits and there's no strong guarantees that builds would be preserved (even if nobody plans to delete them).
Download the latest build
The drawback is that we're downloading unsigned bits, there's no strong guarantees that builds would be preserved, and you may be downloading a newer build of 1.3.0 that was not the version released (an RC is picked amongst the recent builds).
Describe the solution you'd like
Publish plugin ZIPs to artifacts.opensearch.org. Modify https://github.com/opensearch-project/opensearch-build/blob/main/vars/promoteArtifacts.groovy#L61 to also include plugins. Note that today we publish native plugins, e.g. https://artifacts.opensearch.org/releases/plugins/discovery-ec2/1.3.0/discovery-ec2-1.3.0.zip. Also publish plugin ZIPs such as k-nn, e.g. into https://artifacts.opensearch.org/releases/plugins/discovery-ec2/1.3.0/k-nn-1.3.0.zip. Note that we do not publish two copies, x64 vs. arm64, but we should.
Document the locations of the ZIPs on https://opensearch.org/docs/latest/opensearch/install/plugins/#available-plugins
Describe alternatives you've considered
This is an alternative to #716 where we are trying to publish the ZIPs to maven.
Additional context
No response
The text was updated successfully, but these errors were encountered: