Skip to content

Commit

Permalink
chore: releasing version 0.16.0 (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre authored Oct 29, 2023
1 parent 8d49e7c commit 2faad38
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 29 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## [0.16.0](https://github.com/pactus-project/pactus/compare/v0.15.0...v0.16.0)(2023-10-29)

### Feat

- **gui**: display network ID ([#780](https://github.com/pactus-project/pactus/pull/780))
- create new validator address (CLI and GUI) ([#757](https://github.com/pactus-project/pactus/pull/757))
- add community bootstrap nodes to testnet config ([#764](https://github.com/pactus-project/pactus/pull/764))
- **network**: implementing connection manager ([#773](https://github.com/pactus-project/pactus/pull/773))
- **network**: adding bootstrapper mode to the network config ([#760](https://github.com/pactus-project/pactus/pull/760))

### Fix

- **network**: redefine the network limits ([#788](https://github.com/pactus-project/pactus/pull/788))
- **consensus**: not increase the vote-box power on duplicated votes ([#785](https://github.com/pactus-project/pactus/pull/785))
- **network**: close connection when unbale to get supported protocols ([#781](https://github.com/pactus-project/pactus/pull/781))
- **network**: enabling peer exchange for bootstrappers ([#779](https://github.com/pactus-project/pactus/pull/779))
- **network**: set connection limit for the resource manager ([#775](https://github.com/pactus-project/pactus/pull/775))
- **sync**: peer status set to known on sucessfull handshaking ([#774](https://github.com/pactus-project/pactus/pull/774))
- **consensus**: strong termination for the binary agreement ([#765](https://github.com/pactus-project/pactus/pull/765))
- **consensus**: not increase the voting power on duplicated binary votes ([#762](https://github.com/pactus-project/pactus/pull/762))

### Refactor

- **network**: refactoring peer manager ([#787](https://github.com/pactus-project/pactus/pull/787))

## [0.15.0](https://github.com/pactus-project/pactus/compare/v0.13.0...v0.15.0)(2023-10-15)

### Feat
Expand Down
7 changes: 2 additions & 5 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,16 @@ func SaveTestnetConfig(path string, numValidators int) error {
"/ip4/159.148.146.149/tcp/21777/p2p/12D3KooWPQAGVMdxbUCeNETPiMkeascvMRorZAwtMUs2UVxftKgZ", // SGTstake (adorid@sgtstake.com)
"/ip4/109.123.246.47/tcp/21777/p2p/12D3KooWERCpnEzD7QgTa7uLhqQjj3L4YmQtAGbW6w76Ckjaop7s", // Stakes.Works (info@stake.works)
"/ip4/173.249.27.146/tcp/21777/p2p/12D3KooWSJREEzTZRzc9wpkU3EW2m9ZGfzrC9jjuwS6wR5uaAZme", // Karma Nodes (karma.nodes@proton.me)
"/ip4/16.170.148.83/tcp/21777/p2p/12D3KooWGaU7u6D9XT8rXnpGWSbNVF3Ezts7ZV3gCV5vuJ4d2jAo", // Mr HoDL (1llusiv387@gmail.com)
"/ip4/13.53.97.58/tcp/21777/p2p/12D3KooWGfwqJVbQAQ7e1WHicMhAjsuvB5ZAYjz8mGVoUG8uoSqC", // Mr HoDL (1llusiv387@gmail.com)
"/dns/pactus.nodesync.top/tcp/21777/p2p/12D3KooWP25ejVsd7cL5DvWAPwEu4JTUwnPniHBf4w93tgSezVt8", // NodeSync.Top (lthuan2011@gmail.com)
"/ip6/2400:8901::f03c:93ff:fe1c:c3ec/tcp/21777/p2p/12D3KooWNYD4bB82YZRXv6oNyYPwc5ozabx2epv75ATV3D8VD3Mq",
"/ip6/2001:bc8:700:8017::1/tcp/21777/p2p/12D3KooWDF8a4goNCHriP1y922y4jagaPwHdX4eSrG5WtQpjzS6k",
"/ip4/95.217.89.202/tcp/21777/p2p/12D3KooWMsi5oYkbbpyyXctmPXzF8UZu2pCvKPRZGyvymhN9BzTD", // CodeBlockLabs (emailbuatcariduit@gmail.com)
}
conf.Network.MinConns = 8
conf.Network.MaxConns = 16
conf.Network.EnableRelay = true
conf.Network.RelayAddrs = []string{
"/ip4/139.162.153.10/tcp/4002/p2p/12D3KooWNR79jqHVVNhNVrqnDbxbJJze4VjbEsBjZhz6mkvinHAN",
"/ip4/188.121.102.178/tcp/4002/p2p/12D3KooWCRHn8vjrKNBEQcut8uVCYX5q77RKidPaE6iMK31qEVHb",
"/ip6/2a01:7e01::f03c:93ff:fed2:84c5/tcp/4002/p2p/12D3KooWNR79jqHVVNhNVrqnDbxbJJze4VjbEsBjZhz6mkvinHAN",
"/ip6/2a07:3900:1:1::113/tcp/4002/p2p/12D3KooWCRHn8vjrKNBEQcut8uVCYX5q77RKidPaE6iMK31qEVHb",
}
conf.GRPC.Enable = true
conf.GRPC.Listen = "[::]:50052"
Expand Down
50 changes: 27 additions & 23 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
Before releasing and publishing the Pactus software, there are a few important steps that need to be followed.
Please follow the instructions below:

1. Get the latest code
1. **Get the latest code**

```bash
git checkout main
git pull
```

2. Updating Windows DLLS
2. **Updating Windows DLLS**

To ensure that the GUI can find the required dependency DLLs in Windows, we may need to update them.
Follow these commands in the project's root directory, using[MSYS2](https://www.msys2.org/):
Expand All @@ -25,11 +25,7 @@ Wait for the build to finish. If everything is okay, proceed to the next step.
Otherwise, update the dependency DLLs inside `.github/releasers/releaser_gui_windows.sh` and
run the above command again.

3. Check the config

Double-check the config files to ensure they are up to date.

4. Creating Environment Variables
3. **Creating Environment Variables**

Let's create environment variables for the release version.
For the rest of this document, we will use these environment variables in the commands.
Expand All @@ -40,12 +36,18 @@ CUR_VER="0.16.0"
NEXT_VER="0.17.0"
TAG_NAME="v${CUR_VER}"
TAG_MSG="Version ${CUR_VER}"
BASE_BRANCH="main"
```

For the rest of this document, we will use these environment variables in commands.
Keep your terminal open.

5. Update Changelog
4. **Update the version**

Remove `beta` from the `meta` field in [version.go](../version/version.go).
Also, double-check the config files to ensure they are up to date.

5. **Update Changelog**

Use [Commitizen](https://github.com/commitizen-tools/commitizen) to update the CHANGELOG.
Run the following command:
Expand All @@ -62,26 +64,26 @@ sed -E -i "s/## v${CUR_VER} /## [${CUR_VER}](https:\/\/github.com\/pactus-projec
sed -E -i 's/\(#([0-9]+)\)/([#\1](https:\/\/github.com\/pactus-project\/pactus\/pull\/\1))/g' CHANGELOG.md
```

6. Create release PR
6. **Create release PR**

Create a new PR against the `main` branch.
Create a new PR against the base branch.
We use [GiyhUb CLI](https://github.com/cli/cli/) to create the PR, but you can create it manually.

```bash
git checkout -b releasing_${CUR_VER}
git commit -a -m "chore: releasing version ${CUR_VER}"
git push origin HEAD
gh pr create --title "chore: releasing version ${CUR_VER}" --body "Releasing version ${CUR_VER}"
gh pr create --title "chore: releasing version ${CUR_VER}" --body "Releasing version ${CUR_VER}" --base ${BASE_BRANCH}
```

Wait for the PR to be approved and merged into the `main` branch.
Wait for the PR to be approved and merged into the base branch.

7. Tagging
7. **Tagging**

Create a git tag:

```bash
git checkout main
git checkout ${BASE_BRANCH}
git pull
git tag -s -a $TAG_NAME -m $TAG_MSG
```
Expand All @@ -92,7 +94,7 @@ check the tag info:
git show $TAG_NAME
```

8. Push the tag
8. **Push the tag**

Now you can push the tag to the repository:

Expand All @@ -102,28 +104,30 @@ git push origin $TAG_NAME

Pushing the tag will automatically create a release tag and build the binaries.

9. Bumping version
9. **Bumping version**

Update the version inside the `version/version.go`
Also, update the version inside this document in step 3.
Update the version inside the [version.go](../version/version.go) and [patching](./patching.md) docuemnts.
If this is a majore release, update the version inside this document in step 3.

Create a new PR against `main` branch:
Create a new PR against base branch:

```bash
git checkout -b bumping_${NEXT_VER}
git commit -a -m "chore: bumping version to ${NEXT_VER}"
git push origin HEAD
gh pr create --title "chore: bumping version to ${NEXT_VER}" --body "Bumping version to ${NEXT_VER}"
gh pr create --title "chore: bumping version to ${NEXT_VER}" --body "Bumping version to ${NEXT_VER}" --base ${BASE_BRANCH}
```

Wait for the PR to be approved and merged into the `main` branch.
Wait for the PR to be approved and merged into the base branch.

10. Update the website
10. **Update the website**

Create a new announcement post in the [blog](https://pactus.org/blog/) and
update the [Road Map](https://pactus.org/about/roadmap/) and
[Download](https://pactus.org/download/) pages.
Additionally, draft a new release on the
[GitHub Releases](https://github.com/pactus-project/pactus/releases) page.

11. Celebrate 🎉
11. **Celebrate 🎉**

Before celebrating, ensure that the release has been tested and that all documentation is up to date
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const (
major uint = 0
minor uint = 16
patch uint = 0
meta string = "beta"
meta string = ""
)

var build string
Expand Down

0 comments on commit 2faad38

Please sign in to comment.