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

table/tables: migrate test-infra to testify for index_test.go #27557

Merged
merged 11 commits into from
Sep 6, 2021

Conversation

feitian124
Copy link
Contributor

@feitian124 feitian124 commented Aug 24, 2021

What problem does this PR solve?

Issue Number: closes #27588

resolve above issue in 3 parts, this is part 0:

  • migrate index_test.go
  • migrate partition_test.go
  • migrate tables_test.go

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Aug 24, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • tiancaiamao
  • xhebox

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 24, 2021
@feitian124
Copy link
Contributor Author

The following test cases take too long to finish:
[2021-08-24T15:47:43.269Z] PASS: tidb_test.go:878: tidbTestSerialSuite.TestTLSAuto 7.539s

/run-check_dev_2

@feitian124
Copy link
Contributor Author

feitian124 commented Aug 24, 2021

not sure what is the best practise to setup and teardown the shared variables.
i try to use setup teardown style in commit aa63353 but unit test fails so i reverted it.

/cc @tisonkun

@feitian124
Copy link
Contributor Author

/cc @tisonkun

Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

You can comment in #26866 and ask me for creating subtasks. I'd prefer avoid using part 0,1,2 where number is hard to understand.

Sorry for my previous bad example.

See #26863 as an example.

@ti-chi-bot
Copy link
Member

@tisonkun: Request changes is only allowed for the reviewers in list.

In response to this:

You can comment in #26866 and ask me for creating subtasks. I'd prefer avoid using part 0,1,2 where number is hard to understand.

Sorry for my previous bad example.

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 ti-community-infra/tichi repository.

@tisonkun tisonkun changed the title table/tables: migrate test-infra to testify (part 0) table/tables: migrate test-infra to testify for index_test.go Aug 25, 2021
Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Comments inline. Even if you migrate tests by script, please do a human check and avoid push the reviewer to review a mechanical patch with corner case uncovered.

table/tables/index_test.go Outdated Show resolved Hide resolved
table/tables/index_test.go Outdated Show resolved Hide resolved
table/tables/index_test.go Outdated Show resolved Hide resolved
table/tables/index_test.go Outdated Show resolved Hide resolved
@ti-chi-bot
Copy link
Member

@tisonkun: Request changes is only allowed for the reviewers in list.

In response to this:

Comments inline. Even if you migrate tests by script, please do a human check and avoid push the reviewer to review a mechanical patch with corner case uncovered.

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 ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 26, 2021
feitian124 and others added 2 commits August 26, 2021 23:05
Signed-off-by: tison <wander4096@gmail.com>
Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Generally looks good, a question on parallelism.

table/tables/index_test.go Outdated Show resolved Hide resolved
table/tables/index_test.go Outdated Show resolved Hide resolved
@ti-chi-bot ti-chi-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 5, 2021
@feitian124
Copy link
Contributor Author

/run-check_dev_2

@ti-chi-bot
Copy link
Member

@tisonkun: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

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 ti-community-infra/tichi repository.

@tisonkun
Copy link
Contributor

tisonkun commented Sep 6, 2021

/cc @xhebox @tiancaiamao

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 6, 2021
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 6, 2021
@xhebox
Copy link
Contributor

xhebox commented Sep 6, 2021

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: c79f51a

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 6, 2021
@ti-chi-bot
Copy link
Member

@feitian124: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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 ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 28b6f52 into pingcap:master Sep 6, 2021
}
}

func (s *testIndexSuite) TestMultiColumnCommonHandle(c *C) {
func TestMultiColumnCommonHandle(t *testing.T) {
t.Parallel()
Copy link
Contributor

Choose a reason for hiding this comment

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

please see #29125 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migrate test-infra to testify for table/tables/index_test.go
6 participants