I have been recently testing a couple of Temporal Activities using
TestActivityEnvironment after adding heart-beating to them. Then suddenly, I started seeing irregular failures of those activity calls during test runs on Jenkins. It happened not as frequently, could not be produced locally, and went away after a single or couple of reruns, so I didn’t care much. On my PR from 2 days ago, however, which is completely unrelated to how the Activities run, I started seeing the timeout error happening on 2-3 JUnit tests repeatedly, always erroring out on one (which changes), and happening over 10+ test runs until now.
Since it’s not reproducible locally, I’m not sure if this is caused by how things are setup on the remote Jenkins. But the problem is, it’s always coming off of the
This is the error message I’m repeatedly seeing from different Temporal Activity runs on different tests:
java.lang.RuntimeException at TestActivityEnvironmentInternal.java:376
Caused by: java.util.concurrent.TimeoutException at FutureTask.java:205
Does this look familiar to anyone? Was anyone able to fix this issue?