Skip to content

Commit

Permalink
Merge pull request #819 from dashpay/release_1.0.0
Browse files Browse the repository at this point in the history
chore(release): update changelog and bump version to 1.0.0
  • Loading branch information
lklimek authored Jul 1, 2024
2 parents 3487c8b + 3b1c081 commit 40266dc
Show file tree
Hide file tree
Showing 361 changed files with 9,948 additions and 4,327 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# global owners are only requested if there isn't a more specific
# codeowner specified below. For this reason, the global codeowners
# are often repeated in package-level definitions.
* @quantumexplorer @lklimek @shotonoff
* @quantumexplorer @lklimek @shumkov
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.19"
go-version: "1.22"
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
5 changes: 2 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ updates:
directory: "/"
schedule:
interval: weekly
target-branch: "v0.35.x"
target-branch: "master"
open-pull-requests-limit: 10
reviewers:
- shotonoff
- shumkov
- lklimek
- iammadab
labels:
- dependencies
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@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"
- 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@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"
- 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@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
check-mocks:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"

- uses: actions/checkout@v4

- name: "Check generated mocks"
run: |
set -euo pipefail
readonly MOCKERY=2.33.2 # N.B. no leading "v"
readonly MOCKERY=2.41.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
Expand All @@ -47,9 +47,9 @@ jobs:
check-proto:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"

- uses: actions/checkout@v4
with:
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ on:
type: string
description: "Docker tag"
required: false

platforms:
type: choice
description: "Image architecture to build"
default: "linux/amd64,linux/arm64"
options:
- "linux/amd64,linux/arm64"
- "linux/amd64"
- "linux/arm64"
release:
types:
- published

jobs:
build:
runs-on: ubuntu-22.04
env:
PLATFORMS: ${{ github.event_name == 'release' && 'linux/amd64,linux/arm64' || github.event.inputs.platforms }}
steps:
- uses: actions/checkout@v4

Expand All @@ -25,11 +36,11 @@ jobs:
platforms: all

- name: Set up Docker Build
uses: docker/setup-buildx-action@v2.4.1
uses: docker/setup-buildx-action@v3.3.0

- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2.0.0
uses: docker/login-action@v3.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -55,7 +66,7 @@ jobs:
- name: Set Docker tags and labels
id: docker_meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: dashpay/tenderdash
tags: |
Expand All @@ -75,11 +86,11 @@ 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@v4.0.0
uses: docker/build-push-action@v6.0.0
with:
context: .
file: ./DOCKER/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.PLATFORMS }}
target: base
push: false
cache-from: |
Expand All @@ -91,11 +102,11 @@ jobs:
- name: Publish to Docker Hub
id: docker_build
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6.0.0
with:
context: .
file: ./DOCKER/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
git config --global --add safe.directory "$PWD"
make build-docs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: build-output
path: ~/output/
Expand All @@ -50,7 +50,7 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-output
path: ~/output
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
fail-fast: true
matrix:
testnet: ["dashcore", "rotate"]
timeout-minutes: 25
timeout-minutes: 30
env:
FULLNODE_PUBKEY_KEEP: false
CGO_LDFLAGS: "-L/usr/local/lib -ldashbls -lrelic_s -lmimalloc-secure -lgmp"
CGO_CXXFLAGS: "-I/usr/local/include"
steps:
- uses: actions/setup-go@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.4.1
uses: docker/setup-buildx-action@v3.3.0

- uses: actions/checkout@v4
with:
Expand All @@ -54,7 +54,7 @@ jobs:
if: "github.event_name != 'pull_request' || env.GIT_DIFF != ''"

- name: Build E2E Docker image
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6.0.0
with:
context: .
file: test/e2e/docker/Dockerfile
Expand All @@ -76,7 +76,7 @@ jobs:
if: ${{ failure() }}

- name: Upload ${{ matrix.testnet }} logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.testnet }}.log
path: test/e2e/${{ matrix.testnet }}.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/janitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.10.0
- uses: styfle/cancel-workflow-action@0.12.1
with:
workflow_id: 1041851,1401230,2837803
access_token: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/jepsen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: docker exec -i jepsen-control bash -c 'source /root/.bashrc; cd /jepsen/tendermint; lein run test --nemesis ${{ github.event.inputs.nemesis }} --workload ${{ github.event.inputs.workload }} --concurrency ${{ github.event.inputs.concurrency }} --tendermint-url ${{ github.event.inputs.tendermintUrl }} --merkleeyes-url ${{ github.event.inputs.merkleeyesUrl }} --time-limit ${{ github.event.inputs.timeLimit }} ${{ github.event.inputs.dupOrSuperByzValidators }}'

- name: Archive results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: results
path: tendermint/store/latest
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
pull_request:
paths:
- "**.go"
- ".golangci.yml"
- ".github/linters/*"
push:
branches:
- master
Expand All @@ -28,15 +30,16 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-go@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "^1.19"
go-version: "^1.22"
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/**.go
go.mod
go.sum
.golangci.yml
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
Expand All @@ -45,12 +48,12 @@ jobs:
name: Install BLS library
if: "env.GIT_DIFF != ''"

- uses: golangci/golangci-lint-action@v3.4.0
- uses: golangci/golangci-lint-action@v6.0.1
with:
# Required: the version of golangci-lint is required and
# must be specified without patch version: we always use the
# latest patch version.
version: v1.46
version: v1.55
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: env.GIT_DIFF
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.14.0
- uses: bufbuild/buf-setup-action@v1.33.0
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-go@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: '1.19'
go-version: "1.22"

- name: Build
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
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
args: build --skip-validate # skip validate skips initial sanity checks in order to be able to fully run

- run: echo https://github.com/tendermint/tendermint/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md

- name: Release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
- 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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
matrix:
part: ["00", "01", "02", "03", "04", "05"]
steps:
- uses: actions/setup-go@v3.5.0
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.19"
go-version: "1.22"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
Expand Down
18 changes: 13 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ linters:
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
# - depguard
- dogsled
- dupl
- errcheck
Expand All @@ -30,14 +29,11 @@ linters:
- nakedret
- nolintlint
- prealloc
- staticcheck
- structcheck
- stylecheck
# - typecheck
- unconvert
# - unparam
- unused
- varcheck
# - whitespace
# - wsl

Expand All @@ -53,7 +49,19 @@ linters-settings:
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:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: false
arguments:
- allowRegex: "^_"
Loading

0 comments on commit 40266dc

Please sign in to comment.