Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update avalanchego v1.11.10 prerelease #607

Merged
merged 10 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ run:
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# Include non-test files tagged as test-only.
# Context: https://github.com/ava-labs/avalanchego/pull/3173
build-tags:
- test

linters:
disable-all: true
Expand Down
2 changes: 2 additions & 0 deletions core/state/test_statedb.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package state

import (
Expand Down
2 changes: 2 additions & 0 deletions core/test_blockchain.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2020-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package core

import (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.12

require (
github.com/VictoriaMetrics/fastcache v1.12.1
github.com/ava-labs/avalanchego v1.11.10-status-removal
github.com/ava-labs/avalanchego v1.11.10-prerelease
github.com/cespare/cp v0.1.0
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233
github.com/davecgh/go-spew v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/ava-labs/avalanchego v1.11.10-status-removal h1:XHF4iFteHTJo+7SnB9bxIwPmMmDf7gqS5wUS/uuZsxc=
github.com/ava-labs/avalanchego v1.11.10-status-removal/go.mod h1:NlSe4PE40EWD9rBLoNQrEvhABjcOyrV5McUpD3Q6h3Y=
github.com/ava-labs/avalanchego v1.11.10-prerelease h1:QUhVqvxrwDmsTvXXnKoePe5WU3Eh8GXB/QE2R2xHa0c=
github.com/ava-labs/avalanchego v1.11.10-prerelease/go.mod h1:ryRFbHr7sKmez4792NxzJS7AGiE+vd0Tez+qs2kmezE=
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
Expand Down
2 changes: 2 additions & 0 deletions internal/blocktest/test_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
// standalone go program. It provides an API that mirrors the standard library
// testing API.

//go:build test

package blocktest

import (
Expand Down
2 changes: 2 additions & 0 deletions plugin/evm/test_tx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2020-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package evm

import (
Expand Down
2 changes: 2 additions & 0 deletions precompile/testutils/test_config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package testutils

import (
Expand Down
2 changes: 2 additions & 0 deletions precompile/testutils/test_precompile.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package testutils

import (
Expand Down
2 changes: 2 additions & 0 deletions precompile/testutils/test_predicate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package testutils

import (
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ source "$CORETH_PATH"/scripts/constants.sh

# We pass in the arguments to this script directly to enable easily passing parameters such as enabling race detection,
# parallelism, and test coverage.
go test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic ./... "$@"
go test -tags test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic ./... "$@"
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
set -euo pipefail

# Don't export them as they're used in the context of other calls
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.10-status-removal'}
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.10-prerelease'}
2 changes: 2 additions & 0 deletions sync/handlers/test_providers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2021-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package handlers

import (
Expand Down
2 changes: 2 additions & 0 deletions sync/statesync/test_sync.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2021-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package statesync

import (
Expand Down
2 changes: 2 additions & 0 deletions sync/syncutils/test_trie.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2021-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package syncutils

import (
Expand Down
2 changes: 2 additions & 0 deletions tests/rlp_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build test

package tests

import (
Expand Down
2 changes: 2 additions & 0 deletions tests/state_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build test

package tests

import (
Expand Down
2 changes: 2 additions & 0 deletions warp/warptest/block_client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2024, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

// warptest exposes common functionality for testing the warp package.
package warptest

Expand Down
Loading