-
Notifications
You must be signed in to change notification settings - Fork 53
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
refactor: Merge node
into net
and improve coverage
#1593
refactor: Merge node
into net
and improve coverage
#1593
Conversation
Codecov ReportPatch coverage:
@@ Coverage Diff @@
## develop #1593 +/- ##
===========================================
+ Coverage 73.67% 76.00% +2.33%
===========================================
Files 193 192 -1
Lines 19953 19852 -101
===========================================
+ Hits 14699 15088 +389
+ Misses 4160 3728 -432
+ Partials 1094 1036 -58
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the review could have been easier if the first commit was split into more smaller commits (i.e. autogen proto stuff separated, etc).
Praise for the tests, left some questions
@@ -262,7 +262,7 @@ func TestListenAddrs_WithListenP2PAddrStrings_NoError(t *testing.T) { | |||
) | |||
require.NoError(t, err) | |||
|
|||
require.Contains(t, n.ListenAddrs()[0].String(), "/ip4/127.0.0.1/tcp/") | |||
require.Contains(t, n.ListenAddrs()[0].String(), "/tcp/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: What prompted this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test didn't actually exist before. If you look at the old node_test.go file, there is no such require contains. So that might be between 2 commits. It was passing locally but failing on the CI due to the IP being different every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. This PR increases the code coverage by a lot. Thanks.
I just have some minor comments and improvement suggestions.
26c2b72
to
b88591f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers! Excited to see the coverage bump
…#1593) ## Relevant issue(s) Resolves sourcenetwork#906 Resolves sourcenetwork#1123 Resolves sourcenetwork#1127 Resolves sourcenetwork#1063 ## Description This PR does a refactor of the `net` package by merging into it the `node` package. There is a considerable improvement of the test coverage and `github.com/gogo/protobuf` is replaced with `github.com/planetscale/vtprotobuf`.
Relevant issue(s)
Resolves #906
Resolves #1123
Resolves #1127
Resolves #1063
Description
This PR does a refactor of the
net
package by merging into it thenode
package. There is a considerable improvement of the test coverage andgithub.com/gogo/protobuf
is replaced withgithub.com/planetscale/vtprotobuf
.This PR looks bigger than it is as the generated files for the protobufs makeup most of the line changes.
Tasks
How has this been tested?
make test
Specify the platform(s) on which this was tested: