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

TestInitCmd generates a corrupted Tendermint configuration file #8933

Closed
4 tasks
alessio opened this issue Mar 18, 2021 · 3 comments
Closed
4 tasks

TestInitCmd generates a corrupted Tendermint configuration file #8933

alessio opened this issue Mar 18, 2021 · 3 comments
Labels
S:needs more info This bug can't be addressed until more information is provided by the reporter. T: Tests

Comments

@alessio
Copy link
Contributor

alessio commented Mar 18, 2021

Forked from #8923

This is reproducible via make test-race.

alessio@phoenix:~/work/cosmos-sdk$ go test -mod=readonly -timeout 30m -race -tags='cgo ledger test_ledger_mock' ./simapp/simd/cmd/...
Error: failed to parse log level (main:info,state:info,statesync:info,*:error): Unknown Level String: 'main:info,state:info,statesync:info,*:error', defaulting to NoLevel
Usage:
  simd init [moniker] [flags]

Flags:
      --chain-id string   genesis file chain-id, if left blank will be randomly created
  -h, --help              help for init
  -o, --overwrite         overwrite the genesis.json file
      --recover           provide seed phrase to recover existing key instead of creating

Global Flags:
      --home string         directory for config and data (default "/home/alessio/.simapp")
      --log_format string   The logging format (json|plain) (default "plain")
      --log_level string    The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
      --trace               print out full stack trace on errors

--- FAIL: TestInitCmd (0.02s)
    cmd_test.go:23: 
        	Error Trace:	cmd_test.go:23
        	Error:      	Received unexpected error:
        	            	failed to parse log level (main:info,state:info,statesync:info,*:error): Unknown Level String: 'main:info,state:info,statesync:info,*:error', defaulting to NoLevel
        	Test:       	TestInitCmd
{"app_message":{"genutil":{"gen_txs":[]}},"chain_id":"test-chain-gbuhs1","gentxs_dir":"","moniker":"appnode-test","node_id":"0a0714b7c48cb0dd7867299ed4b179d3de6bb898"}
Error: failed to get address from Keybase: The specified item could not be found in the keyring
Usage:
  add-genesis-account [address_or_key_name] [coin][,[coin]] [flags]

Flags:
      --height int               Use a specific height to query state at (this can error if the node is pruning state)
  -h, --help                     help for add-genesis-account
      --home string              The application home directory (default "/tmp/TestAddGenesisAccountCmd_invalid_address1926786926/001")
      --keyring-backend string   Select keyring's backend (os|file|kwallet|pass|test) (default "os")
      --node string              <host>:<port> to Tendermint RPC interface for this chain (default "tcp://localhost:26657")
  -o, --output string            Output format (text|json) (default "text")
      --vesting-amount string    amount of coins for vesting accounts
      --vesting-end-time int     schedule end time (unix epoch) for vesting accounts
      --vesting-start-time int   schedule start time (unix epoch) for vesting accounts

{"app_message":{"genutil":{"gen_txs":[]}},"chain_id":"test-chain-dQceaZ","gentxs_dir":"","moniker":"appnode-test","node_id":"6f590ed0f678195110190d41d190d9acd6a19ff3"}
{"app_message":{"genutil":{"gen_txs":[]}},"chain_id":"test-chain-kvWa6f","gentxs_dir":"","moniker":"appnode-test","node_id":"4f25302944daa95b763047061ba7bc54400a530d"}
FAIL
FAIL	github.com/cosmos/cosmos-sdk/simapp/simd/cmd	0.480s
FAIL

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alessio
Copy link
Contributor Author

alessio commented Mar 18, 2021

CC'ing @marbar3778 @alexanderbez for visibility

@alexanderbez
Copy link
Contributor

This doesn't fail for me locally:

go test -mod=readonly -timeout 30m -race -tags='cgo ledger test_ledger_mock' ./simapp/simd/cmd/...
go: downloading github.com/spf13/cobra v1.1.3
go: downloading github.com/tendermint/tendermint v0.34.8
go: downloading google.golang.org/grpc v1.33.2
go: downloading github.com/tendermint/cosmos-rosetta-gateway v0.3.0-rc2.0.20210304154332-87d6ca4410df
go: downloading github.com/mitchellh/mapstructure v1.3.3
go: downloading github.com/pelletier/go-toml v1.8.1
go: downloading gopkg.in/ini.v1 v1.61.0
go: downloading github.com/prometheus/common v0.18.0
go: downloading github.com/improbable-eng/grpc-web v0.14.0
go: downloading github.com/coinbase/rosetta-sdk-go v0.5.9
go: downloading gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
go: downloading github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f
go: downloading nhooyr.io/websocket v1.8.6
go: downloading github.com/klauspost/compress v1.10.3
# github.com/keybase/go-keychain
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here
ok      github.com/cosmos/cosmos-sdk/simapp/simd/cmd    1.073s

@alessio
Copy link
Contributor Author

alessio commented Mar 18, 2021

I can't reproduce it either. Hence closing for now - and sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:needs more info This bug can't be addressed until more information is provided by the reporter. T: Tests
Projects
None yet
Development

No branches or pull requests

2 participants