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

Refactor and enhance node configuration generator and stress tester scripts #1093

Open
wants to merge 2 commits into
base: testnet
Choose a base branch
from

Conversation

seregatipich
Copy link

This pull request includes significant updates to two scripts:

  1. generate-test-node-config.py:

-Refactored to use more Pythonic code structures and practices
-Improved error handling and input validation
-Enhanced JSON configuration generation for global and local configs
-Added support for generating DHT, catchain, liteserver, and validator configurations
-Implemented base64 encoding and SHA256 hashing for catchain tags
-Added functionality to generate random node IDs when specified

  1. stress_tester.py (renamed from stress.py):

-Complete rewrite of the stress testing script
-Implemented a more robust code generation system for creating test cases
-Added support for various control structures including if-else, loops, and try-catch blocks
-Introduced a State class to manage test execution state
-Implemented multiple Code classes to represent different types of operations
-Added functionality to compile and run generated code using FunC and Fift
-Improved test case generation with configurable parameters
-Enhanced output and error reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant