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 workflow for auto release #712

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Add github workflow for auto release #712

merged 1 commit into from
Feb 21, 2023

Conversation

ankitkala
Copy link
Member

Description

This change adds the github action to automatically publish a github release based on tags pushed by opensearch-build

Issues Resolved

#703

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:07
@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2023

Codecov Report

Merging #712 (3f6425a) into main (cafc069) will decrease coverage by 0.13%.
The diff coverage is 50.00%.

❗ Current head 3f6425a differs from pull request most recent head 1283919. Consider uploading reports for the commit 1283919 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     #712      +/-   ##
============================================
- Coverage     73.34%   73.21%   -0.13%     
- Complexity      997      998       +1     
============================================
  Files           141      141              
  Lines          4637     4637              
  Branches        519      519              
============================================
- Hits           3401     3395       -6     
- Misses          911      920       +9     
+ Partials        325      322       -3     
Impacted Files Coverage Δ
...h/replication/task/index/IndexReplicationParams.kt 77.77% <0.00%> (ø)
...h/replication/task/shard/ShardReplicationParams.kt 62.22% <100.00%> (ø)
...cation/action/changes/TransportGetChangesAction.kt 84.12% <0.00%> (-4.77%) ⬇️
.../action/status/TransportReplicationStatusAction.kt 96.73% <0.00%> (-1.09%) ⬇️
...rch/replication/task/index/IndexReplicationTask.kt 68.07% <0.00%> (-0.64%) ⬇️
...rch/replication/task/shard/ShardReplicationTask.kt 75.91% <0.00%> (+0.72%) ⬆️

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

@ankitkala ankitkala merged commit 1a470d0 into opensearch-project:main Feb 21, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Ankit Kala <[email protected]>
(cherry picked from commit 1a470d0)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Ankit Kala <[email protected]>
(cherry picked from commit 1a470d0)
@opensearch-trigger-bot
Copy link

The backport to 2.6 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.6 2.6
# Navigate to the new working tree
cd .worktrees/backport-2.6
# Create a new branch
git switch --create backport/backport-712-to-2.6
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1a470d0b2d021ead0bcf6b6493780d80f4c234d7
# Push it to GitHub
git push --set-upstream origin backport/backport-712-to-2.6
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.6

Then, create a pull request where the base branch is 2.6 and the compare/head branch is backport/backport-712-to-2.6.

opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Ankit Kala <[email protected]>
(cherry picked from commit 1a470d0)
ankitkala added a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Ankit Kala <[email protected]>
(cherry picked from commit 1a470d0)

Co-authored-by: Ankit Kala <[email protected]>
ankitkala added a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Ankit Kala <[email protected]>
(cherry picked from commit 1a470d0)

Co-authored-by: Ankit Kala <[email protected]>
- uses: ncipollo/release-action@v1
with:
github_token: ${{ steps.github_app_token.outputs.token }}
bodyFile: release-notes/opensearch.release-notes-${{steps.tag.outputs.tag}}.md
Copy link
Member

Choose a reason for hiding this comment

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

@ankitkala this workflow will fail as the release notes directory points to opensearch structure.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me fix this in a separate PR.

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