Skip to content

Commit

Permalink
Merge pull request #1004 from dashpay/release_1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek authored Dec 11, 2024
2 parents 2913d54 + 37273ed commit 896df0a
Show file tree
Hide file tree
Showing 166 changed files with 11,391 additions and 6,007 deletions.
2 changes: 1 addition & 1 deletion .github/actions/bls/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.23"
go-version: "1.23.2"
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updates:
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
open-pull-requests-limit: 5
# - package-ecosystem: npm
# directory: "/docs"
# schedule:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
goos: ["linux"]
timeout-minutes: 55
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down Expand Up @@ -52,9 +52,9 @@ jobs:
needs: build
timeout-minutes: 5
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand All @@ -77,9 +77,9 @@ jobs:
needs: build
timeout-minutes: 5
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
check-mocks:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"

- uses: actions/checkout@v4

- name: "Check generated mocks"
run: |
set -euo pipefail
readonly MOCKERY=2.46.2 # N.B. no leading "v"
readonly MOCKERY=2.50.0 # N.B. no leading "v"
curl -sL "https://github.com/vektra/mockery/releases/download/v${MOCKERY}/mockery_${MOCKERY}_Linux_x86_64.tar.gz" | tar -C /usr/local/bin -xzf -
make mockery 2>/dev/null
if ! git diff --stat --exit-code ; then
if ! git diff --exit-code ; then
echo ">> ERROR:"
echo ">>"
echo ">> Generated mocks require update (either Mockery or source files may have changed)."
Expand All @@ -47,9 +47,9 @@ jobs:
check-proto:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"

- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
# on Docker Hub, as Github caches are not available for other branches.
- name: Build and cache image with dependencies
id: docker_bls
uses: docker/build-push-action@v6.9.0
uses: docker/build-push-action@v6.10.0
with:
context: .
file: ./DOCKER/Dockerfile
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Publish to Docker Hub
id: docker_build
uses: docker/build-push-action@v6.9.0
uses: docker/build-push-action@v6.10.0
with:
context: .
file: ./DOCKER/Dockerfile
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- "**Dockerfile"
- "**.go"
- "go.sum"
push:
branches:
- master
Expand All @@ -26,9 +27,9 @@ jobs:
CGO_LDFLAGS: "-L/usr/local/lib -ldashbls -lrelic_s -lmimalloc-secure -lgmp"
CGO_CXXFLAGS: "-I/usr/local/include"
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
Expand All @@ -54,7 +55,7 @@ jobs:
if: "github.event_name != 'pull_request' || env.GIT_DIFF != ''"

- name: Build E2E Docker image
uses: docker/build-push-action@v6.9.0
uses: docker/build-push-action@v6.10.0
with:
context: .
file: test/e2e/docker/Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "^1.23"
go-version: "^1.23.2"
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proto-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.35.0
- uses: bufbuild/buf-setup-action@v1.47.2
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"

- name: Build
uses: goreleaser/goreleaser-action@v6
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ jobs:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions."
stale-pr-message:
"This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions."
days-before-stale: -1
days-before-close: -1
days-before-pr-stale: 10
days-before-pr-close: 4
days-before-pr-stale: 31
days-before-pr-close: 16
exempt-pr-labels: "S:wip"
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- "**.go"
- "go.sum"
push:
branches:
- master
Expand All @@ -16,9 +17,9 @@ jobs:
matrix:
part: ["00", "01", "02", "03", "04", "05"]
steps:
- uses: actions/setup-go@v5.0.1
- uses: actions/setup-go@v5.1.0
with:
go-version: "1.23"
go-version: "1.23.2"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down
6 changes: 0 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ linters:
- dogsled
- dupl
- errcheck
- exportloopref
# - funlen
# - gochecknoglobals
# - gochecknoinits
Expand All @@ -24,7 +23,6 @@ linters:
- ineffassign
# - interfacer
# - lll
# - maligned
- misspell
- nakedret
- nolintlint
Expand All @@ -47,14 +45,10 @@ issues:
linters-settings:
dogsled:
max-blank-identifiers: 3
golint:
min-confidence: 0
goconst:
min-len: 5
min-occurrences: 5
ignore-tests: true
maligned:
suggest-new: true
misspell:
locale: US
revive:
Expand Down
73 changes: 73 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
with-expecter: true
dir: "{{.InterfaceDir}}/mocks"
mockname: "{{.InterfaceName}}"
outpkg: "mocks"
filename: "{{.InterfaceName | lower}}.go"
log-level: "warn"
disable-version-string: true
resolve-type-alias: false
issue-845-fix: True
all: false
packages:
github.com/dashpay/tenderdash/abci/client:
interfaces:
Client:
github.com/dashpay/tenderdash/abci/types:
interfaces:
Application:
github.com/dashpay/tenderdash/dash/core:
interfaces:
Client:
github.com/dashpay/tenderdash/internal/consensus:
interfaces:
Gossiper:
github.com/dashpay/tenderdash/internal/consensus/versioned/selectproposer:
interfaces:
ProposerSelector:
github.com/dashpay/tenderdash/internal/evidence:
interfaces:
BlockStore:
github.com/dashpay/tenderdash/internal/mempool:
interfaces:
Mempool:
github.com/dashpay/tenderdash/internal/p2p:
interfaces:
Transport:
Connection:
Channel:
github.com/dashpay/tenderdash/internal/p2p/client:
interfaces:
Client:
BlockClient:
SnapshotClient:
github.com/dashpay/tenderdash/internal/state:
interfaces:
BlockStore:
EvidencePool:
Executor:
Store:
github.com/dashpay/tenderdash/internal/state/indexer:
interfaces:
EventSink:
github.com/dashpay/tenderdash/internal/statesync:
interfaces:
StateProvider:
github.com/dashpay/tenderdash/libs/store:
interfaces:
Store:
github.com/dashpay/tenderdash/light/provider:
interfaces:
Provider:
github.com/dashpay/tenderdash/light/rpc:
interfaces:
LightClient:
github.com/dashpay/tenderdash/rpc/client:
interfaces:
Client:
RemoteClient:
github.com/dashpay/tenderdash/types:
interfaces:
Store:
PrivValidator:
BlockEventPublisher:
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
## [1.4.0] - 2024-12-11

