Skip to content

table/tables: migrate test-infra to testify for tables_test.go#27902

Merged
ti-chi-bot merged 31 commits intopingcap:masterfrom
feitian124:issue-27590
Sep 17, 2021
Merged

table/tables: migrate test-infra to testify for tables_test.go#27902
ti-chi-bot merged 31 commits intopingcap:masterfrom
feitian124:issue-27590

Conversation

@feitian124
Copy link
Contributor

@feitian124 feitian124 commented Sep 8, 2021

What problem does this PR solve?

Issue Number: close #27590, close #26866
based on #27812

notice:

  1. the original test has an failed test but reported as passed by gocheck, please see migrate test-infra to testify for table/tables/tables_test.go  #27590 (comment)
  2. TestTableFromMeta was skipped before, enabled in this pr.

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Sep 8, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • tisonkun
  • 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.

Details

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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 8, 2021
@feitian124
Copy link
Contributor Author

/cc @tisonkun

@ti-chi-bot ti-chi-bot requested a review from tisonkun September 8, 2021 14:59
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.

@feitian124 please resolve the conflict so that we can continue the review.

@feitian124
Copy link
Contributor Author

/run-check_dev_2

1 similar comment
@feitian124
Copy link
Contributor Author

/run-check_dev_2

@feitian124
Copy link
Contributor Author

should be ok, seems failed due to unstable test #27889

@tisonkun tisonkun self-requested a review September 12, 2021 14:54
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 13, 2021
@tisonkun
Copy link
Contributor

/cc @xhebox

@ti-chi-bot ti-chi-bot requested a review from xhebox September 13, 2021 11:47
Comment on lines 628 to 631
defer func() {
_, err := ts.se.Execute(context.Background(), "DROP TABLE test.tRecord")
c.Assert(err, IsNil)
_, err := tk.Session().Execute(context.Background(), "DROP TABLE test.tRecord")
require.NoError(t, err)
}()
Copy link
Contributor

Choose a reason for hiding this comment

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

One thing I noticed is that we may be able to remove DROP TABLE, then cleanup function. Because every test is using a different mock store. You could investigate about that.

Copy link
Contributor Author

@feitian124 feitian124 Sep 16, 2021

Choose a reason for hiding this comment

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

create table -> do test -> drop table, it feels nature, the tests here are more like an integration tests.
it seems duplicated, but it also make sure drop table and clean up works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what's your idea?
if you insist on remove is better, i can do that job

Copy link
Contributor

Choose a reason for hiding this comment

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

I won't insist anything as long as it is acceptable.

@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 17, 2021
@xhebox
Copy link
Contributor

xhebox commented Sep 17, 2021

/merge

@ti-chi-bot
Copy link
Member

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

DetailsCommit hash: 55595a0

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 17, 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.

Details

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 33e989d into pingcap:master Sep 17, 2021
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/tables_test.go migrate test-infra to testify for table/tables

4 participants