Skip to content
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

KAFKA-15623: Remove junit 4 from stream module #16447

Merged
merged 7 commits into from
Jun 27, 2024

Conversation

m1a2st
Copy link
Contributor

@m1a2st m1a2st commented Jun 25, 2024

remove all junit 4 dependency from stream module

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@m1a2st thanks for this patch

build.gradle Outdated
}
useJUnitPlatform {
includeTags "integration"
includeEngines "junit-jupiter"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add it to test task for consistency?

build.gradle Show resolved Hide resolved
@m1a2st
Copy link
Contributor Author

m1a2st commented Jun 25, 2024

@chia7712, Thanks for your conversations, PTAL

build.gradle Outdated
@@ -482,7 +482,10 @@ subprojects {

exclude testsToExclude

useJUnitPlatform()
useJUnitPlatform {
includeTags "integration"
Copy link
Contributor

Choose a reason for hiding this comment

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

this is incorrect. we have three test-related tasks: test, unitTest and integrationTest. test does not need to include/exclude tags. unitTest needs excludeTags "integration" and integrationTest needs includeTags "integration"

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@m1a2st thanks for updated PR.

BTW, could you please remove the duplicate declaration from storage module?

https://github.com/apache/kafka/blob/trunk/build.gradle#L2031

build.gradle Outdated
@@ -482,7 +482,9 @@ subprojects {

exclude testsToExclude

useJUnitPlatform()
useJUnitPlatform {
includeEngines "junit-jupiter"
Copy link
Contributor

Choose a reason for hiding this comment

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

includeEngines 'junit-jupiter'

includeTags "integration"
}
useJUnitPlatform {
includeTags "integration"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add specific test engine explicitly?

excludeTags "integration"
}
useJUnitPlatform {
excludeTags "integration"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add specific test engine explicitly?

@chia7712 chia7712 merged commit 9b4f13e into apache:trunk Jun 27, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants