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

RLQS: fix the flaky test #34043

Merged
merged 4 commits into from May 13, 2024
Merged

RLQS: fix the flaky test #34043

merged 4 commits into from May 13, 2024

Conversation

tyxia
Copy link
Member

@tyxia tyxia commented May 9, 2024

The reason of the flakiness is: RLQS filter is operating in non-blocking mode now so it is not determiniataed the response from RLQS sever can be returned(thus the throttling can be applied) at the Nth request.
Here is attempt to fix such flakiness while maintaining the code coverage
The final fix is adding stats to make the test behavior deterministic : let the test wait for stats.

Fix: #34041
.

Signed-off-by: Tianyu Xia <tyxia@google.com>
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #34043 was opened by tyxia.

see: more, trace.

tyxia added 3 commits May 10, 2024 02:11
Signed-off-by: Tianyu Xia <tyxia@google.com>
Signed-off-by: Tianyu Xia <tyxia@google.com>
Signed-off-by: Tianyu Xia <tyxia@google.com>
@tyxia tyxia changed the title remove the flaky test ext_proc: fix the flaky test May 13, 2024
@tyxia tyxia marked this pull request as ready for review May 13, 2024 13:47
@tyxia tyxia requested a review from yanavlasov as a code owner May 13, 2024 13:47
@tyxia
Copy link
Member Author

tyxia commented May 13, 2024

/assign @yanavlasov @phlax

PTAL Thanks

@yanavlasov yanavlasov merged commit 770fc9c into envoyproxy:main May 13, 2024
51 checks passed
@tyxia tyxia deleted the rlqs_test_2 branch May 14, 2024 08:06
@tyxia tyxia changed the title ext_proc: fix the flaky test RLQS: fix the flaky test May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RateLimitQuotaIntegrationTest.TwoRequestWithTokenBucketThrottling is flakey (TIMEOUT)
3 participants