GoogleCloudPlatform / GoogleCloudPlatform/pgadapter
Flaky Test: com.google.cloud.spanner.pgadapter.CopyInMockServerTest.testCopyInBatchPsqlWithError
- Dominant language
- Java
- Stars
- 91
- Forks
- 33
- Avg merge
- 3d 57m
- Merged PRs (30d)
- 58
Description
The automated dependency reviewer bot detected a flaky test failure in PR #4759.
**Failed Test:** `com.google.cloud.spanner.pgadapter.CopyInMockServerTest.testCopyInBatchPsqlWithError`
**Failure Summary:** Test timed out after 30 seconds on ubuntu (21) while passing on all other platforms.
**Workflow Run:** https://github.com/GoogleCloudPlatform/pgadapter/actions/runs/32220656175
**Log Excerpt:**
```text
) UNKNOWN STEP 2026-08-19T05:56:23.8361357Z [WARNING] Tests run: 12, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.279 s -- in com.google.cloud.spanner.pgadapter.EmulatedPsqlMockServerTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8390399Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.NoticeResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8421133Z [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in com.google.cloud.spanner.pgadapter.wireoutput.NoticeResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8450200Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.CloseResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8451980Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.CloseResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8510226Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.CopyInResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8521031Z [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in com.google.cloud.spanner.pgadapter.wireoutput.CopyInResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8522704Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.StartupMessageResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8524589Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.StartupMessageResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8569973Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.RowDescriptionTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8591537Z [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.RowDescriptionTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8593172Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.AcceptSSLResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8594622Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.AcceptSSLResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:23.8595602Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.ErrorResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.3671562Z [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.512 s -- in com.google.cloud.spanner.pgadapter.wireoutput.ErrorResponseTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.3673109Z [INFO] Running com.google.cloud.spanner.pgadapter.SSLMockServerTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.7817958Z [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.413 s -- in com.google.cloud.spanner.pgadapter.SSLMockServerTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.7818922Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.MutationWriterTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8041972Z [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s -- in com.google.cloud.spanner.pgadapter.utils.MutationWriterTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8070180Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.BinaryCopyParserTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8071906Z [INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.utils.BinaryCopyParserTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8123973Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.CopyInParserTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8180794Z [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.utils.CopyInParserTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8252692Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.StatementParserTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8311153Z ##[error]Exception in thread "Thread-1938" java.lang.RuntimeException: java.io.IOException: Pipe closed
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8313813Z [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in com.google.cloud.spanner.pgadapter.utils.StatementParserTest
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8340490Z at com.google.cloud.spanner.pgadapter.utils.CsvCopyParserTest.lambda$testCanCreateIteratorWithHeader$0(CsvCopyParserTest.java:73)
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8360788Z at java.base/java.lang.Thread.run(Thread.java:1583)
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8361558Z Caused by: java.io.IOException: Pipe closed
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8362522Z at java.base/java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:266)
ubuntu (21) UNKNOWN STEP 2026-08-19T05:56:25.8363683Z at java.base/java.io.PipedInputStream.receive(PipedInputStream.java:232
```
This issue was automatically created by the dependency reviewer bot.
Contributor guide
Research direction
Start with CopyInMockServerTest.testCopyInBatchPsqlWithError and reproduce the failure using the Ubuntu 21 workflow run and its log excerpt. Trace the 30-second timeout and verify the test completes reliably without the reported failure or related pipe-closed error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, postgresql
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100