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

ci: implement semantic release process #17440

Merged
merged 105 commits into from
Feb 28, 2025
Merged

Conversation

andrewb1269hg
Copy link
Contributor

@andrewb1269hg andrewb1269hg commented Jan 18, 2025

Description:
The purpose of this PR is to create two workflows:

increment-next-main-release.yaml will increment the version.txt file to the next minor release (Ex: 0.58.x --> 0.59.0). This will be used when a release is complete and we are working on a new release version.

flow-trigger-release.yaml will apply a version tag using the git-semver tool with appropriate semantic release versioning, trigger our workflows for a release, and generate the release notes in a markdown format.

Related issue(s):

Fixes #14967

Notes for reviewer:

Checklist

Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Copy link

codacy-production bot commented Feb 4, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.16% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (ad099ae) 96992 70495 72.68%
Head commit (da0afa9) 97741 (+749) 71194 (+699) 72.84% (+0.16%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#17440) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@andrewb1269hg andrewb1269hg requested review from a team as code owners February 19, 2025 15:56
@andrewb1269hg
Copy link
Contributor Author

Created Issue #17955 to capture the alpha tag creation.

rbarker-dev
rbarker-dev previously approved these changes Feb 19, 2025
@andrewb1269hg
Copy link
Contributor Author

Increment Next Main Release workflow tested and successful here:
https://github.com/hiero-ledger/hiero-consensus-node/actions/runs/13511623973/job/37752812819

@andrewb1269hg andrewb1269hg force-pushed the 14967-git-semver-test-branch branch from d8d0cd6 to ed5a33f Compare February 25, 2025 01:36
@andrewb1269hg
Copy link
Contributor Author

andrewb1269hg commented Feb 25, 2025

Testing the standard release process here was successful:
https://github.com/hiero-ledger/hiero-consensus-node/actions/runs/13511799402
Applied v0.98.99 to build-00058
Workflow applied v0.99.0 to build-00059 correctly

@andrewb1269hg
Copy link
Contributor Author

Testing with alpha tags. Alpha tags do not interfere with the official release numbers:
https://github.com/hiero-ledger/hiero-consensus-node/actions/runs/13511867439/job/37753478975

Manually applied:
v0.97.99 applied to build-00057
v0.98.99-alpha.0 applied to build-00058

Workflow applied:
v0.98.0 applied to build-00059 which ignored the previously cut alpha release

rbarker-dev
rbarker-dev previously approved these changes Feb 25, 2025
Copy link
Member

@rbarker-dev rbarker-dev left a comment

Choose a reason for hiding this comment

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

lgtm

Co-authored-by: Nathan Klick <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
andrewb1269hg and others added 3 commits February 26, 2025 14:14
Co-authored-by: Nathan Klick <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
Co-authored-by: Nathan Klick <[email protected]>
Signed-off-by: Andrew Brandt <[email protected]>
@andrewb1269hg andrewb1269hg merged commit 95bfbd8 into main Feb 28, 2025
43 checks passed
@andrewb1269hg andrewb1269hg deleted the 14967-git-semver-test-branch branch February 28, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: enable semantic release in gh release workflows
3 participants