-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add pluginZip publication for plugins in the plugins folder #16219
Conversation
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Sorry @cwperks , missed the original issue , I think this is clearly a miss now that I think for SNAPSHOTs, this command should work (as it does for releases):
That would probably require CLI tooling to be aware of snapshot repository where the plugins are published (much like the SNAPSHOT distribution). |
❌ Gradle check result for 8a11171: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
How would this command work if the zipfiles are not published to the SNAPSHOTS repo? Zipfiles are published for other plugins in the default distributions, but are not published for the built-in plugins. Do you think it makes sense to publish zips for the built-in plugins? If not, I will close this PR. This PR would publish the zipfiles, but additional |
It depends what is the goal. I think we should be focusing getting this one to work:
Would that require publishing zips for the built-in plugins? It seems like not since we haven't been doing it for any of the releases (so far) |
To share a more context why I think so, it comes strait from the typical usages, all over the place. For example, we publish Docker images for releases and SNAPSHOTs. If someone wants to customize Docker images with more plugins installed, the simplest way to do it is:
That (ideally) should work for any image that we (OpenSearch project) publish, release or SNAPSHOT, not the case now. |
Signed-off-by: Craig Perkins <[email protected]>
I think the snapshot zips would need to be published in order for this to work. I was able to rework some old code within
Let me see if I can test it using maven local. Converting this to Draft in the meantime |
❌ Gradle check result for 2fa838d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Craig Perkins <[email protected]>
We may need some help from build team on that, we do publish min SHAPSHOT distributions fe, @peterzhuamazon could you help us here to find the right way / place to have snapshot based distributions published? Thank you. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16219 +/- ##
============================================
- Coverage 71.94% 71.80% -0.15%
+ Complexity 64612 64552 -60
============================================
Files 5298 5299 +1
Lines 301952 301959 +7
Branches 43627 43629 +2
============================================
- Hits 217247 216823 -424
- Misses 66884 67322 +438
+ Partials 17821 17814 -7 ☔ View full report in Codecov by Sentry. |
The default behaviour for
or another option is
Some useful discussion from past: Adding @getsaurabh02 @dblock |
@cwperks do you want a hand on this with infra part? thanks! |
Coming from opensearch-project/opensearch-api-specification#609 (comment) I'd like these to be published! |
Yes, that would be great. The first commit of this PR was intended to publish the snapshot zips. I added another commit later to modify the |
If we go with maven we should consider this point, both jars and zips should not be published under the same groupID, example For regular plugins this So should we do the same for native plugin? Publish the jars to |
I think publication wise, we should be installing ZIPs under: |
yes @reta just pushing the native plugin snapshot zips to s3 https://artifacts.opensearch.org/snapshots/plugins/ and updating the |
It actually supports that already :) But there is no publications to fetch |
Is the stagingHash actually necessary? It looked like a legacy from before the fork and safe to remove, but let me know if its actually needed. |
May need to be sorted out, right |
@cwperks It would be amazing to see this PR finished. |
I will pick this up later today and come to a determination whether the stagingHash is necessary or not. |
@cwperks let's wait for opensearch-project/opensearch-build#5096 to be resolved so we know how the plugins will be published, thanks |
Should be fixed by #16581 |
Thank you @reta! I will close this PR. |
Description
This PR adds a new publication for plugins in the
plugins/
folder to publish zip files of the artifacts.This enables tasks like the following:
Related Issues
Related to #16195
Check List
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.