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

Fix tests and reduce the overall test execution time #939

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

vmaheshw
Copy link
Collaborator

@vmaheshw vmaheshw commented May 25, 2023

  1. Fixed the tests that are taking longer time for execution.
  2. Added some of the default Kafka configs values, to reduce the overall delay in the tests.
  3. Added checks around pollUtils to ensure that it passes at the end of it.

CircleCI result: 24m 17s (reduced by 25%)

@vmaheshw vmaheshw requested a review from surajkn June 8, 2023 17:55
@@ -91,6 +91,7 @@
/**
* Tests for {@link KafkaMirrorMakerConnectorTask}
*/
@Test(singleThreaded = false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we be doing this in all our test classes?
I thought by default each test was executed in its own thread and run in parallel. Is that not the case ?

@@ -714,7 +725,7 @@ protected void seekToLastCheckpoint(Set<TopicPartition> topicPartitions) {
Set<TopicPartition> tpWithNoCommits = new HashSet<>();
// construct last checkpoint
topicPartitions.forEach(tp -> getLastCheckpointToSeekTo(lastCheckpoint, tpWithNoCommits, tp));
_logger.info("Seeking to previous checkpoints {}", lastCheckpoint);
_logger.info("Seeking to previous checkpoints {} ", lastCheckpoint);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: redundant change

@vmaheshw vmaheshw merged commit 764bad0 into linkedin:master Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants