Skip to content

Commit

Permalink
Update avalanchego v1.11.10 prerelease (#607)
Browse files Browse the repository at this point in the history
* update avago 668b452

* update avago

* update with test build tags

* update golangci

* update avalanchego

---------

Signed-off-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
  • Loading branch information
StephenButtolph and ceyonur committed Jul 26, 2024
1 parent 1bf5be1 commit dc00bd6
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 4 deletions.
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
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 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 @@ -21,4 +21,4 @@ source "$SUBNET_EVM_PATH"/scripts/constants.sh
# parallelism, and test coverage.
# DO NOT RUN tests from the top level "tests" directory since they are run by ginkgo
# shellcheck disable=SC2046
go test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic "$@" $(go list ./... | grep -v github.com/ava-labs/subnet-evm/tests)
go test -tags test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic "$@" $(go list ./... | grep -v github.com/ava-labs/subnet-evm/tests)
4 changes: 2 additions & 2 deletions scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# shellcheck disable=SC2034

# Don't export them as they're used in the context of other calls
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.10-rc.0'}
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.10'}
GINKGO_VERSION=${GINKGO_VERSION:-'v2.2.0'}

# This won't be used, but it's here to make code syncs easier
LATEST_CORETH_VERSION='651abab1adbc9bcada563a15eb265e61c7744258'
LATEST_CORETH_VERSION='v0.13.7'
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

0 comments on commit dc00bd6

Please sign in to comment.