Skip to content

Fix tests and reduce the overall test execution time#939

Merged
vmaheshw merged 2 commits intolinkedin:masterfrom
vmaheshw:vmaheshw/fixTests
Jun 12, 2023
Merged

Fix tests and reduce the overall test execution time#939
vmaheshw merged 2 commits intolinkedin:masterfrom
vmaheshw:vmaheshw/fixTests

Conversation

@vmaheshw
Copy link
Copy Markdown
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
/**
* Tests for {@link KafkaMirrorMakerConnectorTask}
*/
@Test(singleThreaded = false)
Copy link
Copy Markdown
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 ?

// 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
Copy Markdown
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