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

[improve][ci] Split Pulsar IO unit test job to multiple jobs #20384

Merged
merged 3 commits into from
May 24, 2023

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented May 24, 2023

Motivation

Modifications

  • add new maven profile pulsar-io-elastic-tests that can be used to target Elasticsearch tests
  • run Elasticsearch tests in a separate build job
  • add new maven profile pulsar-io-kafka-connect-tests that can be used to target Kafka Connect related tests
  • run Kafka Connect adaptor tests in a separate build job

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

- the tests in Pulsar IO are extremely slow and could cause the current
  75 minute limit to exceed.
- elastic-search tests are the slowest Pulsar IO tests
@lhotari lhotari changed the title [improve][ci] Split Elasticsearch tests to separate build job [improve][ci] Split Pulsar IO unit test job to multiple jobs May 24, 2023
@lhotari lhotari requested a review from michaeljmarshall May 24, 2023 11:39
.github/workflows/pulsar-ci.yaml Show resolved Hide resolved
@lhotari lhotari requested a review from nicoloboschi May 24, 2023 13:42
@lhotari lhotari dismissed nicoloboschi’s stale review May 24, 2023 14:28

I am intentionally splitting Pulsar IO ES and Kafka to separate jobs. Reasons are in comments.

@lhotari lhotari merged commit fd36fc1 into apache:master May 24, 2023
@lhotari
Copy link
Member Author

lhotari commented May 25, 2023

Kafka Connect tests took 17 minutes 28 seconds here: https://github.com/apache/pulsar/actions/runs/5077621849/jobs/9121399847
Elastic Search tests took 16 minutes 24 seconds:
https://github.com/apache/pulsar/actions/runs/5077621849/jobs/9121399712

That is a lot of time spent in those tests.

@lhotari
Copy link
Member Author

lhotari commented May 25, 2023

breakdown

https://github.com/apache/pulsar/actions/runs/5077621849/jobs/9121399847#step:10:2131

  [INFO] Pulsar ............................................. SUCCESS [  6.586 s]
  [INFO] Pulsar IO :: Parent ................................ SUCCESS [  2.573 s]
  [INFO] Pulsar IO :: IO .................................... SUCCESS [ 18.234 s]
  [INFO] Pulsar IO :: IO Common ............................. SUCCESS [  4.159 s]
  [INFO] Pulsar IO :: Kafka ................................. SUCCESS [03:42 min]
  [INFO] Pulsar IO :: Kafka Connect Adaptor ................. SUCCESS [06:34 min]
  [INFO] Pulsar IO :: Kafka Connect Adaptor NAR ............. SUCCESS [ 42.596 s]
  [INFO] Pulsar IO :: Debezium .............................. SUCCESS [  0.216 s]
  [INFO] Pulsar IO :: Debezium :: Core ...................... SUCCESS [ 55.757 s]
  [INFO] Pulsar IO :: Debezium :: mysql ..................... SUCCESS [01:29 min]
  [INFO] Pulsar IO :: Debezium :: postgres .................. SUCCESS [  6.676 s]
  [INFO] Pulsar IO :: Debezium :: mongodb ................... SUCCESS [01:01 min]
  [INFO] Pulsar IO :: Debezium :: oracle .................... SUCCESS [01:15 min]
  [INFO] Pulsar IO :: Debezium :: Microsoft SQL ............. SUCCESS [ 59.784 s]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  17:23 min

https://github.com/apache/pulsar/actions/runs/5077621849/jobs/9121399712#step:10:778

  [INFO] Pulsar ............................................. SUCCESS [  5.833 s]
  [INFO] Pulsar IO :: Parent ................................ SUCCESS [  2.154 s]
  [INFO] Pulsar IO :: IO .................................... SUCCESS [ 18.579 s]
  [INFO] Pulsar IO :: IO Common ............................. SUCCESS [  4.151 s]
  [INFO] Pulsar IO :: ElasticSearch ......................... SUCCESS [15:42 min]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  16:17 min

lhotari added a commit that referenced this pull request May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants