Skip to content

Release/v0.29.1#3203

Merged
ebuchman merged 10 commits intomasterfrom
release/v0.29.1
Jan 24, 2019
Merged

Release/v0.29.1#3203
ebuchman merged 10 commits intomasterfrom
release/v0.29.1

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented Jan 24, 2019

ebuchman and others added 9 commits January 22, 2019 13:19
* close peer's connection to avoid fd leak

Fixes #2967

* rename peer#Addr to RemoteAddr

* fix test

* fixes after Ethan's review

* bring back the check

* changelog entry

* write a test for switch#acceptRoutine

* increase timeouts? :(

* remove extra assertNPeersWithTimeout

* simplify test

* assert number of peers (just to be safe)

* Cleanup in OnStop

* run tests with verbose flag on CircleCI

* spawn a reading routine to prevent connection from closing

* get port from the listener

random port is faster, but often results in

```
panic: listen tcp 127.0.0.1:44068: bind: address already in use [recovered]
        panic: listen tcp 127.0.0.1:44068: bind: address already in use

goroutine 79 [running]:
testing.tRunner.func1(0xc0001bd600)
        /usr/local/go/src/testing/testing.go:792 +0x387
panic(0x974d20, 0xc0001b0500)
        /usr/local/go/src/runtime/panic.go:513 +0x1b9
github.com/tendermint/tendermint/p2p.MakeSwitch(0xc0000f42a0, 0x0, 0x9fb9cc, 0x9, 0x9fc346, 0xb, 0xb42128, 0x0, 0x0, 0x0, ...)
        /home/vagrant/go/src/github.com/tendermint/tendermint/p2p/test_util.go:182 +0xa28
github.com/tendermint/tendermint/p2p.MakeConnectedSwitches(0xc0000f42a0, 0x2, 0xb42128, 0xb41eb8, 0x4f1205, 0xc0001bed80, 0x4f16ed)
        /home/vagrant/go/src/github.com/tendermint/tendermint/p2p/test_util.go:75 +0xf9
github.com/tendermint/tendermint/p2p.MakeSwitchPair(0xbb8d20, 0xc0001bd600, 0xb42128, 0x2f7, 0x4f16c0)
        /home/vagrant/go/src/github.com/tendermint/tendermint/p2p/switch_test.go:94 +0x4c
github.com/tendermint/tendermint/p2p.TestSwitches(0xc0001bd600)
        /home/vagrant/go/src/github.com/tendermint/tendermint/p2p/switch_test.go:117 +0x58
testing.tRunner(0xc0001bd600, 0xb42038)
        /usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
        /usr/local/go/src/testing/testing.go:878 +0x353
exit status 2
FAIL    github.com/tendermint/tendermint/p2p    0.350s
```
* docs: update pubsub ADR

* third version
CHANGELOG.md Outdated
Friendly reminder, we have a [bug bounty
program](https://hackerone.com/tendermint).

### BREAKING CHANGES:
Copy link
Contributor Author

@melekes melekes Jan 24, 2019

Choose a reason for hiding this comment

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

forgot to remove empty sections, but now I can't push because I don't have write access to release branches

Copy link
Contributor

Choose a reason for hiding this comment

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

heh - I applied the same permissions to release/* as we have on develop. so you'd need to make a PR, have it approved, and squash merge

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll do it - thanks!

@melekes melekes closed this Jan 24, 2019
@melekes melekes reopened this Jan 24, 2019
@codecov-io
Copy link

codecov-io commented Jan 24, 2019

Codecov Report

Merging #3203 into master will increase coverage by 0.49%.
The diff coverage is 65.9%.

@@            Coverage Diff             @@
##           master    #3203      +/-   ##
==========================================
+ Coverage   62.84%   63.33%   +0.49%     
==========================================
  Files         212      212              
  Lines       17461    17501      +40     
==========================================
+ Hits        10973    11085     +112     
+ Misses       5563     5488      -75     
- Partials      925      928       +3
Impacted Files Coverage Δ
p2p/pex/pex_reactor.go 72.64% <0%> (+1.12%) ⬆️
p2p/peer.go 60.4% <100%> (+1.89%) ⬆️
consensus/state.go 79.61% <100%> (+0.62%) ⬆️
p2p/conn_set.go 96.66% <100%> (+0.51%) ⬆️
p2p/transport.go 80.18% <100%> (-0.1%) ⬇️
p2p/switch.go 59.49% <45.45%> (+6.24%) ⬆️
p2p/test_util.go 65.03% <57.14%> (-1.38%) ⬇️
libs/autofile/autofile.go 75% <0%> (-5.89%) ⬇️
libs/flowrate/util.go 60% <0%> (-1.54%) ⬇️
... and 9 more

@ebuchman ebuchman merged commit 4d7b29c into master Jan 24, 2019
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.

6 participants