Skip to content

Flink: Migrate subclasses of FlinkCatalogTestBase to JUnit5 - #9381

Merged
nastra merged 7 commits into
apache:mainfrom
vinitpatni:junit5-flinkcatalogtestbase
Jan 13, 2024
Merged

nastra merged 7 commits into
apache:mainfrom
vinitpatni:junit5-flinkcatalogtestbase

Conversation

@vinitpatni

Copy link
Copy Markdown
Contributor
  • Added junit 5 conversion and AssertJ style for TestFlinkCatalogTable and TestFlinkMetadataTable

"Should have the expected columns",
ImmutableSet.of("data", "id"),
ImmutableSet.copyOf(uniqueConstraintOptional.get().getColumns()));
assertThat(uniqueConstraintOptional.isPresent()).isTrue();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ack

@vinitpatni

Copy link
Copy Markdown
Contributor Author
  • Adding Junit 5 conversion and AssertJ style for TestFlinkUpsert and TestRewriteDataFilesAction

@vinitpatni

Copy link
Copy Markdown
Contributor Author

@nastra TestStreamScanSql is the only subclass remaining for conversion to Junit 5 but it has dependency on GenericAppenderHelper class which is part of iceberg-data module. Let me know how to tackle that ?

@nastra

nastra commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

@vinitpatni the issue with GenericAppenderHelper has been addressed in #9185, so this class should now be usable with JUnit4 + JUni5

@vinitpatni

Copy link
Copy Markdown
Contributor Author

I have done changes in TestStreamScanSql locally but running testcases on my local machine is taking lot of time. It is running indefinitely for this class. @nastra Do you have any idea ?

@nastra

nastra commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

I have done changes in TestStreamScanSql locally but running testcases on my local machine is taking lot of time. It is running indefinitely for this class. @nastra Do you have any idea ?

@vinitpatni without seeing the changes for TestStreamScanSql it's difficult to say what's wrong there. Can you please push your changes for this test? The changes in the other files LGTM

@vinitpatni

Copy link
Copy Markdown
Contributor Author
  • Adding Junit 5 conversion and AssertJ style for TestStreamScanSql.

@nastra I tried to execute locally both junit 4 version (main branch version) as well as this version(junit5 one). These tests are running indefinitely for both of these versions

@vinitpatni
vinitpatni marked this pull request as ready for review January 9, 2024 09:25

@nastra nastra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

almost ready to go, just 2 minor things to address

@vinitpatni

Copy link
Copy Markdown
Contributor Author
  • Addressing Review Comments

@nastra nastra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks @vinitpatni. Could you also please remove FlinkCatalogTestBase as part of this PR as I don't think it's used anymore, since everything was converted.

@nastra nastra changed the title Adding Junit 5 conversion and AssertJ style for TestFlinkCatalogTable… Flink: Migrate subclasses of FlinkCatalogTestBase to JUnit5 Jan 10, 2024
@vinitpatni

Copy link
Copy Markdown
Contributor Author

LGTM, thanks @vinitpatni. Could you also please remove FlinkCatalogTestBase as part of this PR as I don't think it's used anymore, since everything was converted.

Ack. Removed FlinkCatalogTestBase and its references

@nastra nastra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks @vinitpatni for getting this done

@nastra
nastra merged commit 850cd5c into apache:main Jan 13, 2024
@vinitpatni
vinitpatni deleted the junit5-flinkcatalogtestbase branch January 14, 2024 16:11
geruh pushed a commit to geruh/iceberg that referenced this pull request Jan 26, 2024
adnanhemani pushed a commit to adnanhemani/iceberg that referenced this pull request Jan 30, 2024
rodmeneses added a commit to rodmeneses/iceberg that referenced this pull request Jan 31, 2024
rodmeneses added a commit to rodmeneses/iceberg that referenced this pull request Jan 31, 2024
rodmeneses added a commit to rodmeneses/iceberg that referenced this pull request Jan 31, 2024
rodmeneses added a commit to rodmeneses/iceberg that referenced this pull request Feb 1, 2024
pvary pushed a commit that referenced this pull request Feb 2, 2024
rodmeneses added a commit to rodmeneses/iceberg that referenced this pull request Feb 2, 2024
rodmeneses pushed a commit to rodmeneses/iceberg that referenced this pull request Feb 19, 2024
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants