GoogleCloudPlatform / GoogleCloudPlatform/spring-cloud-gcp

LocalSampleAppIntegrationTest is flaky

Open
#3,811 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: bug
Dominant language
Java
Stars
551
Forks
349
Avg merge
1d 13h
Merged PRs (30d)
14

Description

LocalSampleAppIntegrationTest.testSample fails with timeouts

Error: 3:128 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 73.93 s <<< FAILURE! -- in com.example.LocalSampleAppIntegrationTest
Error: 3:128 [ERROR] com.example.LocalSampleAppIntegrationTest.testSample -- Time elapsed: 73.57 s <<< ERROR!
org.awaitility.core.ConditionTimeoutException: Condition with alias 'Started PubSubConfigApplication' didn't complete within 1 minutes because condition with Lambda expression in com.example.LocalSampleAppIntegrationTest was not fulfilled.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1006)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:975)
at com.example.LocalSampleAppIntegrationTest.waitForLogMessage(LocalSampleAppIntegrationTest.java:197)
at com.example.LocalSampleAppIntegrationTest.testSample(LocalSampleAppIntegrationTest.java:95)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Contributor guide

Open the contributing guide

Research direction

Start with LocalSampleAppIntegrationTest.testSample at lines 95 and 197, then inspect the Awaitility condition for the 'Started PubSubConfigApplication' log message. Reproduce the timeout and determine why startup is not observed reliably; done means the integration test completes without intermittent ConditionTimeoutException failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.