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

Removed publishPluginZipPublicationToMavenLocal from exclude list #581

Closed

Conversation

owaiskazi19
Copy link
Member

@owaiskazi19 owaiskazi19 commented Feb 9, 2024

Description

Removed publishPluginZipPublicationToMavenLocal from exclude list

Issues Resolved

Coming from opensearch-project/skills#178 (comment)

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --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.

@vibrantvarun
Copy link
Member

Can you once test if this publishing the zip on all the places required on sonatype?

I remember this a way to check on the machine as well.

/opensearch-job-scheduler-spi
/opensearch-job-scheduler
/plugin/opensearch-job-scheduler

Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c390d00) 29.17% compared to head (476f2b4) 29.17%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #581   +/-   ##
=========================================
  Coverage     29.17%   29.17%           
  Complexity       98       98           
=========================================
  Files            22       22           
  Lines          1186     1186           
  Branches        109      109           
=========================================
  Hits            346      346           
  Misses          819      819           
  Partials         21       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@prudhvigodithi
Copy link
Member

Seen the artifacts in right place.

org/opensearch/opensearch-job-scheduler/2.12.0.0
org/opensearch/opensearch-job-scheduler-spi/2.12.0.0
org/opensearch/plugin/opensearch-job-scheduler/2.12.0.0
/.m2/repository/org/opensearch/plugin/opensearch-job-scheduler/2.12.0.0 ---> Added the JS zip to the locale maven with with this PR

But missing ~/.m2/repository/org/opensearch/opensearch-job-scheduler/2.12.0.0/.

Copy link
Member

@prudhvigodithi prudhvigodithi left a comment

Choose a reason for hiding this comment

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

Can you test and see if ~/.m2/repository/org/opensearch/opensearch-job-scheduler/2.12.0.0/ is missing from your end as well?

@owaiskazi19
Copy link
Member Author

owaiskazi19 commented Feb 9, 2024

Verified the below with @vibrantvarun

