Skip to content

Commit 5a27b54

Browse files
authored
Merge pull request #654 from ava-labs/bump-avago-1.10.10
Bump avago 1.10.10
2 parents 8512fc7 + b8e4145 commit 5a27b54

File tree

9 files changed

+22
-20
lines changed

9 files changed

+22
-20
lines changed

.github/workflows/build-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v3
1919
with:
20-
go-version: '1.19'
20+
go-version: '~1.20.8'
2121
check-latest: true
2222
- name: Run static analysis tests
2323
shell: bash
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- uses: actions/setup-go@v3
3131
with:
32-
go-version: '1.19'
32+
go-version: '~1.20.8'
3333
- run: go test -v -timeout 10m -race ./...
3434
env:
3535
CGO_CFLAGS: "-O -D__BLST_PORTABLE__" # Set the CGO flags to use the portable version of BLST
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Go
4848
uses: actions/setup-go@v3
4949
with:
50-
go-version: '1.19'
50+
go-version: '~1.20.8'
5151
- name: Run e2e tests
5252
shell: bash
5353
run: scripts/tests.e2e.sh

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v3
2222
with:
23-
go-version: '1.19'
23+
go-version: '~1.20.8'
2424
- name: Set up arm64 cross compiler
2525
run: |
2626
sudo apt-get -y update

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ bin/
2727

2828
# Ignore Markdown linting configuration for VSCode
2929
.markdownlint.json
30+
31+
build/

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ linters-settings:
9595
- name: useless-break
9696
disabled: false
9797
staticcheck:
98-
go: "1.19"
98+
go: '~1.20.8'
9999
# https://staticcheck.io/docs/options#checks
100100
checks:
101101
- "all"

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/ava-labs/avalanche-network-runner
22

3-
go 1.19
3+
go 1.20
44

55
require (
6-
github.com/ava-labs/avalanchego v1.10.9
7-
github.com/ava-labs/coreth v0.12.5-rc.3
6+
github.com/ava-labs/avalanchego v1.10.10
7+
github.com/ava-labs/coreth v0.12.5-rc.6
88
github.com/ethereum/go-ethereum v1.12.0
99
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
1010
github.com/onsi/ginkgo/v2 v2.8.1

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah
5959
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
6060
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
6161
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
62-
github.com/ava-labs/avalanchego v1.10.9 h1:qxhp3YoD2Wm/iIKP6Wb1isbkUPWmIrJxWgivDoL0obM=
63-
github.com/ava-labs/avalanchego v1.10.9/go.mod h1:C8R5uiltpc8MQ62ixxgODR+15mesWF0aAw3H+Qrl9Iw=
64-
github.com/ava-labs/coreth v0.12.5-rc.3 h1:cpmC+fSZMsO4gaFWqXHzAHrJACf05u5HPAYmwh7nmkU=
65-
github.com/ava-labs/coreth v0.12.5-rc.3/go.mod h1:HI+jTIflnDFBd0bledgkgid1Uurwr8q1h7zb3LsFsSo=
62+
github.com/ava-labs/avalanchego v1.10.10 h1:EYX4LVotcfdtIQ0nJSBTcoisubx/Bzk2tM1aP3yiYiw=
63+
github.com/ava-labs/avalanchego v1.10.10/go.mod h1:6UA0nxxTvvpyuCbP2DSzx9+7uWQfQx9DPApK8JptLiE=
64+
github.com/ava-labs/coreth v0.12.5-rc.6 h1:OajGUyKkO5Q82XSuMa8T5UD6QywtCHUiZ4Tv3RFmRBU=
65+
github.com/ava-labs/coreth v0.12.5-rc.6/go.mod h1:s5wVyy+5UCCk2m0Tq3jVmy0UqOpKBDYqRE13gInCJVs=
6666
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
6767
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
6868
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=

scripts/lint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ fi
2121
TESTS=${TESTS:-"golangci_lint"}
2222

2323
function test_golangci_lint {
24-
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
24+
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
2525
golangci-lint run --config .golangci.yml
2626
}
2727

2828
# find_go_files [package]
2929
# all go files except generated ones
3030
function find_go_files {
3131
local target="${1}"
32-
go fmt -n "${target}" | grep -Eo "([^ ]*)$" | grep -vE "(\\.pb\\.go|\\.pb\\.gw.go)"
32+
go fmt -n "${target}" | grep -Eo "([^ ]*)$" | grep -vE "(\\.pb\\.go|\\.pb\\.gw.go)"
3333
}
3434

3535
function run {
3636
local test="${1}"
3737
shift 1
3838
echo "START: '${test}' at $(date)"
39-
if "test_${test}" "$@" ; then
39+
if "test_${test}" "$@"; then
4040
echo "SUCCESS: '${test}' completed at $(date)"
4141
else
4242
echo "FAIL: '${test}' failed at $(date)"

scripts/tests.e2e.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ fi
1212

1313
ANR_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
1414

15-
DEFAULT_VERSION_1=v1.10.9
15+
DEFAULT_VERSION_1=v1.10.10
1616
DEFAULT_VERSION_2=v1.10.9
17-
DEFAULT_SUBNET_EVM_VERSION=4f24c8de30749bca33aa56533a2c32cafc1cfccc
17+
DEFAULT_SUBNET_EVM_VERSION=v0.5.5
1818

1919
if [ $# == 0 ]; then
2020
VERSION_1=$DEFAULT_VERSION_1

server/network.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const (
3434
scrape_configs:
3535
- job_name: prometheus
3636
static_configs:
37-
- targets:
37+
- targets:
3838
- localhost:9090
3939
- job_name: avalanchego-machine
4040
static_configs:
41-
- targets:
41+
- targets:
4242
- localhost:9100
4343
labels:
4444
alias: machine
@@ -608,7 +608,7 @@ func (lc *localNetwork) updateSubnetInfo(ctx context.Context) error {
608608

609609
isElastic := false
610610
elasticSubnetID := ids.Empty
611-
if _, err := node.GetAPIClient().PChainAPI().GetCurrentSupply(ctx, subnetID); err == nil {
611+
if _, _, err := node.GetAPIClient().PChainAPI().GetCurrentSupply(ctx, subnetID); err == nil {
612612
isElastic = true
613613
elasticSubnetID, err = lc.nw.GetElasticSubnetID(ctx, subnetID)
614614
if err != nil {

0 commit comments

Comments
 (0)