Closed alexanderbez closed 3 years ago
Maybe (1) is expected because we haven't finished some sort of client migration or something...idk? But (2) should be addressed for sure.
Hmm... I imagine this is because we are in the middle of enabling proto JSON and disabling amino JSON. Integration tests now use proto but the binaries still use amino. That switch will be flipped after #6859 is merged. I split it into 3 PRs to make review easy. Sorry for the janky transition.
Will close this after those PR(s) are merged then.
We need to check and see if that fixed it. There could be something else. @sahith-narahari ?
Now I can't even start a network...
$ make clean localnetwork-start
panic: cannot protobuf JSON encode unsupported type: types.GenesisState
goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/codec.(*ProtoCodec).MustMarshalJSON(0xc000dff820, 0x16fbce0, 0xc00016e9c0, 0xc00016e9c0, 0x4, 0x4)
github.com/cosmos/cosmos-sdk/codec/proto_codec.go:110 +0x8a
github.com/cosmos/cosmos-sdk/simapp/simd/cmd.initGenFiles(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7ff704afeb30, 0xc000dff820, 0x1c2c6c0, ...)
github.com/cosmos/cosmos-sdk/simapp/simd/cmd/testnet.go:291 +0x22c
github.com/cosmos/cosmos-sdk/simapp/simd/cmd.InitTestnet(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7ff704afeb30, 0xc000dff820, 0x1c2c6c0, ...)
github.com/cosmos/cosmos-sdk/simapp/simd/cmd/testnet.go:257 +0x2398
github.com/cosmos/cosmos-sdk/simapp/simd/cmd.testnetCmd.func1(0xc000e62840, 0xc0005ffa70, 0x0, 0x9, 0x0, 0x0)
github.com/cosmos/cosmos-sdk/simapp/simd/cmd/testnet.go:77 +0x50d
github.com/spf13/cobra.(*Command).execute(0xc000e62840, 0xc0005ff9e0, 0x9, 0x9, 0xc000e62840, 0xc0005ff9e0)
github.com/spf13/cobra@v1.0.0/command.go:842 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0x26364e0, 0x0, 0x0, 0xc000de1730)
github.com/spf13/cobra@v1.0.0/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.0.0/command.go:887
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/cobra@v1.0.0/command.go:880
github.com/cosmos/cosmos-sdk/simapp/simd/cmd.Execute(0x15d6680, 0xc00008c058)
github.com/cosmos/cosmos-sdk/simapp/simd/cmd/root.go:75 +0x159
main.main()
github.com/cosmos/cosmos-sdk/simapp/simd/main.go:10 +0x25
make: *** [localnet-start] Error 2
(mental note to self: Sigh...I think we need to bring back the localnet bash script)
Looks like the query account is still failing, I added a test here for the same #6973
I would first look into making sure we can actually start a network...
How hard do you think it would be to bring back some of the out of process integration tests for critical commands? We don't need all the module tests out of process - maybe just tx send
and core stuff like init and start.
I was thinking just brining back the liveness.sh
bash script back and that's it. We don't necessarily need to test individual commands like that, we need to test can we actually start a network.
IMHO: the issue here is the missing interface implementation. The address in the response is of type Any
but there is no UnpackInterfaces
implementation. To verify, please do:
var _ codectypes.UnpackInterfacesMessage = &QueryAccountResponse{}
and a fix is likely:
+func (m *QueryAccountResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
+ var account AccountI
+ return unpacker.UnpackAny(m.Account, &account)
+}
Which issue @alpe? There are three currently:
- Can't query an existing account
Sorry for the confusion, I came from #7034. I have not looked into the other problems.
That's exactly the fix thanks @alpe !
I am working on addressing all 3.
A fix for 2 and 3 is in #6973
Summary of Bug
Version
master as of
1744194e7
Steps to Reproduce
For Admin Use