ls snapshots/org/opensearch/plugin/opensearch-job-scheduler/3.0.0.0-SNAPSHOT/
maven-metadata.xml                                             opensearch-job-scheduler-3.0.0.0-20240209.023010-1.pom         opensearch-job-scheduler-3.0.0.0-20240209.023010-1.zip
maven-metadata.xml.md5                                         opensearch-job-scheduler-3.0.0.0-20240209.023010-1.pom.md5     opensearch-job-scheduler-3.0.0.0-20240209.023010-1.zip.md5
maven-metadata.xml.sha1                                        opensearch-job-scheduler-3.0.0.0-20240209.023010-1.pom.sha1    opensearch-job-scheduler-3.0.0.0-20240209.023010-1.zip.sha1
maven-metadata.xml.sha256                                      opensearch-job-scheduler-3.0.0.0-20240209.023010-1.pom.sha256  opensearch-job-scheduler-3.0.0.0-20240209.023010-1.zip.sha256
maven-metadata.xml.sha512                                      opensearch-job-scheduler-3.0.0.0-20240209.023010-1.pom.sha512  opensearch-job-scheduler-3.0.0.0-20240209.023010-1.zip.sha512
ls snapshots/org/opensearch/opensearch-job-scheduler/3.0.0.0-SNAPSHOT/
maven-metadata.xml                                                     opensearch-job-scheduler-3.0.0.0-20240209.022920-1.jar
maven-metadata.xml.md5                                                 opensearch-job-scheduler-3.0.0.0-20240209.022920-1.jar.md5
maven-metadata.xml.sha1                                                opensearch-job-scheduler-3.0.0.0-20240209.022920-1.jar.sha1
maven-metadata.xml.sha256                                              opensearch-job-scheduler-3.0.0.0-20240209.022920-1.jar.sha256
maven-metadata.xml.sha512                                              opensearch-job-scheduler-3.0.0.0-20240209.022920-1.jar.sha512
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-javadoc.jar         opensearch-job-scheduler-3.0.0.0-20240209.022920-1.module
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-javadoc.jar.md5     opensearch-job-scheduler-3.0.0.0-20240209.022920-1.module.md5
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-javadoc.jar.sha1    opensearch-job-scheduler-3.0.0.0-20240209.022920-1.module.sha1
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-javadoc.jar.sha256  opensearch-job-scheduler-3.0.0.0-20240209.022920-1.module.sha256
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-javadoc.jar.sha512  opensearch-job-scheduler-3.0.0.0-20240209.022920-1.module.sha512
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-sources.jar         opensearch-job-scheduler-3.0.0.0-20240209.022920-1.pom
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-sources.jar.md5     opensearch-job-scheduler-3.0.0.0-20240209.022920-1.pom.md5
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-sources.jar.sha1    opensearch-job-scheduler-3.0.0.0-20240209.022920-1.pom.sha1
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-sources.jar.sha256  opensearch-job-scheduler-3.0.0.0-20240209.022920-1.pom.sha256
opensearch-job-scheduler-3.0.0.0-20240209.022920-1-sources.jar.sha512  opensearch-job-scheduler-3.0.0.0-20240209.022920-1.pom.sha512
ls snapshots/org/opensearch/opensearch-job-scheduler-spi/3.0.0.0-SNAPSHOT/
maven-metadata.xml                                                         opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1.pom.sha256
maven-metadata.xml.md5                                                     opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1.pom.sha512
maven-metadata.xml.sha1                                                    opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-javadoc.jar
maven-metadata.xml.sha256                                                  opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-javadoc.jar.md5
maven-metadata.xml.sha512                                                  opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-javadoc.jar.sha1
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-javadoc.jar         opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-javadoc.jar.sha256
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-javadoc.jar.md5     opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-javadoc.jar.sha512
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-javadoc.jar.sha1    opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-sources.jar
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-javadoc.jar.sha256  opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-sources.jar.md5
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-javadoc.jar.sha512  opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-sources.jar.sha1
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-sources.jar         opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-sources.jar.sha256
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-sources.jar.md5     opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2-sources.jar.sha512
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-sources.jar.sha1    opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2.jar
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-sources.jar.sha256  opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2.jar.md5
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1-sources.jar.sha512  opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2.jar.sha1
opensearch-job-scheduler-spi-3.0.0.0-20240209.022529-1.jar                 opensearch-job-scheduler-spi-3.0.0.0-20240209.022856-2.jar.sha256

@owaiskazi19
Copy link
Member Author

Can you test and see if ~/.m2/repository/org/opensearch/opensearch-job-scheduler/2.12.0.0/ is missing from your end as well?

This is a PR to main, right?

@vibrantvarun
Copy link
Member

Me and @owaiskazi19 have tested the artifact publishing on the local machine.

/opensearch-job-scheduler-spi jar gets published
/opensearch-job-scheduler zip gets published
/opensearch-job-scheduler zip gets published

cc: @prudhvigodithi

@vibrantvarun
Copy link
Member

vibrantvarun commented Feb 9, 2024

I think the artifact in .m2 path is missing because we do not have publishToMavenLocal in the maven-publish.yml

cc: @prudhvigodithi @owaiskazi19

@prudhvigodithi
Copy link
Member

prudhvigodithi commented Feb 9, 2024

@owaiskazi19 I have tested your changes against 2.12

Before the change, In local maven (org.opensearch) I see:

opensearch-job-scheduler/   opensearch-job-scheduler-sample-extension/  opensearch-job-scheduler-spi/  

After the change, In local maven (org.opensearch) I see:

opensearch-job-scheduler-sample-extension/ opensearch-job-scheduler-spi/ 

@owaiskazi19
Copy link
Member Author

DO NOT MERGE THIS. Created #582 to copy the zips for now.

@peterzhuamazon peterzhuamazon marked this pull request as draft February 9, 2024 03:20
@peterzhuamazon
Copy link
Member

DO NOT MERGE THIS. Created #582 to copy the zips for now.

Converted to draft just in case.

@prudhvigodithi
Copy link
Member

Closing this PR in favor of #584.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants