-
Notifications
You must be signed in to change notification settings - Fork 450
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
Fix pingpong teal test #2835
Fix pingpong teal test #2835
Conversation
…lding per wallet. Only create one wallet per NPN Host to consolidate value for pingpong testing.
Codecov Report
@@ Coverage Diff @@
## master #2835 +/- ##
==========================================
- Coverage 47.12% 47.09% -0.03%
==========================================
Files 349 349
Lines 56434 56434
==========================================
- Hits 26593 26580 -13
- Misses 26859 26869 +10
- Partials 2982 2985 +3
Continue to review full report at Codecov.
|
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 to me. Please make sure to regenerate all the scenarios with this change and include them in the PR.
Changing the total supply can trigger some failures that would not be possible on mainnet. Are we truely ran out of money? |
+1. I'm still not a fan of increasing the amount of supply, as it indicates an unrealistic test (we would never increase mainnet supply). |
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.
Messaged Eric to learn more about the details. The results look correct on Datadog now so I think the last fix to rebalance stake fixed it! Changes look good to me.
Revert total non participating wallets to 400 as before.
Updated scenario1 and scenario3. |
By rebalancing the stake between participating and non-participating nodes, increasing the total stake is not required. Reverted total stake back to 10 billion Algos. |
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 like Scenario1 results look ok with the rebalanced stake and removed wallets as well. Looks good to me.
@onetechnical Good point. Updated so that the total stake remains at 10 billion. Split stake evenly between participating and nonparticipating nodes, which provides a sufficient amount for the teal pingpong tests. |
if npnHosts > 0 { | ||
wallets = 2 * wallets | ||
// split participating an non participating stake evenly |
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.
Have we always been assuming an even split between participating and non participating nodes? I wonder if that should be configurable. It looks like that would be a new feature though so probably out of scope
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.
It was evenly split before. I will create a ticket to make it configurable.
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.
Created this ticket to allow configuration of stake ratio: https://github.com/algorand/go-algorand-internal/issues/1566
Summary
Updated the netgoal utility to only create one wallet per non-participating node to better concentrate Algos for use by pingpong.
Test Plan
Ran netgoal to update the scenario2 recipe and tested the result with the CICD performance pipeline.