-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
topsql: add more test to check resource tag for each RPC request #33623
Conversation
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-all-tests |
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
/run-all-tests |
Signed-off-by: crazycs520 <[email protected]>
// Enable TopSQL for all test, and check the resource tag for each RPC request. | ||
// This is used to detect which codes are not tracked by TopSQL. | ||
topsqlstate.EnableTopSQL() | ||
unistore.CheckResourceTagForTopSQLInGoTest = true |
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.
@breeswish Now, all test case in server
pkg will check the resource tag now.
I try to enable this test check in other pkg, but will meet many error, so currently I only enable this test in server
pkg.
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.
but will meet many error
Does these error comes from we are not tagging the request correctly? If so, maybe we need to add tracking issues to track them and fix them.
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.
ok, I will create issue to track this. and some error are cause by test itself.
Signed-off-by: crazycs520 <[email protected]>
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/514b7a5c794e508a74532863138345dccdd2a7ec |
Signed-off-by: crazycs520 <[email protected]>
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 514b7a5
|
What problem does this PR solve?
Issue Number: close #33208
Problem Summary: Add more test to check resource tag for each RPC request
What is changed and how it works?
Check List
Tests
Release note