Master branch tests are failing
System information
Go version: go version : 1.15.6
OS & Version: OSX
Branch, Commit Hash or Release:
commit 7b726385216c44e55fc6b6191a022fe598c102d4 (HEAD -> master, origin/master, origin/HEAD)
Merge: 42ba2c6ee b8ce1325b
Author: Nicolas Maurice <[email protected]>
Date: Thu Dec 3 15:25:57 2020 +0100
Merge pull request #1095 from amalrajmani/permission-eea-alignment
Expected behaviour
Tests should not be failing on master branch on the go version 1.15.6
Actual behaviour
build/env.sh go run build/ci.go install
>>> /usr/local/go/bin/go install -ldflags -X main.gitCommit=7b726385216c44e55fc6b6191a022fe598c102d4 -X main.gitDate=20201203 -s -v ./...
build/env.sh go run build/ci.go test
>>> /usr/local/go/bin/go test -ldflags -X main.gitCommit=7b726385216c44e55fc6b6191a022fe598c102d4 -X main.gitDate=20201203 -s -p 1 -timeout 5m --short github.com/ethereum/go-ethereum github.com/ethereum/go-ethereum/accounts github.com/ethereum/go-ethereum/accounts/abi github.com/ethereum/go-ethereum/accounts/abi/bind github.com/ethereum/go-ethereum/accounts/abi/bind/backends github.com/ethereum/go-ethereum/accounts/external github.com/ethereum/go-ethereum/accounts/keystore github.com/ethereum/go-ethereum/accounts/pluggable github.com/ethereum/go-ethereum/accounts/pluggable/internal/testutils github.com/ethereum/go-ethereum/accounts/pluggable/internal/testutils/mock_plugin github.com/ethereum/go-ethereum/accounts/scwallet github.com/ethereum/go-ethereum/accounts/usbwallet github.com/ethereum/go-ethereum/accounts/usbwallet/trezor github.com/ethereum/go-ethereum/cmd/abigen github.com/ethereum/go-ethereum/cmd/bootnode github.com/ethereum/go-ethereum/cmd/checkpoint-admin github.com/ethereum/go-ethereum/cmd/clef github.com/ethereum/go-ethereum/cmd/devp2p github.com/ethereum/go-ethereum/cmd/ethkey github.com/ethereum/go-ethereum/cmd/evm github.com/ethereum/go-ethereum/cmd/evm/internal/compiler github.com/ethereum/go-ethereum/cmd/faucet github.com/ethereum/go-ethereum/cmd/geth github.com/ethereum/go-ethereum/cmd/p2psim github.com/ethereum/go-ethereum/cmd/puppeth github.com/ethereum/go-ethereum/cmd/rlpdump github.com/ethereum/go-ethereum/cmd/utils github.com/ethereum/go-ethereum/cmd/wnode github.com/ethereum/go-ethereum/common github.com/ethereum/go-ethereum/common/bitutil github.com/ethereum/go-ethereum/common/compiler github.com/ethereum/go-ethereum/common/fdlimit github.com/ethereum/go-ethereum/common/hexutil github.com/ethereum/go-ethereum/common/math github.com/ethereum/go-ethereum/common/mclock github.com/ethereum/go-ethereum/common/prque github.com/ethereum/go-ethereum/consensus github.com/ethereum/go-ethereum/consensus/clique github.com/ethereum/go-ethereum/consensus/ethash github.com/ethereum/go-ethereum/consensus/istanbul github.com/ethereum/go-ethereum/consensus/istanbul/backend github.com/ethereum/go-ethereum/consensus/istanbul/core github.com/ethereum/go-ethereum/consensus/istanbul/validator github.com/ethereum/go-ethereum/consensus/misc github.com/ethereum/go-ethereum/console github.com/ethereum/go-ethereum/contracts/checkpointoracle github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract github.com/ethereum/go-ethereum/core github.com/ethereum/go-ethereum/core/asm github.com/ethereum/go-ethereum/core/bloombits github.com/ethereum/go-ethereum/core/forkid github.com/ethereum/go-ethereum/core/rawdb github.com/ethereum/go-ethereum/core/state github.com/ethereum/go-ethereum/core/types github.com/ethereum/go-ethereum/core/vm github.com/ethereum/go-ethereum/core/vm/runtime github.com/ethereum/go-ethereum/crypto github.com/ethereum/go-ethereum/crypto/blake2b github.com/ethereum/go-ethereum/crypto/bn256 github.com/ethereum/go-ethereum/crypto/bn256/cloudflare github.com/ethereum/go-ethereum/crypto/bn256/google github.com/ethereum/go-ethereum/crypto/ecies github.com/ethereum/go-ethereum/crypto/secp256k1 github.com/ethereum/go-ethereum/dashboard github.com/ethereum/go-ethereum/eth github.com/ethereum/go-ethereum/eth/downloader github.com/ethereum/go-ethereum/eth/fetcher github.com/ethereum/go-ethereum/eth/filters github.com/ethereum/go-ethereum/eth/gasprice github.com/ethereum/go-ethereum/eth/tracers github.com/ethereum/go-ethereum/eth/tracers/internal/tracers github.com/ethereum/go-ethereum/ethclient github.com/ethereum/go-ethereum/ethdb github.com/ethereum/go-ethereum/ethdb/dbtest github.com/ethereum/go-ethereum/ethdb/leveldb github.com/ethereum/go-ethereum/ethdb/memorydb github.com/ethereum/go-ethereum/ethstats github.com/ethereum/go-ethereum/event github.com/ethereum/go-ethereum/extension github.com/ethereum/go-ethereum/extension/extensionContracts github.com/ethereum/go-ethereum/extension/privacyExtension github.com/ethereum/go-ethereum/graphql github.com/ethereum/go-ethereum/internal/build github.com/ethereum/go-ethereum/internal/cmdtest github.com/ethereum/go-ethereum/internal/debug github.com/ethereum/go-ethereum/internal/ethapi github.com/ethereum/go-ethereum/internal/guide github.com/ethereum/go-ethereum/internal/jsre github.com/ethereum/go-ethereum/internal/jsre/deps github.com/ethereum/go-ethereum/internal/plugin github.com/ethereum/go-ethereum/internal/testlog github.com/ethereum/go-ethereum/internal/web3ext github.com/ethereum/go-ethereum/les github.com/ethereum/go-ethereum/les/flowcontrol github.com/ethereum/go-ethereum/light github.com/ethereum/go-ethereum/log github.com/ethereum/go-ethereum/metrics github.com/ethereum/go-ethereum/metrics/exp github.com/ethereum/go-ethereum/metrics/influxdb github.com/ethereum/go-ethereum/metrics/librato github.com/ethereum/go-ethereum/metrics/prometheus github.com/ethereum/go-ethereum/miner github.com/ethereum/go-ethereum/mobile github.com/ethereum/go-ethereum/node github.com/ethereum/go-ethereum/p2p github.com/ethereum/go-ethereum/p2p/discover github.com/ethereum/go-ethereum/p2p/discv5 github.com/ethereum/go-ethereum/p2p/dnsdisc github.com/ethereum/go-ethereum/p2p/enode github.com/ethereum/go-ethereum/p2p/enr github.com/ethereum/go-ethereum/p2p/nat github.com/ethereum/go-ethereum/p2p/netutil github.com/ethereum/go-ethereum/p2p/simulations github.com/ethereum/go-ethereum/p2p/simulations/adapters github.com/ethereum/go-ethereum/p2p/simulations/examples github.com/ethereum/go-ethereum/p2p/simulations/pipes github.com/ethereum/go-ethereum/p2p/testing github.com/ethereum/go-ethereum/params github.com/ethereum/go-ethereum/permission github.com/ethereum/go-ethereum/permission/core github.com/ethereum/go-ethereum/permission/core/types github.com/ethereum/go-ethereum/permission/v1 github.com/ethereum/go-ethereum/permission/v1/bind github.com/ethereum/go-ethereum/permission/v1/contract/gen github.com/ethereum/go-ethereum/permission/v2 github.com/ethereum/go-ethereum/permission/v2/bind github.com/ethereum/go-ethereum/permission/v2/contract/gen github.com/ethereum/go-ethereum/plugin github.com/ethereum/go-ethereum/plugin/account github.com/ethereum/go-ethereum/plugin/account/internal/testutils github.com/ethereum/go-ethereum/plugin/gen github.com/ethereum/go-ethereum/plugin/gen/proto_common github.com/ethereum/go-ethereum/plugin/helloworld github.com/ethereum/go-ethereum/plugin/initializer github.com/ethereum/go-ethereum/plugin/security github.com/ethereum/go-ethereum/private github.com/ethereum/go-ethereum/private/cache github.com/ethereum/go-ethereum/private/engine github.com/ethereum/go-ethereum/private/engine/constellation github.com/ethereum/go-ethereum/private/engine/notinuse github.com/ethereum/go-ethereum/private/engine/tessera github.com/ethereum/go-ethereum/raft github.com/ethereum/go-ethereum/rlp github.com/ethereum/go-ethereum/rpc github.com/ethereum/go-ethereum/signer/core github.com/ethereum/go-ethereum/signer/fourbyte github.com/ethereum/go-ethereum/signer/rules github.com/ethereum/go-ethereum/signer/rules/deps github.com/ethereum/go-ethereum/signer/storage github.com/ethereum/go-ethereum/tests github.com/ethereum/go-ethereum/trie github.com/ethereum/go-ethereum/whisper/mailserver github.com/ethereum/go-ethereum/whisper/shhclient github.com/ethereum/go-ethereum/whisper/whisperv6
? github.com/ethereum/go-ethereum [no test files]
ok github.com/ethereum/go-ethereum/accounts 0.356s
ok github.com/ethereum/go-ethereum/accounts/abi 0.357s
ok github.com/ethereum/go-ethereum/accounts/abi/bind 6.807s
ok github.com/ethereum/go-ethereum/accounts/abi/bind/backends 0.441s
? github.com/ethereum/go-ethereum/accounts/external [no test files]
ok github.com/ethereum/go-ethereum/accounts/keystore 15.961s
ok github.com/ethereum/go-ethereum/accounts/pluggable 0.377s
? github.com/ethereum/go-ethereum/accounts/pluggable/internal/testutils [no test files]
? github.com/ethereum/go-ethereum/accounts/pluggable/internal/testutils/mock_plugin [no test files]
? github.com/ethereum/go-ethereum/accounts/scwallet [no test files]
? github.com/ethereum/go-ethereum/accounts/usbwallet [no test files]
? github.com/ethereum/go-ethereum/accounts/usbwallet/trezor [no test files]
? github.com/ethereum/go-ethereum/cmd/abigen [no test files]
? github.com/ethereum/go-ethereum/cmd/bootnode [no test files]
? github.com/ethereum/go-ethereum/cmd/checkpoint-admin [no test files]
? github.com/ethereum/go-ethereum/cmd/clef [no test files]
? github.com/ethereum/go-ethereum/cmd/devp2p [no test files]
ok github.com/ethereum/go-ethereum/cmd/ethkey 2.597s
? github.com/ethereum/go-ethereum/cmd/evm [no test files]
? github.com/ethereum/go-ethereum/cmd/evm/internal/compiler [no test files]
? github.com/ethereum/go-ethereum/cmd/faucet [no test files]
ok github.com/ethereum/go-ethereum/cmd/geth 33.382s
? github.com/ethereum/go-ethereum/cmd/p2psim [no test files]
ok github.com/ethereum/go-ethereum/cmd/puppeth 0.408s
? github.com/ethereum/go-ethereum/cmd/rlpdump [no test files]
ok github.com/ethereum/go-ethereum/cmd/utils 0.512s
? github.com/ethereum/go-ethereum/cmd/wnode [no test files]
ok github.com/ethereum/go-ethereum/common 0.326s
ok github.com/ethereum/go-ethereum/common/bitutil 0.300s
ok github.com/ethereum/go-ethereum/common/compiler 0.291s
ok github.com/ethereum/go-ethereum/common/fdlimit 0.286s
ok github.com/ethereum/go-ethereum/common/hexutil 0.284s
ok github.com/ethereum/go-ethereum/common/math 0.292s
ok github.com/ethereum/go-ethereum/common/mclock 0.444s
ok github.com/ethereum/go-ethereum/common/prque 0.908s
? github.com/ethereum/go-ethereum/consensus [no test files]
ok github.com/ethereum/go-ethereum/consensus/clique 0.997s
ok github.com/ethereum/go-ethereum/consensus/ethash 3.955s
ok github.com/ethereum/go-ethereum/consensus/istanbul 0.323s
ok github.com/ethereum/go-ethereum/consensus/istanbul/backend 7.049s
# github.com/ethereum/go-ethereum/consensus/istanbul/core
consensus/istanbul/core/core_test.go:91:46: 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/ethereum/go-ethereum/consensus/istanbul/core [build failed]
# github.com/ethereum/go-ethereum/consensus/istanbul/validator
consensus/istanbul/validator/default_test.go:139:49: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:142:48: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:145:45: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:146:45: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:152:38: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:158:52: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:161:51: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:167:48: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
consensus/istanbul/validator/default_test.go:171:48: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
FAIL github.com/ethereum/go-ethereum/consensus/istanbul/validator [build failed]
? github.com/ethereum/go-ethereum/consensus/misc [no test files]
ok github.com/ethereum/go-ethereum/console 3.199s
ok github.com/ethereum/go-ethereum/contracts/checkpointoracle 1.036s
? github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract [no test files]
ok github.com/ethereum/go-ethereum/core 30.211s
ok github.com/ethereum/go-ethereum/core/asm 0.376s
ok github.com/ethereum/go-ethereum/core/bloombits 2.476s
ok github.com/ethereum/go-ethereum/core/forkid 0.387s
|-----------------|
| fileno | offset |
|--------+--------|
| 000 | 000 |
| 000 | 020 |
| 000 | 040 |
| 001 | 020 |
| 001 | 040 |
| 002 | 020 |
| 002 | 040 |
|-----------------|
|-----------------|
| fileno | offset |
|--------+--------|
| 004 | 002 |
| 002 | 020 |
| 002 | 040 |
|-----------------|
--- FAIL: TestFreezerReadAndTruncate (0.54s)
freezer_table_test.go:513: error open /var/folders/wf/6j3lf_814mq7s45hll585l380000gp/T/read_truncate-5640929514200731041.0008.rdat: too many open files
--- FAIL: TestSnappyDetection (0.44s)
freezer_table_test.go:294: open /var/folders/wf/6j3lf_814mq7s45hll585l380000gp/T/snappytest-1085583002963817133.0078.rdat: too many open files
FAIL
FAIL github.com/ethereum/go-ethereum/core/rawdb 12.670s
ok github.com/ethereum/go-ethereum/core/state 9.175s
ok github.com/ethereum/go-ethereum/core/types 0.589s
ok github.com/ethereum/go-ethereum/core/vm 0.553s
ok github.com/ethereum/go-ethereum/core/vm/runtime 0.399s
ok github.com/ethereum/go-ethereum/crypto 0.528s
ok github.com/ethereum/go-ethereum/crypto/blake2b 0.333s
? github.com/ethereum/go-ethereum/crypto/bn256 [no test files]
ok github.com/ethereum/go-ethereum/crypto/bn256/cloudflare 0.371s
ok github.com/ethereum/go-ethereum/crypto/bn256/google 0.825s
ok github.com/ethereum/go-ethereum/crypto/ecies 0.336s
ok github.com/ethereum/go-ethereum/crypto/secp256k1 1.346s
? github.com/ethereum/go-ethereum/dashboard [no test files]
ok github.com/ethereum/go-ethereum/eth 10.856s
ok github.com/ethereum/go-ethereum/eth/downloader 24.548s
ok github.com/ethereum/go-ethereum/eth/fetcher 8.727s
ok github.com/ethereum/go-ethereum/eth/filters 1.835s
? github.com/ethereum/go-ethereum/eth/gasprice [no test files]
ok github.com/ethereum/go-ethereum/eth/tracers 0.579s
? github.com/ethereum/go-ethereum/eth/tracers/internal/tracers [no test files]
ok github.com/ethereum/go-ethereum/ethclient 0.628s
? github.com/ethereum/go-ethereum/ethdb [no test files]
? github.com/ethereum/go-ethereum/ethdb/dbtest [no test files]
ok github.com/ethereum/go-ethereum/ethdb/leveldb 0.327s
ok github.com/ethereum/go-ethereum/ethdb/memorydb 0.277s
? github.com/ethereum/go-ethereum/ethstats [no test files]
ok github.com/ethereum/go-ethereum/event 0.834s
ok github.com/ethereum/go-ethereum/extension 0.492s
? github.com/ethereum/go-ethereum/extension/extensionContracts [no test files]
ok github.com/ethereum/go-ethereum/extension/privacyExtension 0.591s
ok github.com/ethereum/go-ethereum/graphql 0.417s
ok github.com/ethereum/go-ethereum/internal/build 0.306s
? github.com/ethereum/go-ethereum/internal/cmdtest [no test files]
? github.com/ethereum/go-ethereum/internal/debug [no test files]
ok github.com/ethereum/go-ethereum/internal/ethapi 0.435s
ok github.com/ethereum/go-ethereum/internal/guide 14.220s
ok github.com/ethereum/go-ethereum/internal/jsre 0.469s
? github.com/ethereum/go-ethereum/internal/jsre/deps [no test files]
? github.com/ethereum/go-ethereum/internal/plugin [no test files]
? github.com/ethereum/go-ethereum/internal/testlog [no test files]
? github.com/ethereum/go-ethereum/internal/web3ext [no test files]
ok github.com/ethereum/go-ethereum/les 36.217s
ok github.com/ethereum/go-ethereum/les/flowcontrol 6.882s
ok github.com/ethereum/go-ethereum/light 1.251s
? github.com/ethereum/go-ethereum/log [no test files]
ok github.com/ethereum/go-ethereum/metrics 0.569s
? github.com/ethereum/go-ethereum/metrics/exp [no test files]
? github.com/ethereum/go-ethereum/metrics/influxdb [no test files]
? github.com/ethereum/go-ethereum/metrics/librato [no test files]
? github.com/ethereum/go-ethereum/metrics/prometheus [no test files]
ok github.com/ethereum/go-ethereum/miner 15.404s
ok github.com/ethereum/go-ethereum/mobile 0.447s
ok github.com/ethereum/go-ethereum/node 1.156s
ok github.com/ethereum/go-ethereum/p2p 0.919s
ok github.com/ethereum/go-ethereum/p2p/discover 16.736s
--- FAIL: TestParseNode (0.00s)
node_test.go:156: test "://foo":
got error `parse "://foo": missing protocol scheme`, expected `parse ://foo: missing protocol scheme`
FAIL
FAIL github.com/ethereum/go-ethereum/p2p/discv5 9.060s
ok github.com/ethereum/go-ethereum/p2p/dnsdisc 0.808s
ok github.com/ethereum/go-ethereum/p2p/enode 1.709s
ok github.com/ethereum/go-ethereum/p2p/enr 0.330s
--- FAIL: TestUPNP_DDWRT (2.10s)
natupnp_test.go:165: not discovered
FAIL
FAIL github.com/ethereum/go-ethereum/p2p/nat 2.935s
ok github.com/ethereum/go-ethereum/p2p/netutil 0.292s
ok github.com/ethereum/go-ethereum/p2p/simulations 2.424s
ok github.com/ethereum/go-ethereum/p2p/simulations/adapters 0.425s
? github.com/ethereum/go-ethereum/p2p/simulations/examples [no test files]
? github.com/ethereum/go-ethereum/p2p/simulations/pipes [no test files]
? github.com/ethereum/go-ethereum/p2p/testing [no test files]
ok github.com/ethereum/go-ethereum/params 0.324s
ok github.com/ethereum/go-ethereum/permission 1.664s
ok github.com/ethereum/go-ethereum/permission/core 0.334s
? github.com/ethereum/go-ethereum/permission/core/types [no test files]
? github.com/ethereum/go-ethereum/permission/v1 [no test files]
? github.com/ethereum/go-ethereum/permission/v1/bind [no test files]
? github.com/ethereum/go-ethereum/permission/v1/contract/gen [no test files]
? github.com/ethereum/go-ethereum/permission/v2 [no test files]
? github.com/ethereum/go-ethereum/permission/v2/bind [no test files]
? github.com/ethereum/go-ethereum/permission/v2/contract/gen [no test files]
--- FAIL: TestPluginInterfaceName_UnmarshalJSON_whenTypical (0.00s)
Error Trace: settings_test.go:189
Error: "map[bar:a2 foo:a1]" does not contain "Foo"
Error Trace: settings_test.go:190
Error: "map[bar:a2 foo:a1]" does not contain "BAR"
FAIL
FAIL github.com/ethereum/go-ethereum/plugin 0.420s
ok github.com/ethereum/go-ethereum/plugin/account 0.372s
? github.com/ethereum/go-ethereum/plugin/account/internal/testutils [no test files]
? github.com/ethereum/go-ethereum/plugin/gen [no test files]
? github.com/ethereum/go-ethereum/plugin/gen/proto_common [no test files]
ok github.com/ethereum/go-ethereum/plugin/helloworld 0.353s
ok github.com/ethereum/go-ethereum/plugin/initializer 0.334s
ok github.com/ethereum/go-ethereum/plugin/security 0.354s
ok github.com/ethereum/go-ethereum/private 0.326s
? github.com/ethereum/go-ethereum/private/cache [no test files]
ok github.com/ethereum/go-ethereum/private/engine 0.304s
? github.com/ethereum/go-ethereum/private/engine/constellation [no test files]
ok github.com/ethereum/go-ethereum/private/engine/notinuse 0.344s
ok github.com/ethereum/go-ethereum/private/engine/tessera 0.336s
ok github.com/ethereum/go-ethereum/raft 4.582s
ok github.com/ethereum/go-ethereum/rlp 0.332s
ok github.com/ethereum/go-ethereum/rpc 8.992s
ok github.com/ethereum/go-ethereum/signer/core 4.320s
ok github.com/ethereum/go-ethereum/signer/fourbyte 2.850s
ok github.com/ethereum/go-ethereum/signer/rules 0.523s
? github.com/ethereum/go-ethereum/signer/rules/deps [no test files]
ok github.com/ethereum/go-ethereum/signer/storage 0.294s
ok github.com/ethereum/go-ethereum/tests 0.416s
ok github.com/ethereum/go-ethereum/trie 3.124s
ok github.com/ethereum/go-ethereum/whisper/mailserver 0.556s
? github.com/ethereum/go-ethereum/whisper/shhclient [no test files]
ok github.com/ethereum/go-ethereum/whisper/whisperv6 17.407s
FAIL
util.go:45: exit status 2
exit status 1
make: *** [test] Error 1
Steps to reproduce the behaviour
clone the master branch and run
make all
make test
Most of these failures are due to the go version used - not to say they aren't valid issues, but that is the cause.
e.g. the tests in github.com/ethereum/go-ethereum/consensus/istanbul/validator fail on go1.15, but are fine on go1.13.
Some are quite innocuous but haven't had the fix pulled in yet. Take a look at https://github.com/ethereum/go-ethereum/pull/20724/files for another example.
The only test I had an issue with still were the freezer db ones, and they seem dependent on the resources available on the host machine (cpu, file limits etc) than the test itself being bad. We can look into making it less flaky.
UT are fixed running in the latest master, even the freezer db ones were improved by geth.