Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

*: migrate test-infra to testify #344

Merged
merged 14 commits into from
Sep 1, 2021
Merged

Conversation

tisonkun
Copy link
Contributor

@tisonkun tisonkun commented Aug 31, 2021

What problem does this PR solve?

pingcap/check is no longer under maintenance, migrate to testify.

This PR can be somewhat regarded as a subtask of pingcap/tidb#26022

This closes #346 .

Release note

  • No release note

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Aug 31, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lichunzhu

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.

Signed-off-by: tison <wander4096@gmail.com>
v4/export/dump_test.go Outdated Show resolved Hide resolved
v4/export/ir_impl_test.go Show resolved Hide resolved
defer db.Close()
require.NoError(t, err)
defer func() {
_ = db.Close()
Copy link
Collaborator

Choose a reason for hiding this comment

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

why some are converted to require.NoError(t, x.Close()) while these are left as _ = x.Close()

Copy link
Contributor Author

@tisonkun tisonkun Aug 31, 2021

Choose a reason for hiding this comment

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

Because several cases fail with require.NoError(t, x.Close()). The original code doesn't check the err but it is a net win we check it if tests are well written. For those failed, I don't have time to investigate deeply.

v4/export/sql_test.go Outdated Show resolved Hide resolved
v4/export/writer_serial_test.go Show resolved Hide resolved
tisonkun and others added 10 commits August 31, 2021 13:24
Co-authored-by: kennytm <kennytm@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Co-authored-by: kennytm <kennytm@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Copy link
Contributor

@lichunzhu lichunzhu left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot added the status/LGT1 One reviewer approved (LGTM1) label Aug 31, 2021
@tisonkun
Copy link
Contributor Author

/cc @kennytm

would you like to give another look?

v4/export/sql_test.go Outdated Show resolved Hide resolved
v4/export/sql_test.go Outdated Show resolved Hide resolved
v4/export/sql_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@lichunzhu lichunzhu left a comment

Choose a reason for hiding this comment

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

Rest LGTM

v4/export/block_allow_list_test.go Outdated Show resolved Hide resolved
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
Copy link
Contributor Author

@lichunzhu updated. PTAL

@lichunzhu
Copy link
Contributor

lichunzhu commented Aug 31, 2021

The group imports in other files are also not in the same style. But it seems not a big problem? Or do we have lint tools to do this job easily?

@tisonkun
Copy link
Contributor Author

@lichunzhu I think they are in the same style "goimports" while goimports doesn't have a strict rule to group imports as much as possible.

@tisonkun
Copy link
Contributor Author

BTW, pingcap/tidb also use goimports

@ti-chi-bot ti-chi-bot merged commit 85c4dee into pingcap:master Sep 1, 2021
ti-chi-bot pushed a commit to ti-chi-bot/dumpling that referenced this pull request Sep 1, 2021
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #347.

ti-chi-bot pushed a commit to ti-chi-bot/dumpling that referenced this pull request Sep 1, 2021
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #348.

ti-chi-bot pushed a commit to ti-chi-bot/dumpling that referenced this pull request Sep 1, 2021
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #349.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: cannot checkout 5.2: error checking out 5.2: exit status 1. output: error: pathspec '5.2' did not match any file(s) known to git

@lichunzhu
Copy link
Contributor

/cherry-pick release-5.2

ti-chi-bot pushed a commit to ti-chi-bot/dumpling that referenced this pull request Oct 12, 2021
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

@lichunzhu: new pull request created: #364.

In response to this:

/cherry-pick release-5.2

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 added a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun added a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun added a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun added a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun added a commit to tisonkun/tidb that referenced this pull request Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate test-infra to testify
5 participants