-
Notifications
You must be signed in to change notification settings - Fork 95
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
Deflake perf context test #382
Conversation
ae9b6fa
to
1f084ea
Compare
1f084ea
to
dd5dbee
Compare
/run-all-tests |
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
/merge |
Summary: We saw failures like ``` db/perf_context_test.cc:952: Failure Expected: (next_count) > (count), actual: 26699 vs 26699 ``` I can repro by running the test repeatedly and the test fails with different seek keys. So the cause is likely not with Seek() implementation. I found that `clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);` can return the same time when called repeatedly. However, I don't know if Seek() is fast enough that this happened during continuous test. Pull Request resolved: facebook#12252 Test Plan: `gtest_parallel.py --repeat=10000 --workers=1 ./perf_context_test --gtest_filter="PerfContextTest.CPUTimer"` Reviewed By: ajkr Differential Revision: D52912751 Pulled By: cbi42 fbshipit-source-id: 8985ae93baa99cdf4b9136ea38addd2e41f4b202 Signed-off-by: Yang Zhang <[email protected]>
dd5dbee
to
0c01228
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Connor1996, LykxSassinator 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 |
[LGTM Timeline notifier]Timeline:
|
/merge |
Cherry-picking facebook@ec5b1be
Test-only:
PerfContextTest.CPUTimer
was flaky.