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

Add github action to publish snapshots to maven #711

Closed
wants to merge 3 commits into from
Closed

Add github action to publish snapshots to maven #711

wants to merge 3 commits into from

Conversation

ankitkala
Copy link
Member

@ankitkala ankitkala commented Feb 21, 2023

Description

Add github action to publish snapshots to maven

Issues Resolved

#710

Testing Done

Tested by publishing to the local filesystem

cross-cluster-replication ankikala$ tree snapshots/
snapshots/
└── org
    └── opensearch
        └── plugin
            └── opensearch-cross-cluster-replication
                ├── 3.0.0.0-SNAPSHOT
                │   ├── maven-metadata.xml
                │   ├── maven-metadata.xml.md5
                │   ├── maven-metadata.xml.sha1
                │   ├── maven-metadata.xml.sha256
                │   ├── maven-metadata.xml.sha512
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.pom
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.pom.md5
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.pom.sha1
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.pom.sha256
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.pom.sha512
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.zip
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.zip.md5
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.zip.sha1
                │   ├── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.zip.sha256
                │   └── opensearch-cross-cluster-replication-3.0.0.0-20230221.070242-1.zip.sha512
                ├── maven-metadata.xml
                ├── maven-metadata.xml.md5
                ├── maven-metadata.xml.sha1
                ├── maven-metadata.xml.sha256
                └── maven-metadata.xml.sha512

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.

@ankitkala ankitkala requested a review from a team February 21, 2023 05:00
Signed-off-by: Ankit Kala <ankikala@amazon.com>
@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2023

Codecov Report

Merging #711 (0bb4576) into main (cafc069) will decrease coverage by 0.09%.
The diff coverage is 50.00%.

❗ Current head 0bb4576 differs from pull request most recent head 1f88409. Consider uploading reports for the commit 1f88409 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #711      +/-   ##
============================================
- Coverage     73.34%   73.25%   -0.09%     
  Complexity      997      997              
============================================
  Files           141      141              
  Lines          4637     4637              
  Branches        519      519              
============================================
- Hits           3401     3397       -4     
- Misses          911      916       +5     
+ Partials        325      324       -1     
Impacted Files Coverage Δ
...h/replication/task/index/IndexReplicationParams.kt 77.77% <0.00%> (ø)
...h/replication/task/shard/ShardReplicationParams.kt 62.22% <100.00%> (ø)
...rch/replication/task/index/IndexReplicationTask.kt 67.86% <0.00%> (-0.85%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ankitkala
Copy link
Member Author

BWC and security test failures are known issues on main

monusingh-1
monusingh-1 previously approved these changes Feb 21, 2023
sricharanvuppu
sricharanvuppu previously approved these changes Feb 21, 2023
fail-fast: false
matrix:
jdk: [11, 17]
platform: ["ubuntu-latest", "windows-latest", "macos-latest"]
Copy link
Member

@gaiksaya gaiksaya Feb 21, 2023

Choose a reason for hiding this comment

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

I dont think you need to build on all platforms to publish to maven. Same with JDK.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack. Updated.

@ankitkala ankitkala dismissed stale reviews from sricharanvuppu and monusingh-1 via ce45cb9 February 22, 2023 03:10
Signed-off-by: Ankit Kala <ankikala@amazon.com>
]

jobs:
build-and-publish-snapshots:\
Copy link
Member

Choose a reason for hiding this comment

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

typo: \

gaiksaya
gaiksaya previously approved these changes Feb 22, 2023
Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

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

I added the required secret role: PUBLISH_SNAPSHOTS_ROLE
Please fix the typo and it should be good to merge.
Thanks!

Signed-off-by: Ankit Kala <ankikala@amazon.com>
@ankitkala
Copy link
Member Author

Build started failing due to a breaking change in OS: /~https://github.com/opensearch-project/cross-cluster-replication/pull/718/files

WIll raise a backport PR manually in 2.x for now.

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

Successfully merging this pull request may close these issues.

5 participants