-
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
testify: migrate test-infra to testify for distsql_test.go #28574 #30654
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. 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. |
/cc @hawkingrei @tisonkun |
) | ||
|
||
// nolint:unused | ||
func checkGoroutineExists(keyword string) bool { |
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.
it can remove because no one uses it.
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.
you mean removing the checkGoroutineExists function ?
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.
Yes.
[2021-12-12T12:11:56.974Z] executor/distsql_test.go:43:6: func `checkGoroutineExists` is unused (unused)
[2021-12-12T12:11:56.974Z] func checkGoroutineExists(keyword string) bool {
[2021-12-12T12:11:56.974Z] ^
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.
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.
I know.
func checkGoroutineExists(keyword string) bool { |
there is the same function.
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.
Try to delete executor/distsql_test.go:43:6 checkGoroutineExists
or checkGoroutineExists in tidb/executor/seqtest/seq_executor_serial_test.go
?
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.
make checkGoroutineExists
public and delete the redundant.
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.
okay , let me try
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.
package name executor_test
can be replaced by executor
.
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.
I did as follows,
1.make checkGoroutineExists public in tidb/executor/seqtest/seq_executor_serial_test.go
2.package name executor_test replaced by executor in tidb/executor/seqtest/seq_executor_serial_test.go
3.remove checkGoroutineExists in executor/distsql_test.go , use executor.CheckGoroutineExists instead, it prompted CheckGoroutineExists not declared by executor
how could I solve this...
/run-check_dev |
/run-all-tests |
…elemetry and types (pingcap#30874)
Signed-off-by: yisaer <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
executor/distsql_test.go
Outdated
func (s *testSuite3) TestIndexLookUpGetResultChunk(c *C) { | ||
tk := testkit.NewTestKit(c, s.store) | ||
func TestIndexLookUpGetResultChunk(t *testing.T) { | ||
t.Parallel() |
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.
t.Parallel()
need to be removed. it is a decision that we have made recently.
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.
sorry , not familiar with some git operations , things seemed went bad , just close and create a new PR............
… and collect histogram-needed columns (pingcap#30671)
and add comment to avoid goword check fail
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/dc8c2bfda02e7e0374c7dfb84daf1ca5b23af995 |
What problem does this PR solve?
Issue Number: close #28574
Problem Summary:
What is changed and how it works?
Check List
Release note