### Bug Fixes

- Validators endpoint fail during quorum rotation (#959)
- Node stalled after client has stopped (#1001)

### Miscellaneous Tasks

- [**breaking**] Docker log to stdout and minor logging tweaks (#951)
- Tune stale and dependabot settings (#967)

### Refactor

- [**breaking**] Remove support for cleveldb, boltdb, rocksdb, badgerdb (#974)

### Testing

- Update mockery configuration and regenerate mocks (#955)

### Build

- Bump actions/setup-go from 5.0.1 to 5.1.0 (#965)
- Bump github.com/creachadair/taskgroup from 0.3.2 to 0.12.0 (#961)
- Bump github.com/prometheus/common from 0.37.0 to 0.60.1 (#964)
- Bump github.com/oasisprotocol/oasis-core/go (#962)
- Replace tendermint/tm-db with cometbft/cometbft-db (#973)
- Bump golang.org/x/sync from 0.8.0 to 0.9.0 (#976)
- Bump github.com/creachadair/taskgroup from 0.12.0 to 0.13.2 (#986)
- Bump golang.org/x/crypto from 0.28.0 to 0.29.0 (#981)
- Bump bufbuild/buf-setup-action from 1.35.0 to 1.46.0 (#969)
- Bump golang.org/x/time from 0.6.0 to 0.8.0 (#980)
- Bump github.com/vektra/mockery/v2 from 2.46.3 to 2.49.1 (#988)
- Bump golang.org/x/net from 0.30.0 to 0.31.0 (#979)
- Bump github.com/golangci/golangci-lint from 1.61.0 to 1.62.2 (#985)
- Bump github.com/bufbuild/buf from 1.35.1 to 1.47.2 (#982)
- Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#977)
- Bump docker/build-push-action from 6.9.0 to 6.10.0 (#991)
- Bump github.com/oasisprotocol/oasis-core/go (#990)
- Bump bufbuild/buf-setup-action from 1.46.0 to 1.47.2 (#992)
- Bump github.com/creachadair/atomicfile from 0.2.6 to 0.3.6 (#989)
- Bump golang.org/x/term from 0.26.0 to 0.27.0 (#1000)
- Bump google.golang.org/grpc from 1.68.0 to 1.68.1 (#998)
- Bump golang.org/x/sync from 0.9.0 to 0.10.0 (#995)
- Bump golang.org/x/crypto from 0.29.0 to 0.30.0 (#996)
- Bump github.com/vektra/mockery/v2 from 2.49.1 to 2.50.0 (#999)
- Bump golang.org/x/net from 0.31.0 to 0.32.0 (#994)
- Bump github.com/prometheus/common from 0.60.1 to 0.61.0 (#997)

## [1.3.1] - 2024-11-02

### Bug Fixes
Expand All @@ -10,6 +59,10 @@
- Update readme (#934)
- Fix broken links (#940)

### Miscellaneous Tasks

- Update changelog and version to 1.3.1

### Testing

- Update tests for new proposal selection algo (#925)
Expand Down
2 changes: 1 addition & 1 deletion DOCKER/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# * image - creates final image of minimal size

ARG ALPINE_VERSION=3.19
ARG GOLANG_VERSION=1.23
ARG GOLANG_VERSION=1.23.2
#################################
# STAGE 1: install dependencies #
#################################
Expand Down
Loading

0 comments on commit 896df0a

Please sign in to comment.