-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
bench/rttanalysis: allow roundtrips to be off by 1 #74111
bench/rttanalysis: allow roundtrips to be off by 1 #74111
Conversation
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rafiss and @RichardJCai)
@@ -319,7 +319,9 @@ func (b benchmarkExpectations) find(name string) (benchmarkExpectation, bool) { | |||
} | |||
|
|||
func (e benchmarkExpectation) matches(roundTrips int) bool { | |||
return e.min <= roundTrips && roundTrips <= e.max | |||
return (e.min <= roundTrips && roundTrips <= e.max) || | |||
e.min == e.max && |
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.
would
(e.min <= roundTrips && roundTrips <= e.max) || (e.min == e.max && (roundTrips == e.min-1 || roundTrips == e.min+1))
be even more clear?
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.
I unwrapped it one level and added commentary
If we don't have a range, let the currently estimate be wrong by 1. We mostly care about the ballpark and the growth rate. I'm sick of these flakes. Fixes cockroachdb#73884. Release note: None
f8283b3
to
0750472
Compare
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.
yes please
bors r+ |
Build succeeded: |
If we don't have a range, let the currently estimate be wrong by 1.
We mostly care about the ballpark and the growth rate. I'm sick of
these flakes.
Fixes #73884.
Release note: None