Flaky JWKSource tests fail intermittently
JWKSourceUnknownKeysTest.testMultiThreadedKnownAndUnknownKeys:212 expected:<8> but was:<10>
With a Java 17, a lot.
Comments (12)
-
reporter -
reporter JWKSourceUnknownKeysTest.testMultiThreadedKnownAndUnknownKeys:212 expected:<8> but was:<11>
With the configured Bitbucket pipeline
-
Perhaps the
Thread.sleep(1000)
inrunForDuration(..)
is a bit long when the cache timings are 2 or 3 seconds? -
If the tests just run for too long, perhaps because starting all the threads take more time on the CI server, then it might be an idea to time the actual run time and adjust the
assertEquals
. -
Merged PR on behalf, we have a green light here:
https://bitbucket.org/connect2id/nimbus-jose-jwt/pipelines/results/190
-
At least it did not get any worse
Were you able to trigger the build multiple times (to check if still flaky)? -
Red light from a run just now:
https://bitbucket.org/connect2id/nimbus-jose-jwt/pipelines/results/191
Is it a good idea to make the test run in loop several times and break when it passes?
-
Sure, that is a good plan. The main point of the tests is not the run time itself, but that multithreading works as expected.
-
-
Still fails.
-
Are you able to trigger the build repeatedly? Now one test fails, would be interesting to see whether both still fail.
-
reporter - changed status to resolved
Builds no longer seem to suffer from this, closing as resolved :)
- Log in to comment
With the configured Bitbucket pipeline