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

Deflake perf context test #382

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

v01dstar
Copy link

Cherry-picking facebook@ec5b1be

Test-only: PerfContextTest.CPUTimer was flaky.

@ti-chi-bot ti-chi-bot bot added dco-signoff: no Indicates the PR's author has not signed dco. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 27, 2024
@v01dstar v01dstar force-pushed the deflake-perf-context-test branch from ae9b6fa to 1f084ea Compare September 27, 2024 00:05
@ti-chi-bot ti-chi-bot bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 27, 2024
@v01dstar v01dstar force-pushed the deflake-perf-context-test branch from 1f084ea to dd5dbee Compare September 27, 2024 00:05
@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. and removed dco-signoff: no Indicates the PR's author has not signed dco. labels Sep 27, 2024
@v01dstar
Copy link
Author

/run-all-tests

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 27, 2024
Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 27, 2024
@Connor1996
Copy link
Member

/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]>
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 27, 2024
@ti-chi-bot ti-chi-bot bot added the lgtm label Sep 27, 2024
Copy link

ti-chi-bot bot commented Sep 27, 2024

[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:
  • OWNERS [Connor1996,LykxSassinator]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 27, 2024
Copy link

ti-chi-bot bot commented Sep 27, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-27 03:04:01.844879248 +0000 UTC m=+1794311.585303172: ☑️ agreed by LykxSassinator.
  • 2024-09-27 03:29:32.929565458 +0000 UTC m=+1795842.669989398: ☑️ agreed by Connor1996.
  • 2024-09-27 03:40:25.215644628 +0000 UTC m=+1796494.956068566: ✖️🔁 reset by v01dstar.
  • 2024-09-27 03:45:12.483139811 +0000 UTC m=+1796782.223563808: ☑️ agreed by LykxSassinator.
  • 2024-09-27 03:54:31.356452385 +0000 UTC m=+1797341.096876323: ☑️ agreed by Connor1996.

@LykxSassinator
Copy link

/merge

@ti-chi-bot ti-chi-bot bot merged commit 2ba7241 into tikv:8.10.tikv Sep 27, 2024
5 checks passed
@v01dstar v01dstar deleted the deflake-perf-context-test branch September 27, 2024 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants