Skip to content

Commit 63d271c

Browse files
authored
Merge pull request #6226 from Algo-devops-service/relstable4.0.1
2 parents f54f099 + a92bb19 commit 63d271c

File tree

1,238 files changed

+15829
-3053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,238 files changed

+15829
-3053
lines changed

.github/workflows/reviewdog.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "ReviewDog workflow"
2+
env:
3+
GOLANGCI_LINT_VERSION: "v1.62.0"
24
on:
35
push:
46
branches:
@@ -17,15 +19,15 @@ jobs:
1719
- name: Make libsodium.a
1820
run: sudo mv /usr/bin/go /usr/bin/go.bak && make crypto/libs/linux/amd64/lib/libsodium.a && sudo mv /usr/bin/go.bak /usr/bin/go
1921
- name: reviewdog-golangci-lint
20-
uses: reviewdog/action-golangci-lint@v2.6.2
22+
uses: reviewdog/action-golangci-lint@v2.7.0
2123
with:
2224
go_version_file: go.mod
23-
golangci_lint_version: "v1.62.0"
25+
golangci_lint_version: ${{ env.GOLANGCI_LINT_VERSION }}
2426
golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners"
2527
reporter: "github-pr-check"
2628
tool_name: "Lint Errors"
2729
level: "error"
28-
fail_on_error: true
30+
fail_level: any
2931
filter_mode: "nofilter"
3032
# Non-Blocking Warnings Section
3133
reviewdog-warnings:
@@ -56,20 +58,20 @@ jobs:
5658
uses: actions/[email protected]
5759
with:
5860
path: cicdtmp/golangci-lint/golangci-lint-cgo
59-
key: cicd-golangci-lint-cgo-v0.0.2-${{ env.GO_VERSION }}
61+
key: cicd-golangci-lint-cgo-v0.0.3-${{ env.GO_VERSION }}-${{ env.GOLANGCI_LINT_VERSION }}
6062

6163
- name: Build custom golangci-lint with CGO_ENABLED
6264
if: steps.cache-golangci-lint.outputs.cache-hit != 'true'
6365
run: |
6466
cd cicdtmp/golangci-lint
6567
git clone https://github.com/golangci/golangci-lint.git .
66-
git checkout tags/v1.62.0
68+
git checkout tags/${GOLANGCI_LINT_VERSION}
6769
CGO_ENABLED=true go build -trimpath -o golangci-lint-cgo ./cmd/golangci-lint
6870
./golangci-lint-cgo --version
6971
cd ../../
7072
- name: Install reviewdog
7173
run: |
72-
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.20.2/install.sh | sh -s -- v0.20.2
74+
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.20.3/install.sh | sh -s -- v0.20.3
7375
reviewdog --version
7476
- name: Build custom linters
7577
run: |
@@ -92,9 +94,9 @@ jobs:
9294
cat temp_golangci-lint-cgo.txt | reviewdog \
9395
-f=golangci-lint \
9496
-name="Lint Warnings" \
95-
-reporter=github-check \
97+
-reporter=github-pr-check \
9698
-filter-mode=added \
97-
-fail-on-error=true \
99+
-fail-level=any \
98100
-level=warning
99101
- name: Slack Notification
100102
env:
@@ -107,11 +109,11 @@ jobs:
107109
steps:
108110
- uses: actions/checkout@v4
109111
- name: shellcheck
110-
uses: reviewdog/action-shellcheck@v1
112+
uses: reviewdog/action-shellcheck@v1.28.0
111113
with:
112114
github_token: ${{ secrets.GITHUB_TOKEN }}
113115
reporter: "github-pr-check"
114116
shellcheck_flags: "-e SC2034,SC2046,SC2053,SC2207,SC2145 -S warning"
115-
fail_on_error: true
117+
fail_level: any
116118
path: |
117119
test/scripts/e2e_subs

.golangci-warnings.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ linters:
99
- partitiontest
1010

1111
linters-settings:
12-
gosec: # we are mostly only interested in G601
13-
excludes: [G101, G103, G104, G107, G202, G301, G302, G303, G304, G306, G307, G404]
12+
gosec: # Go 1.22 makes G601 irrelevant
13+
excludes: [G101, G103, G104, G107, G115, G202, G301, G302, G303, G304, G306, G307, G404, G601]
1414
custom:
1515
partitiontest:
1616
path: cmd/partitiontest_linter/plugin.so

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ $(GOPATH1)/bin/%:
293293
test: build
294294
$(GOTESTCOMMAND) $(GOTAGS) -race $(UNIT_TEST_SOURCES) -timeout 1h -coverprofile=coverage.txt -covermode=atomic
295295

296+
testc:
297+
echo $(UNIT_TEST_SOURCES) | xargs -P8 -n1 go test -c
298+
296299
benchcheck: build
297300
$(GOTESTCOMMAND) $(GOTAGS) -race $(UNIT_TEST_SOURCES) -run ^NOTHING -bench Benchmark -benchtime 1x -timeout 1h
298301

README.md

+1-1

agreement/abstractions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/actions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/actor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/agreeInstall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/agreementtest/keyManager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/agreementtest/simulate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/agreementtest/simulate_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify
@@ -19,6 +19,7 @@ package agreementtest
1919
import (
2020
"context"
2121
"fmt"
22+
"maps"
2223
"math/rand"
2324
"os"
2425
"strconv"
@@ -27,7 +28,6 @@ import (
2728

2829
"github.com/algorand/go-deadlock"
2930
"github.com/stretchr/testify/require"
30-
"golang.org/x/exp/maps"
3131

3232
"github.com/algorand/go-algorand/agreement"
3333
"github.com/algorand/go-algorand/config"

agreement/asyncVoteVerifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/asyncVoteVerifier_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/autopsy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify
@@ -20,11 +20,11 @@ import (
2020
"fmt"
2121
"io"
2222
"os"
23+
"slices"
2324

2425
"github.com/algorand/go-algorand/data/basics"
2526
"github.com/algorand/go-algorand/logging"
2627
"github.com/algorand/go-algorand/protocol"
27-
"golang.org/x/exp/slices"
2828
)
2929

3030
// An Autopsy is a trace of the ordered input events and output

agreement/bundle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/bundle_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/cadaver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/certificate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/certificate_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/common_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify
@@ -19,12 +19,12 @@ package agreement
1919
import (
2020
"context"
2121
"fmt"
22+
"maps"
2223
"math/rand"
2324
"testing"
2425

2526
"github.com/algorand/go-deadlock"
2627
"github.com/stretchr/testify/require"
27-
"golang.org/x/exp/maps"
2828

2929
"github.com/algorand/go-algorand/config"
3030
"github.com/algorand/go-algorand/crypto"

agreement/coservice.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/credentialArrivalHistory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/credentialArrivalHistory_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/cryptoRequestContext.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/cryptoRequestContext_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/cryptoVerifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/cryptoVerifier_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/demux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/demux_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/dynamicFilterTimeoutParams.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/dynamicFilterTimeoutParams_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/encoding_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/events.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/events_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/bandwidthFilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/catchupFilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/clockedFilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/dropMessageFilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/duplicateMessageFilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/filter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/fuzzer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/fuzzer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/ledger_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

agreement/fuzzer/messageDecoderFilter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2024 Algorand, Inc.
1+
// Copyright (C) 2019-2025 Algorand, Inc.
22
// This file is part of go-algorand
33
//
44
// go-algorand is free software: you can redistribute it and/or modify

0 commit comments

Comments
 (0)