Open youngqqcn opened 3 years ago
The official repo didn't resolve it, too. I am investigating now. It will take some days.
$ cd github.com/tendermint/tendermint
$ git branch
* (HEAD detached at v0.34.0-rc3)
master
$ make test
--> Running go test
ok github.com/tendermint/tendermint/abci/client (cached)
? github.com/tendermint/tendermint/abci/client/mocks [no test files]
? github.com/tendermint/tendermint/abci/cmd/abci-cli [no test files]
ok github.com/tendermint/tendermint/abci/example (cached)
? github.com/tendermint/tendermint/abci/example/code [no test files]
? github.com/tendermint/tendermint/abci/example/counter[no test files]
ok github.com/tendermint/tendermint/abci/example/kvstore(cached)
? github.com/tendermint/tendermint/abci/server [no test files]
ok github.com/tendermint/tendermint/abci/tests (cached)
? github.com/tendermint/tendermint/abci/tests/benchmarks[no test files]
? github.com/tendermint/tendermint/abci/tests/benchmarks/parallel [no test files]
? github.com/tendermint/tendermint/abci/tests/benchmarks/simple [no test files]
? github.com/tendermint/tendermint/abci/tests/server [no test files]
? github.com/tendermint/tendermint/abci/tests/test_app [no test files]
ok github.com/tendermint/tendermint/abci/types (cached)
? github.com/tendermint/tendermint/abci/version [no test files]
ok github.com/tendermint/tendermint/behaviour (cached)
ok github.com/tendermint/tendermint/blockchain (cached)
ok github.com/tendermint/tendermint/blockchain/v0 (cached)
ok github.com/tendermint/tendermint/blockchain/v1 (cached)
ok github.com/tendermint/tendermint/blockchain/v2 (cached)
? github.com/tendermint/tendermint/cmd/contract_tests [no test files]
? github.com/tendermint/tendermint/cmd/priv_val_server [no test files]
# github.com/tendermint/tendermint/p2p/upnp
p2p/upnp/upnp.go:212:20: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
? github.com/tendermint/tendermint/cmd/tendermint [no test files]
ok github.com/tendermint/tendermint/cmd/tendermint/commands (cached)
? github.com/tendermint/tendermint/cmd/tendermint/commands/debug [no test files]
ok github.com/tendermint/tendermint/config (cached)
--- FAIL: TestByzantinePrevoteEquivocation (0.53s)
byzantine_test.go:173:
Error Trace: byzantine_test.go:173
Error: Expected value not to be nil.
Test: TestByzantinePrevoteEquivocation
FAIL
FAIL github.com/tendermint/tendermint/consensus 24.980s
ok github.com/tendermint/tendermint/consensus/types (cached)
ok github.com/tendermint/tendermint/crypto (cached)
ok github.com/tendermint/tendermint/crypto/armor (cached)
ok github.com/tendermint/tendermint/crypto/ed25519 (cached)
? github.com/tendermint/tendermint/crypto/encoding [no test files]
? github.com/tendermint/tendermint/crypto/internal/benchmarking [no test files]
ok github.com/tendermint/tendermint/crypto/merkle (cached)
ok github.com/tendermint/tendermint/crypto/secp256k1 (cached)
? github.com/tendermint/tendermint/crypto/secp256k1/internal/secp256k1 [no test files]
ok github.com/tendermint/tendermint/crypto/sr25519 (cached)
ok github.com/tendermint/tendermint/crypto/tmhash (cached)
ok github.com/tendermint/tendermint/crypto/xchacha20poly1305 (cached)
ok github.com/tendermint/tendermint/crypto/xsalsa20symmetric (cached)
ok github.com/tendermint/tendermint/evidence (cached)
? github.com/tendermint/tendermint/evidence/mocks [no test files]
ok github.com/tendermint/tendermint/libs/async (cached)
--- FAIL: TestWrite (0.07s)
group_test.go:35:
Error Trace: group_test.go:35
group_test.go:194
Error: Received unexpected error:
unlinkat /media/gustav/Investigation/github.com/tendermint/tendermint/libs/autofile/_test_kpgivO8LZgxU: directory not empty
Test: TestWrite
Messages: Error removing test Group directory
--- FAIL: TestGroupReaderRead (0.12s)
group_test.go:35:
Error Trace: group_test.go:35
group_test.go:227
Error: Received unexpected error:
unlinkat /media/gustav/Investigation/github.com/tendermint/tendermint/libs/autofile/_test_8pctULF8uGSe: directory not empty
Test: TestGroupReaderRead
Messages: Error removing test Group directory
--- FAIL: TestGroupReaderRead2 (0.12s)
group_test.go:35:
Error Trace: group_test.go:35
group_test.go:264
Error: Received unexpected error:
unlinkat /media/gustav/Investigation/github.com/tendermint/tendermint/libs/autofile/_test_KvV38WmyqAhr: directory not empty
Test: TestGroupReaderRead2
Messages: Error removing test Group directory
FAIL
FAIL github.com/tendermint/tendermint/libs/autofile 2.640s
? github.com/tendermint/tendermint/libs/autofile/cmd [no test files]
ok github.com/tendermint/tendermint/libs/bits (cached)
ok github.com/tendermint/tendermint/libs/bytes (cached)
ok github.com/tendermint/tendermint/libs/cli (cached)
ok github.com/tendermint/tendermint/libs/cli/flags (cached)
ok github.com/tendermint/tendermint/libs/clist (cached)
# github.com/tendermint/tendermint/libs/cmap
libs/cmap/cmap_test.go:63:9: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
libs/cmap/cmap_test.go:67:9: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
FAIL github.com/tendermint/tendermint/libs/cmap [build failed]
ok github.com/tendermint/tendermint/libs/events (cached)
? github.com/tendermint/tendermint/libs/fail [no test files]
ok github.com/tendermint/tendermint/libs/flowrate (cached)
ok github.com/tendermint/tendermint/libs/json (cached)
ok github.com/tendermint/tendermint/libs/log (cached)
ok github.com/tendermint/tendermint/libs/math (cached)
ok github.com/tendermint/tendermint/libs/net (cached)
ok github.com/tendermint/tendermint/libs/os (cached)
ok github.com/tendermint/tendermint/libs/protoio (cached)
# github.com/tendermint/tendermint/libs/pubsub_test
libs/pubsub/pubsub_test.go:447:81: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
FAIL github.com/tendermint/tendermint/libs/pubsub [build failed]
ok github.com/tendermint/tendermint/libs/pubsub/query (cached)
? github.com/tendermint/tendermint/libs/pubsub/query/fuzz_test [no test files]
ok github.com/tendermint/tendermint/libs/rand (cached)
ok github.com/tendermint/tendermint/libs/service (cached)
ok github.com/tendermint/tendermint/libs/strings (cached)
? github.com/tendermint/tendermint/libs/sync [no test files]
ok github.com/tendermint/tendermint/libs/tempfile (cached)
? github.com/tendermint/tendermint/libs/test [no test files]
ok github.com/tendermint/tendermint/libs/timer (cached)
ok github.com/tendermint/tendermint/light (cached)
? github.com/tendermint/tendermint/light/provider [no test files]
ok github.com/tendermint/tendermint/light/provider/http (cached)
? github.com/tendermint/tendermint/light/provider/mock [no test files]
? github.com/tendermint/tendermint/light/proxy [no test files]
ok github.com/tendermint/tendermint/light/rpc (cached) [no tests to run]
? github.com/tendermint/tendermint/light/store [no test files]
ok github.com/tendermint/tendermint/light/store/db (cached)
ok github.com/tendermint/tendermint/mempool (cached)
? github.com/tendermint/tendermint/mempool/mock [no test files]
ok github.com/tendermint/tendermint/node (cached)
ok github.com/tendermint/tendermint/p2p (cached)
ok github.com/tendermint/tendermint/p2p/conn (cached)
? github.com/tendermint/tendermint/p2p/mock [no test files]
? github.com/tendermint/tendermint/p2p/mocks [no test files]
ok github.com/tendermint/tendermint/p2p/pex (cached)
ok github.com/tendermint/tendermint/p2p/trust (cached)
ok github.com/tendermint/tendermint/privval (cached)
ok github.com/tendermint/tendermint/proxy (cached)
ok github.com/tendermint/tendermint/rpc/client (cached)
ok github.com/tendermint/tendermint/rpc/client/mock (cached)
ok github.com/tendermint/tendermint/rpc/core (cached)
ok github.com/tendermint/tendermint/rpc/core/types (cached)
ok github.com/tendermint/tendermint/rpc/grpc (cached)
ok github.com/tendermint/tendermint/rpc/jsonrpc (cached)
ok github.com/tendermint/tendermint/rpc/jsonrpc/client (cached)
ok github.com/tendermint/tendermint/rpc/jsonrpc/server (cached)
ok github.com/tendermint/tendermint/rpc/jsonrpc/types (cached)
ok github.com/tendermint/tendermint/state (cached)
ok github.com/tendermint/tendermint/state/txindex (cached)
ok github.com/tendermint/tendermint/state/txindex/kv (cached)
ok github.com/tendermint/tendermint/statesync (cached)
ok github.com/tendermint/tendermint/store (cached)
ok github.com/tendermint/tendermint/tools/tm-signer-harness/internal (cached)
ok github.com/tendermint/tendermint/types (cached)
ok github.com/tendermint/tendermint/types/time (cached)
tests.mk:105: recipe for target 'test' failed
make: *** [test] Error 2
Running tool: /usr/local/go/bin/go test -timeout 30s -run ^(TestMain|TestWALCrash|TestSimulateValidatorsChange|TestHandshakeReplayAll|TestHandshakeReplaySome|TestHandshakeReplayOne|TestHandshakeReplayNone|TestMockProxyApp|TestHandshakePanicsIfAppReturnsWrongAppHash|TestHandshakeUpdatesValidators)$ github.com/tendermint/tendermint/consensus
--- FAIL: TestHandshakeReplayAll (0.25s)
panic: wrong Block.Header.LastBlockID. Expected BE22E30EB02F32FFDB7C373F73284C1456C483BCB6B3382F3EC81826037F746B:1:A26FEAF7EEC6, got BE22E30EB02F32FFDB7C373F73284C1456C483BCB6B3382F3EC81826037F746B:1:A5F91AD6D0D8 [recovered]
panic: wrong Block.Header.LastBlockID. Expected BE22E30EB02F32FFDB7C373F73284C1456C483BCB6B3382F3EC81826037F746B:1:A26FEAF7EEC6, got BE22E30EB02F32FFDB7C373F73284C1456C483BCB6B3382F3EC81826037F746B:1:A5F91AD6D0D8
goroutine 1993 [running]:
testing.tRunner.func1.2(0xbc9d60, 0xc000dd4380)
/usr/local/go/src/testing/testing.go:1143 +0x332
testing.tRunner.func1(0xc000582a80)
/usr/local/go/src/testing/testing.go:1146 +0x4b6
panic(0xbc9d60, 0xc000dd4380)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/tendermint/tendermint/consensus.applyBlock(0xee3ac0, 0xc00197f2a0, 0xa, 0x1, 0xcb66e6, 0x6, 0xcbe5da, 0xf, 0x1, 0x1, ...)
/data2/work/tendermint/consensus/replay_test.go:748 +0x397
github.com/tendermint/tendermint/consensus.buildTMStateFromChain(0xc0001c92c0, 0xee3ac0, 0xc00197f2a0, 0xa, 0x1, 0xcb66e6, 0x6, 0xcbe5da, 0xf, 0x1, ...)
/data2/work/tendermint/consensus/replay_test.go:830 +0x7df
github.com/tendermint/tendermint/consensus.testHandshakeReplay(0xc000582a80, 0xc0001c92c0, 0x0, 0x1, 0xc000f27701)
/data2/work/tendermint/consensus/replay_test.go:673 +0x628
github.com/tendermint/tendermint/consensus.TestHandshakeReplayAll(0xc000582a80)
/data2/work/tendermint/consensus/replay_test.go:529 +0xdd
testing.tRunner(0xc000582a80, 0xe187b0)
/usr/local/go/src/testing/testing.go:1193 +0xef
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1238 +0x2b3
FAIL github.com/tendermint/tendermint/consensus 1.935s
FAIL
reactor
switch chID {
case StateChannel:
switch msg := msg.(type) {
case *NewRoundStepMessage:
// conR.conS.mtx.Lock()
// initialHeight := conR.conS.state.InitialHeight
// conR.conS.mtx.Unlock()
// if err = msg.ValidateHeight(initialHeight); err != nil {
// conR.Logger.Error("Peer sent us invalid msg", "peer", src, "msg", msg, "err", err)
// conR.Switch.StopPeerForError(src, err)
// return
// }
ps.ApplyNewRoundStepMessage(msg)
case *NewValidBlockMessage:
ps.ApplyNewValidBlockMessage(msg)
case *HasVoteMessage:
ps.ApplyHasVoteMessage(msg)
--- FAIL: TestReactorBroadcastEvidence (120.02s)
reactor_test.go:112:
Error Trace: reactor_test.go:112
reactor_test.go:149
Error: Expected nil, but got: evidence.ErrInvalidEvidence{Reason:state.ErrNoValSetForHeight{Height:2}}
Test: TestReactorBroadcastEvidence
reactor_test.go:73: Timed out waiting for evidence
--- FAIL: TestReactorSelectiveBroadcast (120.01s)
reactor_test.go:112:
Error Trace: reactor_test.go:112
reactor_test.go:189
Error: Expected nil, but got: evidence.ErrInvalidEvidence{Reason:state.ErrNoValSetForHeight{Height:2}}
Test: TestReactorSelectiveBroadcast
reactor_test.go:73: Timed out waiting for evidence
FAIL
FAIL github.com/tendermint/tendermint/evidence 242.149s
commit: aa235ace06b90c8701abc0e5a33474eebebfbfde
make test
failed at files
consensus/replay_test.go
andevidence/reactor_test.go