-
Notifications
You must be signed in to change notification settings - Fork 490
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
netgoal: fix large db generation #5445
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5445 +/- ##
==========================================
- Coverage 55.40% 54.18% -1.23%
==========================================
Files 447 447
Lines 63313 63328 +15
==========================================
- Hits 35080 34312 -768
- Misses 25842 26612 +770
- Partials 2391 2404 +13
... and 71 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 good, one suggestion about simplifying (?) keypair
signature
@@ -159,6 +159,7 @@ | |||
], | |||
"FeeSink": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ", | |||
"RewardsPool": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ", | |||
"RewardsPoolBalance": 125000000000000, |
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'm curious, was this required to get it going? Or did rerunning netgoal just generate this dirty 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.
I did not add this in manually, it was modified by make
if that's what you mean.
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.
maybe we just remove this line then?
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.
sure, I have removed it.
* Use the netState structure to hold a counter for number of deterministic accounts created * Two separate functions for keypair and deterministicKeypair * Simplify delay loop in netdeploy generate
Introduces the following changes to support large-scale testing:
netgoal generate
to prevent OOM crashes if the in-memory database outpaces flushes to diskTesting
make install
. This is a manual port of relevant fixes from a development branch. In that branch, these fixes are being used to produce large scale testing, and the changes introduced here were vital to unblocking issues in infrastructure.time netgoal build -r "~/networks/deterministic" -n "deterministic" --recipe test/testdata/deployednettemplates/recipes/bootstrappedScenario/recipe.json --gen-db-files
- watched this command with extra debug lines to observe the index for keypair being used and incremented as expected.