Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .github/workflows/coreth-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go-for-project
- run: go install golang.org/x/tools/cmd/bisect@latest
- run: ./scripts/run_task.sh build-test
- run: ./scripts/run_task.sh coverage

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/subnet-evm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go-for-project
- run: go install golang.org/x/tools/cmd/bisect@latest
- run: ./scripts/run_task.sh build-test
- run: ./scripts/run_task.sh coverage

Expand Down
5 changes: 0 additions & 5 deletions graft/coreth/core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,11 +736,6 @@ func TestCanonicalHashMarker(t *testing.T) {
}

func testCanonicalHashMarker(t *testing.T, scheme string) {
// TODO: https://github.com/ava-labs/firewood/issues/1679
if scheme == customrawdb.FirewoodScheme {
t.Skip("firewood currently fails due to a stack corruption issue")
}

var cases = []struct {
forkA int
forkB int
Expand Down
2 changes: 1 addition & 1 deletion graft/coreth/core/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestMain(m *testing.M) {
params.RegisterExtras()

// May of these tests are likely to fail due to `log.Crit` in goroutines.
log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelCrit, true)))
log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelError, true)))

opts := []goleak.Option{
// No good way to shut down these goroutines:
Expand Down
2 changes: 1 addition & 1 deletion graft/coreth/scripts/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ fi

cd "$REPO_ROOT/graft/coreth"
# shellcheck disable=SC2046
go test -shuffle=on ${race:-} -timeout="${TIMEOUT:-900s}" -coverprofile=coverage.out -covermode=atomic "$@" $(go list .//... | grep -v github.com/ava-labs/avalanchego/graft/coreth/tests)
go test -shuffle=on ${race:-} -timeout="${TIMEOUT:-900s}" -coverprofile=coverage.out -covermode=atomic "$@" github.com/ava-labs/avalanchego/graft/coreth/core
2 changes: 2 additions & 0 deletions graft/evm/firewood/triedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"sync"
"time"

Expand Down Expand Up @@ -268,6 +269,7 @@ func (t *TrieDB) Close() error {
t.possible = nil

// We must provide a context to close since it may hang while waiting for the finalizers to complete.
runtime.GC()
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
return t.Firewood.Close(ctx)
Expand Down
4 changes: 0 additions & 4 deletions graft/subnet-evm/core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,6 @@ func TestCanonicalHashMarker(t *testing.T) {

func testCanonicalHashMarker(t *testing.T, scheme string) {
// TODO: https://github.com/ava-labs/firewood/issues/1679
if scheme == customrawdb.FirewoodScheme {
t.Skip("firewood currently fails due to a stack corruption issue")
}

cases := []struct {
forkA int
forkB int
Expand Down
2 changes: 1 addition & 1 deletion graft/subnet-evm/core/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestMain(m *testing.M) {
params.RegisterExtras()

// May of these tests are likely to fail due to `log.Crit` in goroutines.
log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelCrit, true)))
log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelError, true)))

opts := []goleak.Option{
// No good way to shut down these goroutines:
Expand Down
2 changes: 1 addition & 1 deletion graft/subnet-evm/scripts/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ fi

cd "$REPO_ROOT/graft/subnet-evm"
# shellcheck disable=SC2046
go test -shuffle=on ${race:-} -timeout="${TIMEOUT:-900s}" -coverprofile=coverage.out -covermode=atomic "$@" $(go list .//... | grep -v github.com/ava-labs/avalanchego/graft/subnet-evm/tests)
go test -shuffle=on ${race:-} -timeout="${TIMEOUT:-900s}" -coverprofile=coverage.out -covermode=atomic "$@" github.com/ava-labs/avalanchego/graft/subnet-evm/core