Skip to content

Commit

Permalink
Release v0.34.27-alpha.1 (#316)
Browse files Browse the repository at this point in the history
* Add changelog entry for #314

Signed-off-by: Thane Thomson <[email protected]>

* Build changelog with unreleased changes for pre-release

Signed-off-by: Thane Thomson <[email protected]>

* version: Set to v0.34.27-alpha.1

Signed-off-by: Thane Thomson <[email protected]>

* ci: Update to incorporate/backport changes from #317

Signed-off-by: Thane Thomson <[email protected]>

* ci: Simplify release workflow further

Signed-off-by: Thane Thomson <[email protected]>

* ci: Add step descriptions for pre-release and release workflows to explain what they do

Signed-off-by: Thane Thomson <[email protected]>

---------

Signed-off-by: Thane Thomson <[email protected]>
  • Loading branch information
thanethomson authored Feb 10, 2023
1 parent 1fee127 commit 38abebd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[mempool/v1]` Suppress "rejected bad transaction" in priority mempool logs by
reducing log level from info to debug
([\#314](https://github.com/cometbft/cometbft/pull/314): @JayT106)
19 changes: 6 additions & 13 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,17 @@ jobs:
with:
go-version: '1.18'

- name: Build
uses: goreleaser/goreleaser-action@v4
if: ${{ github.event_name == 'pull_request' }}
with:
version: latest
args: build --skip-validate # skip validate skips initial sanity checks in order to be able to fully run

# Link to CHANGELOG.md as release notes (ensure that changelog is built
# with unreleased entries prior to cutting a pre-release)
- run: |
echo ":book: [CHANGELOG](https://github.com/cometbft/cometbft/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md)" > ../release_notes.md
- name: Generate release notes
run: |
VERSION="${GITHUB_REF#refs/tags/}"
CHANGELOG_URL="https://github.com/cometbft/cometbft/blob/${VERSION}/CHANGELOG.md"
echo "See the [CHANGELOG](${CHANGELOG_URL}) for changes available in this pre-release, but not yet officially released." > ../release_notes.md
- name: Release
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist --release-notes=../release_notes.md
args: release --clean --release-notes ../release_notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,18 @@ jobs:
with:
go-version: '1.18'

- name: Build
uses: goreleaser/goreleaser-action@v4
if: ${{ github.event_name == 'pull_request' }}
with:
version: latest
args: build --skip-validate # skip validate skips initial sanity checks in order to be able to fully run

- run: echo https://github.com/cometbft/cometbft/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md
- name: Generate release notes
run: |
VERSION="${GITHUB_REF#refs/tags/}"
VERSION_REF="${VERSION//[\.]/}"
CHANGELOG_URL="https://github.com/cometbft/cometbft/blob/${VERSION}/CHANGELOG.md#${VERSION_REF}"
echo "See the [CHANGELOG](${CHANGELOG_URL}) for this release." > ../release_notes.md
- name: Release
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist --release-notes=../release_notes.md
args: release --clean --release-notes ../release_notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ checksum:

release:
prerelease: auto
name_template: "{{.Version}}"
name_template: "v{{.Version}}"

archives:
- files:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
([\#136](https://github.com/cometbft/cometbft/issues/136))
- Append the commit hash to the version of CometBFT being built
([\#204](https://github.com/cometbft/cometbft/pull/204))
- `[mempool/v1]` Suppress "rejected bad transaction" in priority mempool logs by
reducing log level from info to debug
([\#314](https://github.com/cometbft/cometbft/pull/314): @JayT106)
- `[consensus]` Add `consensus_block_gossip_parts_received` and
`consensus_step_duration_seconds` metrics in order to aid in investigating the
impact of database compaction on consensus performance
Expand Down
10 changes: 4 additions & 6 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package version
const (
// TMCoreSemVer is the used as the fallback version of CometBFT Core
// when not using git describe. It is formatted with semantic versioning.
TMCoreSemVer = "0.34.27"
TMCoreSemVer = "0.34.27-alpha.1"
// ABCISemVer is the semantic version of the ABCI library
ABCISemVer = "0.17.0"

Expand All @@ -20,8 +20,6 @@ var (
BlockProtocol uint64 = 11
)

var (
// TMGitCommitHash uses git rev-parse HEAD to find commit hash which is helpful
// for the engineering team when working with the cometbft binary. See Makefile
TMGitCommitHash = ""
)
// TMGitCommitHash uses git rev-parse HEAD to find commit hash which is helpful
// for the engineering team when working with the cometbft binary. See Makefile
var TMGitCommitHash = ""

0 comments on commit 38abebd

Please sign in to comment.