KAFKA-16878: Remove powermock and easymock from code base#16236
KAFKA-16878: Remove powermock and easymock from code base#16236chia7712 merged 1 commit intoapache:trunkfrom
Conversation
|
@FrankYang0529 could you please rebase code to trigger QA? |
8b7703f to
9fecf47
Compare
|
Wow, we're finally doing it! |
mimaison
left a comment
There was a problem hiding this comment.
Thanks for the PR!
We still have a handful of comments mentioning EasyMock/PowerMock, it would be good to remove them as well.
| // The suites are for running sets of tests in IDEs. | ||
| // Gradle will run each test class, so we exclude the suites to avoid redundantly running the tests twice. | ||
| def testsToExclude = ['**/*Suite.class'] | ||
| // Exclude PowerMock tests when running with Java 16 or newer until a version of PowerMock that supports the relevant versions is released |
There was a problem hiding this comment.
There's another comment about PowerMock at line 822, can we remove it as well?
There was a problem hiding this comment.
There are also comments about EasyMock in 4 places:
- 2 in
DescribeTopicPartitionsRequestHandlerTest - 2 in
KafkaApisTest
Let's clean those up as well.
There was a problem hiding this comment.
Hi @mimaison, thanks for the review. I remove all remaining comments.
That is a lengthy journey 😄 |
9fecf47 to
f01ff39
Compare
|
@FrankYang0529 thanks for this patch. I will merge it after getting approve from @mimaison |
|
oh, the QA is not completed. I re-trigger it ... |
f01ff39 to
633bce6
Compare
I rebase trunk branch to include #16248. |
|
@FrankYang0529 FYI it turned out there's another blocking test so we may need to wait #16249 gets merged not only 16248 |
Thank you for the reminder. We will wait for it 👍 |
|
#16249 is merged. FYI. |
| toolVersion = versions.jacoco | ||
| } | ||
|
|
||
| // NOTE: Jacoco Gradle plugin does not support "offline instrumentation" this means that classes mocked by PowerMock |
There was a problem hiding this comment.
You can't just remove the first line, the following line does not mean anything now.
There was a problem hiding this comment.
Sorry for that. I remove related comments.
Signed-off-by: PoAn Yang <payang@apache.org>
633bce6 to
135dd6d
Compare
Rebased it. Thanks. |
|
failed tests pass on my local. |
Well done team, this was a Herculean effort! |
Reviewers: TaiJuWu <tjwu1217@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This is the follow-up of KAFKA-16223. It should include following changes:
Committer Checklist (excluded from commit message)