-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[FLINK-30815][tests] Migrate BatchAbstractTestBase and BatchTestBase to junit5 #22427
Conversation
25de458
to
3d9dc5e
Compare
1c8c64f
to
b5521fa
Compare
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.
@TanYuxin-tyx Thank you for creating this PR. IIUC, this PR is to migrate BatchTestBase and BatchAbstractTestBase and their subclasses to Junit5 to avoid hide some problems. I noticed that not all subclasses are included in the current commits, such as SortITCase and DeleteTableITCase. Could you please help to check which other subclasses are still using Junit4 and make the necessary modifications? Thank you very much.
@JunRuiLee Thanks for joining the review. Considering that the two base classes have many table-related and Scala-related subclasses, it is indeed necessary to upgrade all the subclasses to JUnit5. However, I don't believe it is appropriate to update all the tests in this PR. Perhaps we should seek input from others to generate more ideas. @godfreyhe could you please help take a look at this change, WDYT? |
@TanYuxin-tyx Thanks for the explanation and I agree that migrating all the subclasses in one PR is cumbersome and unnecessary. What confuses me is that the title of this PR is "Migrate BatchAbstractTestBase and BatchTestBase to junit5", but the commits also include migration of some subclasses, although not all of them. I am curious why these subclasses were selected for migration. Could you please clarify? Also, I suggest splitting this into different commits. |
@JunRuiLee I agree that the sub subclasses migration can be in separate commits. |
b5521fa
to
306b587
Compare
I don't use a separate commit to fix In addition, other normal subclasses migrations should use separate commits. |
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.
Thanks for the contribution, I left one minor comment
...rc/test/scala/org/apache/flink/table/planner/runtime/batch/sql/LegacyTableSourceITCase.scala
Outdated
Show resolved
Hide resolved
306b587
to
9e11297
Compare
@godfreyhe Thanks for helping review the change. I have updated the code according to the comments. |
9e11297
to
271ba8e
Compare
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.
Thanks for the update, LGTM
@godfreyhe @JunRuiLee Thanks for helping review the change. |
What is the purpose of the change
Migrate BatchAbstractTestBase and BatchTestBase to junit5
Brief change log
Verifying this change
This change is a test update without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation