-
Notifications
You must be signed in to change notification settings - Fork 955
[Test Fix] flaky benchmark test for warmup #2890
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
Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #2890 +/- ##
============================================
- Coverage 72.44% 72.42% -0.02%
============================================
Files 128 128
Lines 70487 70487
============================================
- Hits 51066 51052 -14
- Misses 19421 19435 +14 🚀 New features to boost your workflow:
|
zuiderkwast
left a comment
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.
LGTM, but I don't really understand why this fails in the first place.
How can --warmup 1 run for one seconds and not run any command? Can the server be that slow?
We run --warmup 1 -n 50 and we assert that we run > 50 commands, which means > 0 commands during warmup.
sarthakaggarwal97
left a comment
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.
LGTM as it deflakes the test. Thanks @roshkhatri for the change. This failed again yesterday, which otherwise would have been a green run :D
I do agree with @zuiderkwast that the reasoning behind this solution is unclear.
|
The one that failed yesterday seems to be another test: About the reasoning, I think sometime for some hosts it gets too slow that it does not start generating traffic in 1 sec. |
|
Oh, you are right. Let me open an issue for this. |
Fixes: #2859
Increased the warmup to 2 sec so we can verify that it runs more number of commands than the actual benchmark.
Ran it 100 times here for the same setup, and doesn't seem to fail here: https://github.com/roshkhatri/valkey/actions/runs/19844200320/job/56858357619