- 
                Notifications
    
You must be signed in to change notification settings  - Fork 24
 
feat: Enhance Integration Tests with Load Testing for the indexer-service #723
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
Conversation
Introduces a command-line interface powered by Clap to select and configure integration tests. This allows for more flexible test runs, including the ability to pass specific parameters like 'num_receipts' to different test suites. Additionally, constants used across tests have been centralized into a dedicated module for improved organization and maintainability.
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.
Always improving tooling!
          Pull Request Test Coverage Report for Build 15074877446Details
 
 
 
 💛 - Coveralls | 
    
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.
this is great! I just left a note about a dependency we can remove :)
| rand.workspace = true | ||
| 
               | 
          ||
| indexer-receipt = { path = "../crates/indexer-receipt" } | ||
| num_cpus = "1.16.0" | 
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.
We don't need num_cpus anymore, Rust has std::thread::available_parallelism since 1.59
One less dependency :)
| let concurrency = num_cpus::get(); | ||
| receipt_handler_load_test(num_receipts, concurrency).await?; | 
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.
| let concurrency = num_cpus::get(); | |
| receipt_handler_load_test(num_receipts, concurrency).await?; | |
| let parallelism = std::thread::available_parallelism().expect("unable to get available parallelism").get(); | |
| receipt_handler_load_test(num_receipts, parallelism).await?; | 
This PR upgrades our integration-tests suite with the following key enhancements:
Load testing for the TAP side of the indexer would be added in next iterations