[CI] Speed up CI test and fix flaky test#1925
[CI] Speed up CI test and fix flaky test#1925BewareMyPower merged 20 commits intostreamnative:masterfrom
Conversation
|
|
|
@yzang2019:Thanks for your contribution. For this PR, do we need to update docs? |
|
@yzang2019:Thanks for providing doc info! |
| } | ||
|
|
||
| @Test(timeOut = 1000 * 10, dataProvider = "produceConfigProvider") | ||
| @Test(timeOut = 1000 * 30, dataProvider = "produceConfigProvider") |
There was a problem hiding this comment.
I've run these locally and it takes 22 seconds
| } | ||
|
|
||
| @Test(timeOut = 20000, expectedExceptions = KeeperException.NoNodeException.class) | ||
| @Test(timeOut = 60000, expectedExceptions = KeeperException.NoNodeException.class) |
There was a problem hiding this comment.
Tested this locally which takes usually 20-30 seconds to finish
|
I don't think it speeds up the CI test actually.
You can see the See another CI example in #1914:
How could you say this PR speeds up the CI test? |
Maybe we need to add some test groups for tests and use different ci jobs to test various test groups. |
+1 |
Yeah, you are right, I only realized this after I split it into multiple jobs, I think next step is to split them into groups |
Codecov Report
@@ Coverage Diff @@
## master #1925 +/- ##
============================================
- Coverage 18.64% 17.94% -0.70%
- Complexity 743 745 +2
============================================
Files 186 194 +8
Lines 13377 13957 +580
Branches 1231 1291 +60
============================================
+ Hits 2494 2505 +11
- Misses 10702 11271 +569
Partials 181 181
|
|
@BewareMyPower @Demogorgon314 I've addressed comments, total test time dropped from 50 minutes to around 10 minutes now, could you take another look? |
gaoran10
left a comment
There was a problem hiding this comment.
Great work! LGTM, left a trivial comment.
|
|
||
| @Cleanup | ||
| final KafkaProducer<String, String> kafkaProducer = newKafkaProducer(); | ||
| @Cleanup final KafkaProducer<String, String> kafkaProducer = newKafkaProducer(); |
There was a problem hiding this comment.
Could we retain the code format?
### Motivation After streamnative#1925, the surefire artifacts won't be uploaded if tests failed. ### Modifications Upload the surefire artifacts when tests failed.
### Motivation After #1925, the surefire artifacts won't be uploaded if tests failed. ### Modifications Upload the surefire artifacts when tests failed.
### Motivation KoP test is too slow, and there are couple of test very flaky and always timeout. ### Modifications Parallelize KoP uni tests with multiple jobs after regroup the tests into corresponding packages Add a testing matrix for github workflow to spin up one job for each group of tests Increase timeout to fix some flaky tests (cherry picked from commit 24180bb)




Motivation
KoP test is too slow, and there are couple of test very flaky and always timeout.
Modifications
Parallelize KoP uni tests with multiple jobs after regroup the tests into corresponding packages
Add a testing matrix for github workflow to spin up one job for each group of tests
Increase timeout to fix some flaky tests
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Documentation
Check the box below.
Need to update docs?
doc-required(If you need help on updating docs, create a doc issue)
no-need-doc(Please explain why)
doc(If this PR contains doc changes)