-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
test: fix unit test and make test running serially. #16525
Conversation
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.
preparedPlanCache
is in session level, each test is supposed to use a new TestKit, which would have its own session, why would they interfere with each other?
|
e566187
to
ea59274
Compare
Codecov Report
@@ Coverage Diff @@
## master #16525 +/- ##
================================================
- Coverage 80.4561% 80.3727% -0.0834%
================================================
Files 506 506
Lines 136964 136754 -210
================================================
- Hits 110196 109913 -283
- Misses 18189 18251 +62
- Partials 8579 8590 +11 |
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
@wshwsh12 Does the release branches have this issue? |
Would it impact the UT testing speed? cc @glorv |
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
These tests are fast, so the impact is small and acceptable |
/run-all-tests |
cherry pick to release-2.1 in PR #16612 |
cherry pick to release-3.0 in PR #16613 |
cherry pick to release-3.1 in PR #16614 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-4.0 in PR #16615 |
What problem does this PR solve?
Issue Number: close #16328
Problem Summary: UT fails. Root cause is running unit test parallelly (some prepare plan cache test.)
What is changed and how it works?
What's Changed: Run test serially.
How it Works:
Related changes
Check List
Tests
Side effects
Release note