Hey folks, question regarding tests. In <this cur...
# general
g
Hey folks, question regarding tests. In this current PR, I'm adding unit tests where each tests takes ~6 seconds due to exponential backoff. When running
:internal:venice-common:test --tests "com.linkedin.venice.utils.TestHelixUtils"
, the tests run sequentially, which takes some time. I was wondering if you knew of any way to run multiple tests in parallel. I remember that
./gradlew check --continue
would spawn x threads when running the full suite, and thought perhaps I would be able to do the same thing here, or similar. Thanks! EDIT: it doesn't actually take that long, but thought it might be helpful to know in the future.
k
Try adding the
--parallel
flag.
👍 1
f
Certainly try but probably don’t commit that 😅 … Gradle’s
—parallel
caused lots of instability last time I tried it.
We control parallelism at another level. I would say: don’t worry about it. Every once in a while, we re-tune the parallelism settings while looking holistically at the whole suite.
👍 1
g
So
--parallel
does work, but indeed the behavior seems kind of shaky (only logs one test at a time, and only updates in Intellij how many tests have passed when a new test starts, so it sometimes makes jumps from 6 -> 7 or 9 -> 12 for example).
Won't worry too much about it, like Felix suggested Thanks!