Skip to content

Commit

Permalink
chore: releasing version 0.18.0 (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre authored Dec 12, 2023
1 parent 80094b5 commit ea44581
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 17 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## [0.18.0](https://github.com/pactus-project/pactus/compare/v0.17.0...v0.18.0) (2023-12-11)

### Feat

- implement pip-14 ([#841](https://github.com/pactus-project/pactus/pull/841))
- sort wallet addresses ([#836](https://github.com/pactus-project/pactus/pull/836))
- **grpc**: endpoints for creating raw transaction ([#838](https://github.com/pactus-project/pactus/pull/838))
- network reachability API ([#834](https://github.com/pactus-project/pactus/pull/834))
- implement pip-13 ([#835](https://github.com/pactus-project/pactus/pull/835))
- subscribing to libp2p eventbus ([#831](https://github.com/pactus-project/pactus/pull/831))
- implement helper methods for wallet address path ([#830](https://github.com/pactus-project/pactus/pull/830))
- **logger**: adding rotate log file after days, compress and max backups for logger config ([#822](https://github.com/pactus-project/pactus/pull/822))
- enable bandwidth router metric ([#819](https://github.com/pactus-project/pactus/pull/819))

### Fix

- **network**: refining the connection limit ([#849](https://github.com/pactus-project/pactus/pull/849))
- corrected mistake when retrieving the reward address ([#848](https://github.com/pactus-project/pactus/pull/848))
- **config**: restore default config when it is deleted ([#847](https://github.com/pactus-project/pactus/pull/847))
- **cmd**: changing home directory for root users ([#846](https://github.com/pactus-project/pactus/pull/846))
- removing BasicCheck for hash ([#845](https://github.com/pactus-project/pactus/pull/845))
- disabling libp2p ping protocol ([#844](https://github.com/pactus-project/pactus/pull/844))
- build docker file ([#839](https://github.com/pactus-project/pactus/pull/839))
- **sync**: ignore publishing a block if it is received before ([#829](https://github.com/pactus-project/pactus/pull/829))
- **network**: subscribing to the Libp2p event bus ([#828](https://github.com/pactus-project/pactus/pull/828))
- **sync**: ignore block request if blocks are already inside the cache ([#817](https://github.com/pactus-project/pactus/pull/817))

## [0.17.0](https://github.com/pactus-project/pactus/compare/v0.16.0...v0.17.0) (2023-11-12)

### Feat
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func tryLoadConfig(chainType genesis.ChainType, confPath string) (*config.Config

// Create a backup of the config
if util.PathExists(confPath) {
confBackupPath := fmt.Sprintf("%v_bak_%s", confPath, time.Now().Format("2006-01-02T15:04:05"))
confBackupPath := fmt.Sprintf("%v_bak_%s", confPath, time.Now().Format("2006-01-02T15-04-05"))
renameErr := os.Rename(confPath, confBackupPath)
if renameErr != nil {
return nil, renameErr
Expand Down
6 changes: 3 additions & 3 deletions config/example_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@
# Available log levels are:
# "trace", "debug", "info", "warn", and "error".
[logger.levels]
## _consensus = "info"
## _consensus = "warn"
## _grpc = "error"
## _http = "error"
## _network = "info"
## _network = "error"
## _nonomsg = "error"
## _pool = "error"
## _state = "info"
## _sync = "warn"
## _sync = "error"
## default = "info"

# `grpc` contains configuration of the gRRC module.
Expand Down
18 changes: 10 additions & 8 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ git pull

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/):
To ensure that the GUI can find the required dependency DLLs in Windows, you may need to update them for the [Windows installer](../.github/releasers/releaser_gui_windows.sh).
To do this, you'll require access to a Windows OS.
Follow the steps below within the project's root directory using [MSYS2](https://www.msys2.org/):

```bash
git pull
Expand Down Expand Up @@ -45,7 +46,7 @@ Keep your terminal open.
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.
Also, double-check the [config.go](../config/config.go) files to ensure they are up-to-date.

5. **Update Changelog**

Expand All @@ -56,18 +57,19 @@ Run the following command:
cz changelog --incremental --unreleased-version ${TAG_NAME}
```

Sometimes you may need to amend the changelog manually.
Then, add links to the CHANGELOG:
Sometimes you may need to amend the [CHANGELOG](../CHANGELOG.md) manually.

Now, add links to the CHANGELOG:

```bash
sed -E -i "s/## v${CUR_VER} /## [${CUR_VER}](https:\/\/github.com\/pactus-project\/pactus\/compare\/v${PRV_VER}...v${CUR_VER}) /g" CHANGELOG.md
sed -E -i 's/\(#([0-9]+)\)/([#\1](https:\/\/github.com\/pactus-project\/pactus\/pull\/\1))/g' CHANGELOG.md
perl -i -pe "s/## v${CUR_VER} /## [${CUR_VER}](https:\/\/github.com\/pactus-project\/pactus\/compare\/v${PRV_VER}...v${CUR_VER}) /g" CHANGELOG.md
perl -i -pe "s/\(#([0-9]+)\)/([#\1](https:\/\/github.com\/pactus-project\/pactus\/pull\/\1))/g" CHANGELOG.md
```

6. **Create release PR**

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.
We use [GitHub CLI](https://github.com/cli/cli/) to create the PR, but you can create it manually.

```bash
git checkout -b releasing_${CUR_VER}
Expand Down
6 changes: 3 additions & 3 deletions util/logger/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ func DefaultConfig() *Config {
}

conf.Levels["default"] = "info"
conf.Levels["_network"] = "info"
conf.Levels["_consensus"] = "info"
conf.Levels["_network"] = "error"
conf.Levels["_consensus"] = "warn"
conf.Levels["_state"] = "info"
conf.Levels["_sync"] = "warn"
conf.Levels["_sync"] = "error"
conf.Levels["_pool"] = "error"
conf.Levels["_http"] = "error"
conf.Levels["_grpc"] = "error"
Expand Down
6 changes: 4 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
major uint = 0
minor uint = 18
patch uint = 0
meta string = "beta"
meta string = ""
protocolVersion uint = 1
)

Expand All @@ -23,7 +23,9 @@ func Agent() string {

func Version() string {
version := fmt.Sprintf("%d.%d.%d", major, minor, patch)
version = fmt.Sprintf("%s-%s", version, meta)
if meta != "" {
version = fmt.Sprintf("%s-%s", version, meta)
}

return version
}
Expand Down

0 comments on commit ea44581

Please sign in to comment.