-
Notifications
You must be signed in to change notification settings - Fork 14.5k
KAFKA-19382:Upgrade junit from 5.10 to 5.13 #19919
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
Conversation
@@ -118,6 +118,11 @@ public boolean supportsTestTemplate(ExtensionContext context) { | |||
return true; | |||
} | |||
|
|||
@Override | |||
public boolean mayReturnZeroTestTemplateInvocationContexts(ExtensionContext context) { | |||
return true; |
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.
Please add comment for this magic flag :)
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 suggestion! Updated it.
@@ -126,7 +126,7 @@ versions += [ | |||
// When updating the zstd version, please do as well in docker/native/native-image-configs/resource-config.json | |||
// Also make sure the compression levels in org.apache.kafka.common.record.CompressionType are still valid | |||
zstd: "1.5.6-10", | |||
junitPlatform: "1.10.2", | |||
junitPlatform: "1.13.1", |
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.
excuse me, is 1.13.1
released? the newest version in maven site is 1.31.0
https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher
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.
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.
@Rancho-7: LGTM
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.
Could you also update the version of JUnit in NOTICE-binary ?
@frankvicky Thanks for catching this.Updated. |
@Rancho-7 |
Reverted and opened https://issues.apache.org/jira/browse/KAFKA-19395 to track this. |
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, LGTM
jira: https://issues.apache.org/jira/browse/KAFKA-19382
Upgrade junit from 5.10.2 to
5.13.1.
A new behavior was introduced to junit 5.12
(junit-team/junit-framework@89a46df),
disallowing
ClusterTestExtensions
to generate empty invocationcontexts. However,
ClusterTestExtensions
is invoked by junit extensionso it could result in empty contexts for some tests.
Reviewers: Chia-Ping Tsai chia7712@gmail.com, TengYao Chi
frankvicky@apache.org, Ken Huang s7133700@gmail.com