Skip to content

Commit

Permalink
Merge pull request #654 from ava-labs/bump-avago-1.10.10
Browse files Browse the repository at this point in the history
Bump avago 1.10.10
  • Loading branch information
felipemadero authored Sep 20, 2023
2 parents 8512fc7 + b8e4145 commit 5a27b54
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '~1.20.8'
check-latest: true
- name: Run static analysis tests
shell: bash
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '~1.20.8'
- run: go test -v -timeout 10m -race ./...
env:
CGO_CFLAGS: "-O -D__BLST_PORTABLE__" # Set the CGO flags to use the portable version of BLST
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '~1.20.8'
- name: Run e2e tests
shell: bash
run: scripts/tests.e2e.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '~1.20.8'
- name: Set up arm64 cross compiler
run: |
sudo apt-get -y update
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ bin/

# Ignore Markdown linting configuration for VSCode
.markdownlint.json

build/
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ linters-settings:
- name: useless-break
disabled: false
staticcheck:
go: "1.19"
go: '~1.20.8'
# https://staticcheck.io/docs/options#checks
checks:
- "all"
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/ava-labs/avalanche-network-runner

go 1.19
go 1.20

require (
github.com/ava-labs/avalanchego v1.10.9
github.com/ava-labs/coreth v0.12.5-rc.3
github.com/ava-labs/avalanchego v1.10.10
github.com/ava-labs/coreth v0.12.5-rc.6
github.com/ethereum/go-ethereum v1.12.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
github.com/onsi/ginkgo/v2 v2.8.1
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/ava-labs/avalanchego v1.10.9 h1:qxhp3YoD2Wm/iIKP6Wb1isbkUPWmIrJxWgivDoL0obM=
github.com/ava-labs/avalanchego v1.10.9/go.mod h1:C8R5uiltpc8MQ62ixxgODR+15mesWF0aAw3H+Qrl9Iw=
github.com/ava-labs/coreth v0.12.5-rc.3 h1:cpmC+fSZMsO4gaFWqXHzAHrJACf05u5HPAYmwh7nmkU=
github.com/ava-labs/coreth v0.12.5-rc.3/go.mod h1:HI+jTIflnDFBd0bledgkgid1Uurwr8q1h7zb3LsFsSo=
github.com/ava-labs/avalanchego v1.10.10 h1:EYX4LVotcfdtIQ0nJSBTcoisubx/Bzk2tM1aP3yiYiw=
github.com/ava-labs/avalanchego v1.10.10/go.mod h1:6UA0nxxTvvpyuCbP2DSzx9+7uWQfQx9DPApK8JptLiE=
github.com/ava-labs/coreth v0.12.5-rc.6 h1:OajGUyKkO5Q82XSuMa8T5UD6QywtCHUiZ4Tv3RFmRBU=
github.com/ava-labs/coreth v0.12.5-rc.6/go.mod h1:s5wVyy+5UCCk2m0Tq3jVmy0UqOpKBDYqRE13gInCJVs=
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
Expand Down
6 changes: 3 additions & 3 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ fi
TESTS=${TESTS:-"golangci_lint"}

function test_golangci_lint {
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
golangci-lint run --config .golangci.yml
}

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

function run {
local test="${1}"
shift 1
echo "START: '${test}' at $(date)"
if "test_${test}" "$@" ; then
if "test_${test}" "$@"; then
echo "SUCCESS: '${test}' completed at $(date)"
else
echo "FAIL: '${test}' failed at $(date)"
Expand Down
4 changes: 2 additions & 2 deletions scripts/tests.e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ fi

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

DEFAULT_VERSION_1=v1.10.9
DEFAULT_VERSION_1=v1.10.10
DEFAULT_VERSION_2=v1.10.9
DEFAULT_SUBNET_EVM_VERSION=4f24c8de30749bca33aa56533a2c32cafc1cfccc
DEFAULT_SUBNET_EVM_VERSION=v0.5.5

if [ $# == 0 ]; then
VERSION_1=$DEFAULT_VERSION_1
Expand Down
6 changes: 3 additions & 3 deletions server/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const (
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- targets:
- localhost:9090
- job_name: avalanchego-machine
static_configs:
- targets:
- targets:
- localhost:9100
labels:
alias: machine
Expand Down Expand Up @@ -608,7 +608,7 @@ func (lc *localNetwork) updateSubnetInfo(ctx context.Context) error {

isElastic := false
elasticSubnetID := ids.Empty
if _, err := node.GetAPIClient().PChainAPI().GetCurrentSupply(ctx, subnetID); err == nil {
if _, _, err := node.GetAPIClient().PChainAPI().GetCurrentSupply(ctx, subnetID); err == nil {
isElastic = true
elasticSubnetID, err = lc.nw.GetElasticSubnetID(ctx, subnetID)
if err != nil {
Expand Down

0 comments on commit 5a27b54

Please sign in to comment.