Skip to content
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

Merged
merged 1 commit into from
May 24, 2023

Conversation

serathius
Copy link
Member

tests/robustness/watch.go Show resolved Hide resolved
@@ -73,6 +73,10 @@ type etcdTraffic struct {
largePutSize int
}

func (t etcdTraffic) ExpectUniqueRevision() bool {
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@chaochn47 chaochn47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (non-binding).

@ahrtr ahrtr changed the title tests/robustness: Expect revions to be unique for Kubernetes Traffic tests/robustness: Expect revisions to be unique for Kubernetes Traffic May 17, 2023
@serathius
Copy link
Member Author

Addressed comments, PTAL @ahrtr @jmhbnz

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
@serathius serathius merged commit 04346e8 into etcd-io:main May 24, 2023
@serathius serathius deleted the robustness-unique-revision branch June 15, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants