Skip to content

Config Improvements#792

Merged
ebuchman merged 9 commits intodevelopfrom
config
Jan 10, 2018
Merged

Config Improvements#792
ebuchman merged 9 commits intodevelopfrom
config

Conversation

@zramsay
Copy link
Contributor

@zramsay zramsay commented Oct 26, 2017

most of #628
refs: #709, #733

@zramsay zramsay requested a review from ebuchman as a code owner October 26, 2017 23:23
@codecov-io
Copy link

codecov-io commented Oct 26, 2017

Codecov Report

Merging #792 into develop will decrease coverage by 0.06%.
The diff coverage is 48.57%.

@@             Coverage Diff             @@
##           develop     #792      +/-   ##
===========================================
- Coverage    59.89%   59.82%   -0.07%     
===========================================
  Files          116      116              
  Lines        10748    10761      +13     
===========================================
+ Hits          6437     6438       +1     
- Misses        3730     3742      +12     
  Partials       581      581

@melekes
Copy link
Contributor

melekes commented Oct 27, 2017

Tests failed with:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x902469]

goroutine 41 [running]:
github.com/tendermint/tendermint/rpc/lib/client.callWgDoneOnResult(0xc4201ce3c0, 0xc42009f7a0, 0xc42019d870)
        /go/src/github.com/tendermint/tendermint/rpc/lib/client/ws_client_test.go:207 +0x1a9
created by github.com/tendermint/tendermint/rpc/lib/client.TestWSClientReconnectsAfterWriteFailure
        /go/src/github.com/tendermint/tendermint/rpc/lib/client/ws_client_test.go:100 +0x192
exit status 2
FAIL    github.com/tendermint/tendermint/rpc/lib/client 2.339s

but this seems to be not related. I will take a look

melekes added a commit that referenced this pull request Oct 27, 2017
#792 (comment)
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x902469]

goroutine 41 [running]:
github.com/tendermint/tendermint/rpc/lib/client.callWgDoneOnResult(0xc4201ce3c0, 0xc42009f7a0, 0xc42019d870)
        /go/src/github.com/tendermint/tendermint/rpc/lib/client/ws_client_test.go:207 +0x1a9
created by github.com/tendermint/tendermint/rpc/lib/client.TestWSClientReconnectsAfterWriteFailure
        /go/src/github.com/tendermint/tendermint/rpc/lib/client/ws_client_test.go:100 +0x192
exit status 2
FAIL    github.com/tendermint/tendermint/rpc/lib/client 2.339s
```
@zramsay zramsay added this to the 0.13.0 milestone Oct 28, 2017
zramsay pushed a commit that referenced this pull request Oct 28, 2017
#792 (comment)
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x902469]

goroutine 41 [running]:
github.com/tendermint/tendermint/rpc/lib/client.callWgDoneOnResult(0xc4201ce3c0, 0xc42009f7a0, 0xc42019d870)
        /go/src/github.com/tendermint/tendermint/rpc/lib/client/ws_client_test.go:207 +0x1a9
created by github.com/tendermint/tendermint/rpc/lib/client.TestWSClientReconnectsAfterWriteFailure
        /go/src/github.com/tendermint/tendermint/rpc/lib/client/ws_client_test.go:100 +0x192
exit status 2
FAIL    github.com/tendermint/tendermint/rpc/lib/client 2.339s
```
@melekes
Copy link
Contributor

melekes commented Oct 30, 2017

test/app/test.sh: line 80: 13549 Killed                  abci-cli counter --serial --abci grpc > /dev/null
test/app/test.sh: line 80: 13550 Killed                  tendermint node --abci grpc > tendermint.log
Starting counter_over_grpc_grpc (ie. with grpc broadcast_tx)
running test
... sending tx. expect no error
... building grpc_client
RESPONSE
rpc error: code = Unavailable desc = grpc: the connection is unavailable
parse error: Invalid numeric literal at line 1, column 4
parse error: Invalid numeric literal at line 1, column 4
-------
TX 00
RESPONSE rpc error: code = Unavailable desc = grpc: the connection is unavailable
ERROR rpc error: code = Unavailable desc = grpc: the connection is unavailable
----
Unexpected error sending tx (00): rpc error: code = Unavailable desc = grpc: the connection is unavailable

@zramsay
Copy link
Contributor Author

zramsay commented Nov 6, 2017

hmm, i ran ./test/app/test.sh and got

Running all
Starting dummy_over_socket
running test
0x616263643D64636261

@melekes
Copy link
Contributor

melekes commented Nov 6, 2017

The tests behave themselves very strange. Every time I am rebuilding this, they fail with a new error.

@zramsay zramsay self-assigned this Dec 1, 2017
@melekes melekes force-pushed the config branch 2 times, most recently from 03fc4e5 to 2dd47ea Compare December 2, 2017 04:22
config/config.go Outdated
func DefaultConsensusConfig() *ConsensusConfig {
return &ConsensusConfig{
WalPath: "data/cs.wal/wal",
WalPath: filepath.Join(defaultDataDir, "cs.wal/wal"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filepath.Join(defaultDataDir, "cs.wal", "wal")

config/toml.go Outdated
filter_peers = {{ .BaseConfig.FilterPeers }}

# What indexer to use for transactions
tx_index = "{{ .BaseConfig.TxIndex }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this moved to its own section [tx_index]

filter_peers = false

# What indexer to use for transactions
tx_index = "kv"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@melekes
Copy link
Contributor

melekes commented Dec 2, 2017

2017-12-02T05:48:17Z box1393.localdomain docker/local_testnet_1[14895]: ERROR: Failed to create node: Couldn't read GenesisDoc file: open /go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/config/genesis.json: no such file or directory

@melekes
Copy link
Contributor

melekes commented Dec 2, 2017

also, dockerfile needs to be updated here

@ebuchman ebuchman modified the milestones: 0.13.0, 0.14.0 Dec 6, 2017
@melekes
Copy link
Contributor

melekes commented Dec 10, 2017

# github.com/tendermint/tendermint/config
config/toml.go:38:44: undefined: defaultConfig
config/toml.go:244:44: undefined: testConfig

@zramsay
Copy link
Contributor Author

zramsay commented Dec 10, 2017

on it

``$TMHOME/config/config.toml``. Some of these parameters can be overridden by
command-line flags. For most users, the options in the ``##### main
base configuration options #####`` are intended to be modified while
config options further below are intended for advance power users.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not quite true. theres stuff like p2p.seeds that the average user should be manipualting

@zramsay
Copy link
Contributor Author

zramsay commented Dec 11, 2017

currently hangs in the CI

zramsay and others added 6 commits December 28, 2017 20:49
config: test the default file

docs: spiff up config

config: minor fixes & comments

config: simplify test

config; use a seperate config directory, #556

config: update docs & parameterize file paths

config: PR comments

config: use the default object

fix a rebase error
@zramsay zramsay modified the milestones: 0.15.0, 0.16.0 Jan 6, 2018
@zramsay
Copy link
Contributor Author

zramsay commented Jan 10, 2018

narrowed down the test failure when rebasing this branch on the jenkins branch: https://ci.interblock.io/job/05.Test.Tendermint.FeatureBranches.p2p/98/console
see the branch config-on-jenkins

@zramsay
Copy link
Contributor Author

zramsay commented Jan 10, 2018

same error when running locally

@zramsay
Copy link
Contributor Author

zramsay commented Jan 10, 2018

@ebuchman ebuchman merged commit a13b17e into develop Jan 10, 2018
@zramsay zramsay deleted the config branch January 10, 2018 19:49
cmwaters pushed a commit to cmwaters/tendermint that referenced this pull request Dec 12, 2022
firelizzard18 pushed a commit to AccumulateNetwork/tendermint that referenced this pull request Nov 24, 2023
* Unsafe int cast in `kill` command

* Revert "Unsafe int cast in `kill` command"

This reverts commit bbd649bd372ca90f83dea7b424d67dafbd9eb541.

* Changed strategy

(cherry picked from commit 03c5e77)

Co-authored-by: Sergio Mena <sergio@informal.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants