-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix TestTrackerNoLock flaky test by increasing time to mark failure #17886
Conversation
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17886 +/- ##
=======================================
Coverage 67.51% 67.51%
=======================================
Files 1595 1595
Lines 259640 259640
=======================================
+ Hits 175292 175308 +16
+ Misses 84348 84332 -16 ☔ View full report in Codecov by Sentry. |
@@ -194,7 +194,7 @@ func TestTrackerNoLock(t *testing.T) { | |||
for i := 0; i < 500000; i++ { | |||
select { | |||
case ch <- th: | |||
case <-time.After(5 * time.Millisecond): | |||
case <-time.After(10 * time.Millisecond): |
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.
No guarantee that this will not be flaky even then. We should look at the new synctest package in 1.24 to see if that can be used to reduce flakiness in tests that depend on time. We can approve and merge for now.
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 can look into for main
. This needs to be ported to v20 and v21.
…17886) Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…17886) Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Description
The Test was introduced in PR #17873.
This needs to be backported till v20 to have flaky fixes in all branches.
Related Issue(s)
Checklist
Deployment Notes