Skip to content

Commit a14f3a4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into parallelizable-test-txn
2 parents 7a5a883 + 3b3b5ce commit a14f3a4

File tree

1,368 files changed

+36334
-13277
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,368 files changed

+36334
-13277
lines changed

.aptly.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"rootDir": "/root/aptly",
32
"downloadConcurrency": 4,
43
"downloadSpeedLimit": 0,
54
"architectures": [],
@@ -27,4 +26,3 @@
2726
},
2827
"SwiftPublishEndpoints": {}
2928
}
30-

.circleci/config.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,18 @@ executors:
4545
machine:
4646
image: << pipeline.parameters.ubuntu_image >>
4747
resource_class: arm.large
48-
mac_amd64_medium:
48+
mac_arm64_medium:
4949
macos:
5050
xcode: 14.2.0
51-
resource_class: macos.x86.medium.gen2
51+
resource_class: macos.m1.medium.gen1
5252
environment:
5353
HOMEBREW_NO_AUTO_UPDATE: "true"
54-
mac_amd64_large:
54+
mac_arm64_large:
5555
macos:
5656
xcode: 14.2.0
57-
# Since they removed the large class for amd64, we will use medium here too.
58-
resource_class: macos.x86.medium.gen2
57+
resource_class: macos.m1.large.gen1
5958
environment:
6059
HOMEBREW_NO_AUTO_UPDATE: "true"
61-
mac_arm64: &executor-mac-arm64
62-
machine: true
63-
resource_class: algorand/macstadium-m1
64-
environment:
65-
HOMEBREW_NO_AUTO_UPDATE: "true"
66-
# these are required b/c jobs explicitly assign sizes to the executors
67-
# for `mac_arm64` there is only one size
68-
mac_arm64_medium:
69-
<<: *executor-mac-arm64
70-
mac_arm64_large:
71-
<<: *executor-mac-arm64
7260

7361
slack-fail-stop-step: &slack-fail-post-step
7462
post-steps:
@@ -86,7 +74,7 @@ workflows:
8674
name: << matrix.platform >>_build_nightly
8775
matrix: &matrix-nightly
8876
parameters:
89-
platform: ["amd64", "arm64", "mac_amd64", "mac_arm64"]
77+
platform: ["amd64", "arm64", "mac_arm64"]
9078
filters: &filters-nightly
9179
branches:
9280
only:
@@ -137,7 +125,7 @@ workflows:
137125
name: << matrix.platform >>_<< matrix.job_type >>_verification
138126
matrix:
139127
parameters:
140-
platform: ["amd64", "arm64", "mac_amd64", "mac_arm64"]
128+
platform: ["amd64", "arm64", "mac_arm64"]
141129
job_type: ["test_nightly", "integration_nightly", "e2e_expect_nightly"]
142130
requires:
143131
- << matrix.platform >>_<< matrix.job_type >>
@@ -303,7 +291,7 @@ jobs:
303291
parameters:
304292
platform:
305293
type: string
306-
executor: << parameters.platform >>_medium
294+
executor: << parameters.platform >>_large
307295
working_directory: << pipeline.parameters.build_dir >>/project
308296
parallelism: 10
309297
environment:
@@ -319,7 +307,7 @@ jobs:
319307
parameters:
320308
platform:
321309
type: string
322-
executor: << parameters.platform >>_medium
310+
executor: << parameters.platform >>_large
323311
working_directory: << pipeline.parameters.build_dir >>/project
324312
parallelism: 2
325313
environment:
@@ -727,12 +715,13 @@ commands:
727715
command: |
728716
if [ "${CIRCLE_BRANCH}" = "rel/nightly" ]
729717
then
730-
export NO_BUILD="true"
718+
export NIGHTLY_BUILD="true"
731719
fi
732720
export PATH=$(echo "$PATH" | sed -e "s|:${HOME}/\.go_workspace/bin||g" | sed -e 's|:/usr/local/go/bin||g')
733721
export GOPATH="<< parameters.build_dir >>/go"
734722
export TRAVIS_BRANCH=${CIRCLE_BRANCH}
735723
scripts/travis/deploy_packages.sh
724+
no_output_timeout: 20m
736725
- when:
737726
condition:
738727
equal: [ "amd64", << parameters.platform >> ]

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Performance regression check
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3.5.3
20+
- uses: actions/checkout@v4
2121
- uses: actions/[email protected]
2222
with:
2323
go-version-file: 'go.mod'

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
update: true
1818
path-type: inherit
1919
- name: Check out code
20-
uses: actions/checkout@v3.5.3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
- name: Determine Go version

.github/workflows/codegen_verification.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@ on:
77
jobs:
88
codegen_verification:
99
runs-on: ubuntu-20.04
10+
services:
11+
converter:
12+
image: swaggerapi/swagger-converter@sha256:dcfd1c2537f5f271cb4ec942d08aa59ca41b9a24078040061a772afca7e548ae # v1.0.4
13+
ports:
14+
- 8080:8080
1015
steps:
1116
- name: Check out code
12-
uses: actions/checkout@v3.5.3
17+
uses: actions/checkout@v4
1318
with:
1419
fetch-depth: 0
1520
path: go-algorand
1621
- name: Uninstall existing go installation
1722
run: sudo apt-get -y -q purge golang-go
1823
- name: Run codegen_verification.sh
24+
env:
25+
SWAGGER_CONVERTER_API: "http://localhost:8080"
1926
run: |
2027
export GOPATH="${GITHUB_WORKSPACE}/go"
2128
cd go-algorand

.github/workflows/container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout Code
16-
uses: actions/checkout@v3.5.3
16+
uses: actions/checkout@v4
1717

1818
- name: Generate Container Metadata
1919
id: meta
@@ -59,7 +59,7 @@ jobs:
5959
# if: github.ref == format('refs/heads/{0}', 'master')
6060
# steps:
6161
# - name: Checkout Code
62-
# uses: actions/checkout@v3.5.3
62+
# uses: actions/checkout@v4
6363

6464
# - name: Update DockerHub Repository Description
6565
# uses: peter-evans/dockerhub-description@v3

.github/workflows/reviewdog.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code into the Go module directory
13-
uses: actions/checkout@v3.5.3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0 # required for new-from-rev option in .golangci.yml
1616
# move go out of the way temporarily to avoid "go list ./..." from installing modules
1717
- name: Make libsodium.a
1818
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
1919
- name: reviewdog-golangci-lint
20-
uses: reviewdog/action-golangci-lint@v2.3.1
20+
uses: reviewdog/action-golangci-lint@v2.6.1
2121
with:
2222
go_version_file: go.mod
23-
golangci_lint_version: "v1.53.2"
23+
golangci_lint_version: "v1.58.0"
2424
golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners"
2525
reporter: "github-pr-check"
2626
tool_name: "Lint Errors"
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Check out code into the Go module directory
35-
uses: actions/checkout@v3.5.3
35+
uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 0 # required for new-from-rev option in .golangci.yml
3838
# move go out of the way temporarily to avoid "go list ./..." from installing modules
@@ -63,13 +63,13 @@ jobs:
6363
run: |
6464
cd cicdtmp/golangci-lint
6565
git clone https://github.com/golangci/golangci-lint.git .
66-
git checkout tags/v1.53.2
66+
git checkout tags/v1.58.0
6767
CGO_ENABLED=true go build -trimpath -o golangci-lint-cgo ./cmd/golangci-lint
6868
./golangci-lint-cgo --version
6969
cd ../../
7070
- name: Install reviewdog
7171
run: |
72-
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.14.1/install.sh | sh -s
72+
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.18.1/install.sh | sh -s -- v0.18.1
7373
reviewdog --version
7474
- name: Build custom linters
7575
run: |
@@ -102,3 +102,16 @@ jobs:
102102
run: |
103103
curl -X POST --data-urlencode "payload={\"text\": \"Reviewdog failed. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}" $SLACK_WEBHOOK
104104
if: ${{ failure() && (contains(github.ref_name, 'rel/nightly') || contains(github.ref_name, 'rel/beta') || contains(github.ref_name, 'rel/stable') || contains(github.ref_name, 'master')) }}
105+
reviewdog-shellcheck:
106+
runs-on: ubuntu-latest
107+
steps:
108+
- uses: actions/checkout@v4
109+
- name: shellcheck
110+
uses: reviewdog/action-shellcheck@v1
111+
with:
112+
github_token: ${{ secrets.GITHUB_TOKEN }}
113+
reporter: "github-pr-check"
114+
shellcheck_flags: "-e SC2034,SC2046,SC2053,SC2207,SC2145 -S warning"
115+
fail_on_error: true
116+
path: |
117+
test/scripts/e2e_subs

.github/workflows/tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Check out code into the Go module directory
19-
uses: actions/checkout@v3.5.3
19+
uses: actions/checkout@v4
2020
# move go out of the way temporarily to avoid "go list ./..." from installing modules
2121
- name: Make libsodium.a
2222
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

.golangci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ linters-settings:
3636
- (*github.com/spf13/pflag.FlagSet).MarkDeprecated
3737
- (*github.com/spf13/pflag.FlagSet).MarkShorthandDeprecated
3838
govet:
39-
check-shadowing: true
39+
# Enables these linters in addition to the default ones.
40+
enable:
41+
- shadow
4042
settings:
4143
shadow:
4244
# explanation of strict vs non-strict:
@@ -131,6 +133,10 @@ issues:
131133
linters:
132134
- staticcheck
133135
text: "SA4006: this value" # of X is never used
136+
- path: _test\.go
137+
linters:
138+
- revive
139+
text: "dot-imports: should not use dot imports"
134140
- linters:
135141
- staticcheck
136142
text: "SA1019: rand*"

CODEOWNERS

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)