-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
iceberg-core: Switch tests to JUnit5 + AssertJ-style assertions #9085
Comments
@nastra Could I be assigned this issue? Thank you! |
@nastra Is anyone working on this now? May I help the migration to JUnit5? |
@tomtongue feel free to work on this. It's also perfectly fine to have multiple people work on this (as long as they don't convert the same test files). Maybe it makes sense to just update this issue here and mention which tests you'll be converting, so that others don't work on the same things. |
@nastra Thanks, sure it can avoid the duplicate efforts. Will list the test files here. |
I'm working on the following currently (will update) Current ProgressRead:
|
@tomtongue , I was working with TestOverwrite and to move this to jUnit5 I had to change TableTestBase, which ended up changing all the dependent class. With this PR I will plan to change only |
@nk1506 thanks for sharing the situation. In your commit, there are some classes that I already migrated to JUnit 5, the classes are listed above. And the And for Spark 3.3 and Spark 3.4, should we migrate to JUnit 5? @nastra Could you have a look at @nk1506's commit? (If you already had conversation about it, please let me know) |
Yes we should be using
We do this for Flink, but for Spark the situation is slightly different and the amount of tests is quite a lot. It would be nice to migrate at least Spark 3.4 so that backporting features and tests from Spark 3.5 to Spark 3.4 is easier. It took us already quite long to migrate Spark 3.5 tests. @aokolnychyi @RussellSpitzer any thoughts on also migrating Spark 3.4 tests to JUnit5? |
@tomtongue , I have reverted changed for the above files. As recommended by @nastra I will work with |
@nk1506 Sure thanks so much. It would be great if you list the classes you're working on in this issue, for avoiding the conflicts. |
Additionally created a PR for the migration of the files related to "snapshot". Here's the progress: Snapshots:
The following classes are for Iceberg procedures:
|
Created a PR for the migration of the files related to "metadata". Here's the progress:
|
@tomtongue After you make changes, do you run Also since you've been working this ticket, do you want to just take ownership of this ticket or would you like help with the rest of the tests? |
basically run If it's no problem with you, I can take the ownership because I'm migrating most of classes. |
@tomtongue Makes sense, I figured you'd probably build that test/classes specific package instead of all of them since Sure you can take ownership. I've unassigned myself |
@nastra If possible, could you assign this issue with me? I'll have the owenership for this core migration. |
Created a PR for the migration of the files related to "manifest". Currently completed and working on the following classes:
Additional classes:
|
I think the only task left for this is to convert subclasses of |
Yes, the subclasses of |
Feature Request / Improvement
The goal is to switch all imports to JUni5 imports and to use AssertJ-style assertions
depends on #9073
Query engine
None
The text was updated successfully, but these errors were encountered: