Skip to content

planner: migreate expression_test to testify#28893

Merged
ti-chi-bot merged 4 commits intopingcap:masterfrom
cr0rc:migrate-expression-test-to-testtify
Oct 20, 2021
Merged

planner: migreate expression_test to testify#28893
ti-chi-bot merged 4 commits intopingcap:masterfrom
cr0rc:migrate-expression-test-to-testtify

Conversation

@cr0rc
Copy link
Contributor

@cr0rc cr0rc commented Oct 17, 2021

What problem does this PR solve?

Issue Number: close #28405

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Oct 17, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • mmyj
  • tisonkun

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/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 17, 2021
@cr0rc
Copy link
Contributor Author

cr0rc commented Oct 18, 2021

/cc @tisonkun

@ti-chi-bot ti-chi-bot requested a review from tisonkun October 18, 2021 03:59
Copy link
Contributor

Choose a reason for hiding this comment

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

You should migrate the test until this dependency can be safely removed.

Copy link
Contributor

Choose a reason for hiding this comment

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

No need for this line, we already verify goroutine leaks by goleak.

Copy link
Contributor

Choose a reason for hiding this comment

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

ditto others.

@cr0rc
Copy link
Contributor Author

cr0rc commented Oct 20, 2021

@tisonkun this should be good to review again. Thanks!

@tisonkun
Copy link
Contributor

@cr0rc sure, the next time you can comment

/cc @tisonkun

once again and I will take care of it.

@ti-chi-bot ti-chi-bot requested a review from tisonkun October 20, 2021 05:23
Tp: f,
}

stmtCtx := new(stmtctx.StatementContext)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you make these changes about stmtctx? It seems you add new tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK I get it that you expand DatumEquals. Let me take a closer look.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I checked other tests and looks like this is the way to migrate DatumEquals. Let me know if there is a better way. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

As it is a common checker used in expression, I tend to write a util for it. I'll push a follow up later.

Copy link
Contributor

Choose a reason for hiding this comment

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

... as af0e9ae.

Signed-off-by: tison <wander4096@gmail.com>
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 20, 2021
@tisonkun
Copy link
Contributor

/cc @mmyj

@ti-chi-bot ti-chi-bot requested a review from mmyj October 20, 2021 06:07
Copy link
Member

@mmyj mmyj left a comment

Choose a reason for hiding this comment

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

lgtm, @cr0rc I had added the t.Parallel() for them.

@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 Oct 20, 2021
@mmyj
Copy link
Member

mmyj commented Oct 20, 2021

/merge

@ti-chi-bot
Copy link
Member

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

DetailsCommit hash: 883f32a

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Oct 20, 2021
@ti-chi-bot ti-chi-bot merged commit eeead48 into pingcap:master Oct 20, 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/L Denotes a PR that changes 100-499 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 planner/core/expression_test.go

4 participants