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

MINOR: reduce the test suits of consumer group tools #16155

Merged

Conversation

m1a2st
Copy link
Contributor

@m1a2st m1a2st commented May 31, 2024

Because ConsumerGroupOffsetTest test for a long time, so I think that we should reduce the test time.

Committer Checklist (excluded from commit message)

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

@m1a2st m1a2st changed the title Minor speed up reset consumer group offset test MINOR speed up reset consumer group offset test May 31, 2024
@m1a2st m1a2st changed the title MINOR speed up reset consumer group offset test MINOR: speed up reset consumer group offset test May 31, 2024
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. I agree that we have too many test suits for those tools. BTW, could you share the elapsed time with/without this patch?

@@ -62,7 +63,7 @@ static List<ClusterConfig> forConsumerGroupCoordinator() {
serverProperties.put(NEW_GROUP_COORDINATOR_ENABLE_CONFIG, "true");

return Collections.singletonList(ClusterConfig.defaultBuilder()
.setTypes(Stream.of(KRAFT, CO_KRAFT).collect(Collectors.toSet()))
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 comments for this change?

@@ -75,6 +76,7 @@ static List<ClusterConfig> forClassicGroupCoordinator() {
serverProperties.put(NEW_GROUP_COORDINATOR_ENABLE_CONFIG, "false");

return Collections.singletonList(ClusterConfig.defaultBuilder()
.setTypes(Stream.of(ZK, KRAFT).collect(Collectors.toSet()))
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@gharris1727 gharris1727 added the tests Test fixes (including flaky tests) label May 31, 2024
@chia7712
Copy link
Contributor

chia7712 commented Jun 1, 2024

@m1a2st Could you please fix the conflicts?

@m1a2st m1a2st force-pushed the MINOR-Speed-up-ResetConsumerGroupOffsetTest branch from fa6df27 to e862f7f Compare June 1, 2024 02:35
@m1a2st
Copy link
Contributor Author

m1a2st commented Jun 1, 2024

Ok, I resolved the conflict

@chia7712 chia7712 merged commit 355d5da into apache:trunk Jun 1, 2024
1 check failed
@chia7712 chia7712 changed the title MINOR: speed up reset consumer group offset test MINOR: reduce the test suits of consumer group tools Jun 1, 2024
wernerdv pushed a commit to wernerdv/kafka that referenced this pull request Jun 3, 2024
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Jun 8, 2024
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test fixes (including flaky tests)
Projects
None yet
3 participants