-
Notifications
You must be signed in to change notification settings - Fork 632
add httproute weight based routing mesh conformance tests #3827
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
add httproute weight based routing mesh conformance tests #3827
Conversation
guicassolato
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
Left a small suggestion that doesn't have to block the PR though.
|
|
||
| // Assert request succeeds before doing our distribution check | ||
| client.MakeRequestAndExpectEventuallyConsistentResponse(t, expected, s.TimeoutConfig) | ||
| for i := 0; i < 10; i++ { |
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.
Worth adding some entropy to each iteration to mitigate the risk of coordinated execution perhaps? For example: introducing jitter, randomising the payload, or anything else that varies the sample across iterations (without affecting expected weight distribution).
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 think this is a great idea, but I'm OK with doing that as a second step.
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.
agreed, thanks @guicassolato ! will open a follow up issue
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.
ref: #3832
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guicassolato, LiorLieberman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This looks good to me, thanks @LiorLieberman! /lgtm |
|
Minor lint error @LiorLieberman |
d7ea33e to
e464433
Compare
e464433 to
5553968
Compare
|
/lgtm Thanks, @LiorLieberman! |
…-sigs#3827) * add httproute weights mesh conformance tests * gofmt
What type of PR is this?
/area conformance-test
Add mesh tests for request header modifier
This is a follow up to #3729
What this PR does / why we need it:
Add mesh tests coverage
Which issue(s) this PR fixes:
Related #3581
Does this PR introduce a user-facing change?: