Skip to content
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

P2P: Introduce profiles for hybridRelay, hybridArchival, and hybridClient. #6062

Merged
merged 9 commits into from
Jul 18, 2024

Conversation

gmalouf
Copy link
Contributor

@gmalouf gmalouf commented Jul 10, 2024

Summary

Introduce configuration profiles for hybrid (WS+P2P support) relays, archival nodes, and part/non-participating role nodes.

Test Plan

Unit tests were added in profileCommand_test.go for each new profile. All 3 configurations were tested being generated via algocfg CLI, with each also used on a running local node.

@gmalouf gmalouf self-assigned this Jul 10, 2024
@gmalouf
Copy link
Contributor Author

gmalouf commented Jul 10, 2024

closes #6043

@gmalouf gmalouf linked an issue Jul 10, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 89.47368% with 4 lines in your changes missing coverage. Please review.

Project coverage is 56.20%. Comparing base (1493410) to head (02a4f93).
Report is 2 commits behind head on master.

Files Patch % Lines
config/config.go 0.00% 1 Missing and 1 partial ⚠️
network/p2p/p2p.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6062      +/-   ##
==========================================
+ Coverage   55.77%   56.20%   +0.42%     
==========================================
  Files         488      488              
  Lines       69434    69469      +35     
==========================================
+ Hits        38730    39046     +316     
+ Misses      28017    27783     -234     
+ Partials     2687     2640      -47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gmalouf gmalouf marked this pull request as ready for review July 10, 2024 18:08
onetechnical
onetechnical previously approved these changes Jul 11, 2024
Copy link
Contributor

@onetechnical onetechnical left a comment

Choose a reason for hiding this comment

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

Overall looks good, but had a couple comments.

cmd/algocfg/profileCommand.go Show resolved Hide resolved
cmd/algocfg/profileCommand.go Outdated Show resolved Hide resolved
cmd/algocfg/profileCommand.go Outdated Show resolved Hide resolved
@gmalouf gmalouf force-pushed the p2p-config-options branch from a20c91e to e8feae1 Compare July 15, 2024 14:46
@gmalouf gmalouf requested a review from jasonpaulos July 15, 2024 14:46
cmd/algocfg/profileCommand.go Outdated Show resolved Hide resolved
cmd/algocfg/profileCommand.go Outdated Show resolved Hide resolved
@gmalouf gmalouf requested review from cce and algorandskiy July 17, 2024 16:40
…ten port when NetAddress is not set in p2p mode.
network/p2pNetwork_test.go Outdated Show resolved Hide resolved
network/p2pNetwork.go Show resolved Hide resolved
cmd/algocfg/profileCommand.go Outdated Show resolved Hide resolved
@gmalouf gmalouf requested a review from algorandskiy July 18, 2024 17:00
algorandskiy
algorandskiy previously approved these changes Jul 18, 2024
cmd/algocfg/profileCommand.go Outdated Show resolved Hide resolved
@gmalouf gmalouf requested a review from onetechnical July 18, 2024 19:35
@gmalouf gmalouf merged commit 1fa0ef7 into algorand:master Jul 18, 2024
18 checks passed
@gmalouf gmalouf deleted the p2p-config-options branch July 18, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2P configuration options
4 participants