go-algorand
go-algorand copied to clipboard
p2p: test scenarios support
Summary
- add P2PBootstrap netdeploy's template option
- add p2p dnsadddr support to netdeploy
- add scenario1s-p2p, hello-word-tiny-p2p, hello-world-small-p2p
- fixes to p2p telemetry
- added missed
gossipSubPeer.RoutingAddr
implementation - make libp2 logger to log into node.log by implementing
zapcore.Core
writing vialogger.Logger
Example log records
{
"file": "github.com/libp2p/[email protected]/config/config.go",
"function": "github.com/libp2p/go-libp2p/config.(*Config).NewNode",
"level": "warning",
"line": 304,
"msg": "rcmgr limit conflicts with connmgr limit: conn manager high watermark limit: 192, exceeds the system connection limit of: 1",
"name": "127.0.0.1:0",
"libp2p": "p2p-config",
"time": "2024-04-17T19:43:31.640497-04:00"
}
{
"file": "github.com/libp2p/[email protected]/pubsub.go",
"function": "github.com/libp2p/go-libp2p-pubsub.(*PubSub).processLoop",
"level": "info",
"line": 671,
"msg": "pubsub processloop shutting down",
"name": "127.0.0.1:0",
"libp2p": "pubsub",
"time": "2024-04-17T19:43:36.354601-04:00"
}
Test Plan
- Ran scenarios, ensured progress
- Deployed networks, collected/analyzed regular performance metrics - 2.2k TPS on scenario1s
Codecov Report
Attention: Patch coverage is 52.17391%
with 66 lines
in your changes are missing coverage. Please review.
Project coverage is 56.01%. Comparing base (
411837f
) to head (9c63601
).
Files | Patch % | Lines |
---|---|---|
network/p2p/logger.go | 0.00% | 41 Missing :warning: |
network/p2p/mux.go | 78.12% | 11 Missing and 3 partials :warning: |
network/p2pNetwork.go | 69.56% | 7 Missing :warning: |
logging/log.go | 0.00% | 2 Missing :warning: |
network/p2p/http.go | 0.00% | 1 Missing :warning: |
network/p2p/streams.go | 0.00% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## feature/p2p #5962 +/- ##
===============================================
- Coverage 56.01% 56.01% -0.01%
===============================================
Files 495 497 +2
Lines 69009 69128 +119
===============================================
+ Hits 38657 38719 +62
- Misses 27730 27783 +53
- Partials 2622 2626 +4
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.