GoogleCloudPlatform / GoogleCloudPlatform/pgadapter

Flaky Test: CopyInMockServerTest.testCopyInBatchPsqlWithError

Open
#4,763 0 comments 0 reactions 0 assignees View on GitHub
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 #4762.

**Failed Test:** `CopyInMockServerTest.testCopyInBatchPsqlWithError`
**Failure Summary:** CopyInMockServerTest.testCopyInBatchPsqlWithError failed due to a test timeout after 30 seconds
**Workflow Run:** https://github.com/GoogleCloudPlatform/pgadapter/actions/runs/32220696957

**Log Excerpt:**
```text
m.google.cloud.spanner.pgadapter.SessionPoolSettingsTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.5039929Z [INFO] Running com.google.cloud.spanner.pgadapter.EmulatedPsqlMockServerTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8301736Z [WARNING] Tests run: 12, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.323 s -- in com.google.cloud.spanner.pgadapter.EmulatedPsqlMockServerTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8328586Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.NoticeResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8363732Z [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.NoticeResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8414376Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.CloseResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8438384Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.CloseResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8467967Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.CopyInResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8469866Z [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.CopyInResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8509586Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.StartupMessageResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8511709Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.StartupMessageResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8513489Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.RowDescriptionTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8515381Z [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.wireoutput.RowDescriptionTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8517295Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.AcceptSSLResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8519228Z [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in com.google.cloud.spanner.pgadapter.wireoutput.AcceptSSLResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:58.8520936Z [INFO] Running com.google.cloud.spanner.pgadapter.wireoutput.ErrorResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:59.8319364Z [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.980 s -- in com.google.cloud.spanner.pgadapter.wireoutput.ErrorResponseTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:56:59.8321201Z [INFO] Running com.google.cloud.spanner.pgadapter.SSLMockServerTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4007908Z [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.566 s -- in com.google.cloud.spanner.pgadapter.SSLMockServerTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4019434Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.MutationWriterTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4178923Z [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s -- in com.google.cloud.spanner.pgadapter.utils.MutationWriterTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4180735Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.BinaryCopyParserTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4282767Z [INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s -- in com.google.cloud.spanner.pgadapter.utils.BinaryCopyParserTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4291407Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.CopyInParserTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4319240Z [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.utils.CopyInParserTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4339183Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.StatementParserTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4341096Z [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.utils.StatementParserTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4343069Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.RegexQueryPartReplacerTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4344950Z [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.google.cloud.spanner.pgadapter.utils.RegexQueryPartReplacerTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4349174Z [INFO] Running com.google.cloud.spanner.pgadapter.utils.CopyDataReceiverTest
ubuntu (8) UNKNOWN STEP 2026-08-19T05:57:00.4401278Z [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s -- in com.google.cloud.spanner.pgadapter.utils.
```

This issue was automatically created by the dependency reviewer bot.

Contributor guide

Open the contributing guide

Research direction

Start by locating CopyInMockServerTest.testCopyInBatchPsqlWithError in the Java test sources and reproduce the 30-second timeout using the linked workflow run as context. Trace the cause of the flaky timeout and verify that the test completes reliably while preserving its intended error behavior.

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
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.