-
Notifications
You must be signed in to change notification settings - Fork 9.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
tests/robustness: Expect revisions to be unique for Kubernetes Traffic #15909
Conversation
@@ -73,6 +73,10 @@ type etcdTraffic struct { | |||
largePutSize int | |||
} | |||
|
|||
func (t etcdTraffic) ExpectUniqueRevision() bool { |
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'm curious about the reasons for putting these bools into functions versus just having it as part of traffic config? Are we expecting to have complex criteria in future for determining if a given traffic type will expect unique revisions? It feels like something that is more static to me but I might be missing something.
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.
Because it's property of traffic code, it could be inferred from write types used, however it's also not clear for them. For example there are three etcd requests types currently that generate multiple operation per revision.
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 (non-binding).
1fc2868
to
40146fa
Compare
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
40146fa
to
4872b67
Compare
cc @ahrtr @ptabor @jmhbnz @chaochn47