Commit 53ca127
committed
[test] Fix 30+ flaky tests across multiple modules
Test-only changes to fix flaky tests. No production behavior changes.
Root cause categories fixed:
- AsyncGauge shared executor: use dedicated MetricsRepositoryUtils executor
- Missing volatile on cross-thread test fields
- Utils.sleep() before assertions: replaced with
waitForNonDeterministicAssertion
- replicationFactor=2 with few servers: reduced to RF=1 where replication
isn't tested
- Version not waited in all regions: wait in ALL DCs before proceeding
- Static DaVinci singleton leak across data provider iterations: @AfterMethod
cleanup
- Fragile exception message assertions: assert on type not message text
- Accumulate poll results instead of expecting all in single poll
- Try-finally for test resource cleanup (executor/MetricsRepository)
- Topic cleanup interval too aggressive for multi-region tests
- Router not yet discovered store version: wrap reads in
waitForNonDeterministicAssertion
- Mockito inline mock maker for final gRPC classes1 parent fcaa09c commit 53ca127
83 files changed
Lines changed: 876 additions & 465 deletions
File tree
- clients
- da-vinci-client/src
- main/java/com/linkedin/davinci/client
- test/java/com/linkedin/davinci
- consumer
- kafka/consumer
- repository
- stats
- venice-client/src/test
- java/com/linkedin/venice/fastclient
- meta
- resources/mockito-extensions
- venice-producer/src/test/java/com/linkedin/venice/producer
- online
- internal
- alpini/common/alpini-common-base/src/test/java/com/linkedin/alpini/base/registry
- venice-client-common/src/test/java/com/linkedin/venice/stats
- routing
- venice-common/src/test/java/com/linkedin/venice
- meta
- pubsub
- adapter/kafka/consumer
- manager
- venice-test-common/src/integrationTest/java/com/linkedin
- davinci/notifier
- venice
- client/store
- consumer
- controller
- multitaskscheduler
- endToEnd
- fastclient
- integration/utils
- pubsub/adapter/kafka/producer
- router
- storagenode
- services
- venice-controller/src/test/java/com/linkedin/venice/controller
- kafka/consumer
- lingeringjob
- stats
- venice-router/src/test/java/com/linkedin/venice/router
- venice-server/src/test/java/com/linkedin/venice
- cleaner
- listener
- stats
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
899 | 911 | | |
900 | 912 | | |
901 | 913 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
472 | | - | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
796 | | - | |
| 797 | + | |
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
| |||
805 | 806 | | |
806 | 807 | | |
807 | 808 | | |
808 | | - | |
| 809 | + | |
809 | 810 | | |
810 | 811 | | |
811 | 812 | | |
| |||
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
820 | | - | |
| 821 | + | |
821 | 822 | | |
822 | 823 | | |
823 | 824 | | |
| |||
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| |||
0 commit comments