Skip to content

1417 status response format#1424

Merged
melekes merged 30 commits intotendermint:developfrom
Tilkal:1417-status-response-format
Apr 11, 2018
Merged

1417 status response format#1424
melekes merged 30 commits intotendermint:developfrom
Tilkal:1417-status-response-format

Conversation

@Bric3d
Copy link
Contributor

@Bric3d Bric3d commented Apr 5, 2018

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG.md

Fixes #1417

@Bric3d Bric3d requested review from ebuchman and melekes as code owners April 5, 2018 15:18
ValidatorStatus ValidatorStatus `json:"validator_status,omitempty"`
NodeInfo p2p.NodeInfo `json:"node_info"`
SyncInfo SyncInfo `json:"sync_info"`
ValidatorInfo ValidatorInfo `json:"validator_info,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

remove omitempty. pubkey is always present

CHANGELOG.md Outdated
- Graceful handling/recovery for apps that have non-determinism or fail to halt
- Graceful handling/recovery for violations of safety, or liveness

## Develop
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs to be moved to 0.18.0

@melekes
Copy link
Contributor

melekes commented Apr 6, 2018

🥇 🏎 🍰

@Bric3d
Copy link
Contributor Author

Bric3d commented Apr 9, 2018

Fixed both the changelog and the omit .

@melekes
Copy link
Contributor

melekes commented Apr 9, 2018

++ date +%T
+ echo '* [07:31:24] running p2p tests on a local docker network'
* [07:31:24] running p2p tests on a local docker network
+ bash /home/circleci/project/test/circleci/../p2p/test.sh tester
Error response from daemon: No such container: local_testnet_1
Error response from daemon: No such container: local_testnet_1
Error response from daemon: No such container: local_testnet_2
Error response from daemon: No such container: local_testnet_2
Error response from daemon: No such container: local_testnet_3
Error response from daemon: No such container: local_testnet_3
Error response from daemon: No such container: local_testnet_4
Error response from daemon: No such container: local_testnet_4
Error response from daemon: No such network: local_testnet
PersistentPeers: f3a437ae47bd01b14f29e9199138d104554d1b59@172.57.0.101:46656,fbc1209802dd5c8e0f05618efd18a581f78291b9@172.57.0.102:46656,f47c979740323445ce90a355b41d6f9f0d1b3347@172.57.0.103:46656,2529fc79222fccb77c58ffb54c0bf450f869be64@172.57.0.104:46656
bb65a6f4fb55e725e75c7b3b3f769732deea6115312256f4ee8c7a43c9aeffff
starting tendermint peer ID=1
bc7075553c5ebcefb45859917753963ab62336bd92390a193d840bc6424a84ef
starting tendermint peer ID=2
e80bc129258df3d968a4ec980b9c5c3ff4e095ece56a94366deddd5c97e91172
starting tendermint peer ID=3
2c5d92a9764c307cb8bc716817a897ab4a219cd61f13c51366e00b985516d164
starting tendermint peer ID=4
7c03abe8433407885ae1194ba7f4cb9f33c29021e39381a275de9e1192c70d53
starting test client container with CMD=test/p2p/basic/test.sh 4
Waiting for nodes to come online

... node 1 is up

... node 2 is up

... node 3 is up

... node 4 is up



Waiting for node 1 to connect to all peers ...

Waiting for node 1 to connect to all peers ...

Waiting for node 1 to connect to all peers ...

test/p2p/basic/test.sh: line 59: [: null: integer expression expected

you'll have to fix p2p tests, sorry

@melekes
Copy link
Contributor

melekes commented Apr 9, 2018

curl -s $addr/status | jq .result.latest_block_height

needs to be changed to

curl -s $addr/status | jq .result.sync_info.latest_block_height

@melekes
Copy link
Contributor

melekes commented Apr 9, 2018

Also, could you scan the docs/ directory for the same thing?

@Bric3d
Copy link
Contributor Author

Bric3d commented Apr 9, 2018

Yes I missed that the json was used in the tests, I'll check out if it's used in other places.

@codecov-io
Copy link

codecov-io commented Apr 9, 2018

Codecov Report

Merging #1424 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1424      +/-   ##
===========================================
+ Coverage    62.22%   62.24%   +0.01%     
===========================================
  Files          114      114              
  Lines        11093    11093              
===========================================
+ Hits          6903     6905       +2     
+ Misses        3547     3546       -1     
+ Partials       643      642       -1
Impacted Files Coverage Δ
rpc/client/helpers.go 88.23% <100%> (ø) ⬆️
p2p/conn/connection.go 82.52% <0%> (-0.58%) ⬇️
consensus/reactor.go 73.91% <0%> (-0.28%) ⬇️
p2p/peer.go 64.28% <0%> (ø) ⬆️
types/priv_validator/socket.go 72.87% <0%> (ø) ⬆️
consensus/state.go 78.12% <0%> (+0.54%) ⬆️
blockchain/pool.go 68.75% <0%> (+0.69%) ⬆️

@melekes
Copy link
Contributor

melekes commented Apr 9, 2018

Could you please rebase this against latest develop?

@Bric3d
Copy link
Contributor Author

Bric3d commented Apr 9, 2018

Do you still want me to put it in the changelog of the 0.18.0 ? It's marked as released for the 6 of April already.

@melekes
Copy link
Contributor

melekes commented Apr 9, 2018

0.19.0

@Bric3d
Copy link
Contributor Author

Bric3d commented Apr 9, 2018

Should be rebased properly, data race ruined the test_cover though.

@melekes
Copy link
Contributor

melekes commented Apr 10, 2018

Could you please rebase against latest develop? I fixed the data race (test_cover).

@Bric3d
Copy link
Contributor Author

Bric3d commented Apr 11, 2018

Should be alright now.

@melekes melekes merged commit 64879c1 into tendermint:develop Apr 11, 2018
@Bric3d Bric3d deleted the 1417-status-response-format branch April 11, 2018 08:39
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.

4 participants