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 workflow to publish maven snapshots #6394

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

gaiksaya
Copy link
Member

@gaiksaya gaiksaya commented Feb 21, 2023

Description

Adds workflow to publish snapshots to maven

gist of what snapshots publication will look like:

find snapshots | sort
snapshots
snapshots/org
snapshots/org/opensearch
snapshots/org/opensearch/client
snapshots/org/opensearch/client/client-benchmarks
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-javadoc.jar
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-javadoc.jar.md5
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-javadoc.jar.sha1
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-javadoc.jar.sha256
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-javadoc.jar.sha512
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-sources.jar
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-sources.jar.md5
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-sources.jar.sha1
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-sources.jar.sha256
snapshots/org/opensearch/client/client-benchmarks/3.0.0-SNAPSHOT/client-benchmarks-3.0.0-20230220.235219-1-sources.jar.sha512
.....
.....
.....
snapshots/org/opensearch/wildfly/3.0.0-SNAPSHOT/wildfly-3.0.0-20230220.235219-1.war.sha256
snapshots/org/opensearch/wildfly/3.0.0-SNAPSHOT/wildfly-3.0.0-20230220.235219-1.war.sha512
snapshots/org/opensearch/wildfly/maven-metadata.xml
snapshots/org/opensearch/wildfly/maven-metadata.xml.md5
snapshots/org/opensearch/wildfly/maven-metadata.xml.sha1
snapshots/org/opensearch/wildfly/maven-metadata.xml.sha256
snapshots/org/opensearch/wildfly/maven-metadata.xml.sha512

Issues Resolved

resolves #6365

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
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

CHANGELOG.md Outdated
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Support for HTTP/2 (server-side) ([#3847](https://github.com/opensearch-project/OpenSearch/pull/3847))
- Add getter for path field in NestedQueryBuilder ([#4636](https://github.com/opensearch-project/OpenSearch/pull/4636))
- Allow mmap to use new JDK-19 preview APIs in Apache Lucene 9.4+ ([#5151](https://github.com/opensearch-project/OpenSearch/pull/5151))
- Add workflow to publish maven snapshots ([#6394](https://github.com/opensearch-project/OpenSearch/pull/6394))
Copy link
Member

Choose a reason for hiding this comment

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

I think we can skip the changelog for build-related changes

push:
branches:
- main
- 1.*
Copy link
Member

Choose a reason for hiding this comment

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

Will this publish snapshots for like 1.0, 1.1, 1.2 etc? We're only supporting the 1.3 version in the 1.x line so that doesn't seem necessary. Same goes for 2.x where I think the 2.x branch is all we would need. (Unless I'm misunderstanding what the * does here...)

Copy link
Member Author

@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.

You are understanding right! Let me know what should be the trigger values here. I am assuming you want main, 1.x and 2.x? Added the same

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #6394 (b3dab15) into main (72314f7) will decrease coverage by 0.06%.
The diff coverage is n/a.

📣 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    #6394      +/-   ##
============================================
- Coverage     70.62%   70.57%   -0.06%     
+ Complexity    58930    58909      -21     
============================================
  Files          4799     4799              
  Lines        282440   282440              
  Branches      40719    40719              
============================================
- Hits         199477   199328     -149     
- Misses        66580    66726     +146     
- Partials      16383    16386       +3     
Impacted Files Coverage Δ
.../org/opensearch/index/MockEngineFactoryPlugin.java 0.00% <0.00%> (-100.00%) ⬇️
...index/translog/transfer/FileTransferException.java 0.00% <0.00%> (-100.00%) ⬇️
...java/org/opensearch/client/indices/DataStream.java 0.00% <0.00%> (-76.09%) ⬇️
.../opensearch/client/indices/CloseIndexResponse.java 17.50% <0.00%> (-60.00%) ⬇️
.../org/opensearch/test/engine/MockEngineSupport.java 0.00% <0.00%> (-58.88%) ⬇️
...org/opensearch/test/engine/MockInternalEngine.java 0.00% <0.00%> (-47.83%) ⬇️
...regations/metrics/AbstractHyperLogLogPlusPlus.java 51.72% <0.00%> (-44.83%) ⬇️
...adcast/BroadcastShardOperationFailedException.java 55.55% <0.00%> (-44.45%) ⬇️
...pensearch/indices/breaker/CircuitBreakerStats.java 27.77% <0.00%> (-41.67%) ⬇️
...h/action/ingest/SimulateDocumentVerboseResult.java 60.71% <0.00%> (-39.29%) ⬇️
... and 483 more

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

push:
branches:
- main
- 1.x
Copy link
Member

Choose a reason for hiding this comment

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

I think we want 1.3. The only releases we'll do for major version 1 are patch releases on 1.3 (e.g. 1.3.9), which come from the 1.3 branch.

2.x and main are correct for the other branches though.

Copy link
Member Author

@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.

So replace 1.x with 1.3? Done

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@gaiksaya gaiksaya merged commit 267e162 into opensearch-project:main Feb 21, 2023
@gaiksaya gaiksaya deleted the mvn-publish branch February 21, 2023 18:47
@gaiksaya
Copy link
Member Author

Successful run: https://github.com/opensearch-project/OpenSearch/actions/runs/4235888985/jobs/7360055909

@kartg kartg added the backport 2.x Backport to 2.x branch label Feb 22, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Sayali Gaikawad <[email protected]>
(cherry picked from commit 267e162)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gaiksaya gaiksaya added the backport 2.6 Backport to 2.6 branch label Feb 22, 2023
kartg pushed a commit that referenced this pull request Feb 22, 2023
(cherry picked from commit 267e162)

Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Sayali Gaikawad <[email protected]>
(cherry picked from commit 267e162)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 22, 2023
(cherry picked from commit 267e162)

Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 06f6486)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kartg pushed a commit that referenced this pull request Feb 22, 2023
(cherry picked from commit 267e162)

Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gaiksaya gaiksaya added the backport 1.3 Backport to 1.3 branch label Mar 17, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 17, 2023
Signed-off-by: Sayali Gaikawad <[email protected]>
(cherry picked from commit 267e162)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
owaiskazi19 pushed a commit that referenced this pull request Mar 17, 2023
(cherry picked from commit 267e162)

Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@peternied peternied mentioned this pull request Apr 3, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.3 Backport to 1.3 branch backport 2.x Backport to 2.x branch backport 2.6 Backport to 2.6 branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish maven snapshots using GitHub Actions
7 participants