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
*: let our unit test cover the infoschema v2 code #52156
Conversation
Hi @tiancaiamao. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52156 +/- ##
================================================
+ Coverage 74.1313% 75.1940% +1.0627%
================================================
Files 1467 1489 +22
Lines 354270 435036 +80766
================================================
+ Hits 262625 327121 +64496
- Misses 72418 87021 +14603
- Partials 19227 20894 +1667
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/run-unit-test |
/test unit-test |
@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test check-dev2 |
@tiancaiamao: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test check-dev2 |
@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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
@@ -124,6 +124,10 @@ func TestTooLongBinaryPlan(t *testing.T) { | |||
require.NoError(t, logutil.InitLogger(newCfg.Log.ToLogConfig())) | |||
store := testkit.CreateMockStore(t) | |||
tk := testkit.NewTestKit(t, store) | |||
if tk.MustQuery("select @@tidb_schema_cache_size > 0").Equal(testkit.Rows("1")) { | |||
t.Skip("TODO: the performance is poor for this test under infoschema v2") |
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.
#52479 optimize the performance here, after that we do not need to skip.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: easonn7, GMHDBJD, time-and-fate, ywqzzy 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 |
/test pull-br-integration-test |
@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What problem does this PR solve?
Issue Number: ref #50959
Problem Summary:
What changed and how does it work?
Most the code can pass under infoschema v2 now.
We need a way to run the new code in our CI to prevent regression.
I change the testkit initialize code to make it:
Fix cases:
Some of those cases success to run if we set DefTiDBSchemaCacheSize, but fail if we set the @@global.tidb_schema_cache_size variable.
Check List
Tests
Now the CI should cover the new code.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.