-
Notifications
You must be signed in to change notification settings - Fork 297
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
test: makes network latency effective at earlier heights in benchmark tests #3747
Conversation
I verified that the latency gets added at earlier stages of the experiment by inspecting the block times and the average delay between sending and receiving individual block parts. Experiment without latency: Experiment with latency: As we can see, the block time increased in the experiment with latency compared to the one without latency, starting from the beginning of the experiment. The average block time also confirms this observation. Furthermore, I inspected the average block part delay for height 10 in both experiments, and the results indicate that the latency was applied as expected:
|
WalkthroughWalkthroughThe recent changes focus on enhancing the benchmark testing framework by refining the node startup and synchronization processes. The Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
So if I understand this correctly, previously because we were waiting until all genesis nodes had produced their first block, this meant latency would only be added later on. Now we would do it as soon as the machine says it's up and running.
nit: I would prefer we integrate latency into the start function so test writers don't have to worry about that but that can be addressed later
Your understanding is correct.
This is handled in the BenchmarkTest.Run(), so test developers don't need to take any additional actions. As soon as latency is specified in the manifest, it will take effect in the test. However, this is not part of the |
Closes #3746