-
Notifications
You must be signed in to change notification settings - Fork 471
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
tools: adapt loadgenerator to cluster testing #4324
Conversation
add -d ALGORAND_DATA for use like pingpong add -config '{json literal}'
var err error | ||
nodeStatus, err = restClient.Status() |
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.
oh OK without this change, multiple loadgenerators wouldn't necessarily all target the same block... but one might also miss the block (like we were seeing) if something slow happens between waitForRound and generateTransactions?
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 can't think of any reason why you would miss the round by the time you get around to sending, unless the node you're talking to was running behind or something
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.
LGTM modulo the linter recommendations and the merge conflicts created with #4324
Codecov Report
@@ Coverage Diff @@
## master #4324 +/- ##
=======================================
Coverage 55.29% 55.29%
=======================================
Files 395 395
Lines 50334 50334
=======================================
Hits 27831 27831
- Misses 20111 20117 +6
+ Partials 2392 2386 -6
Help us with your feedback. Take ten seconds to tell us how you rate us. |
// Like shared/pingpong/accounts.go | ||
func findRootKeys(algodDir string) []*crypto.SignatureSecrets { | ||
keylist := make([]*crypto.SignatureSecrets, 0, 5) | ||
err := filepath.Walk(algodDir, func(path string, info fs.FileInfo, err error) error { |
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.
nit, I think filepath.Walk wants you to do this with the err:
err := filepath.Walk(algodDir, func(path string, info fs.FileInfo, err error) error { | |
err := filepath.Walk(algodDir, func(path string, info fs.FileInfo, err error) error { | |
if err != nil { | |
return err | |
} |
Summary
add -d ALGORAND_DATA for use like pingpong
add -config '{json literal}'
Test Plan
This has recently been used extensively in manual testing.