GoogleCloudPlatform / GoogleCloudPlatform/pgadapter
Flaky Test: TestRunSample
- 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 #4854.
**Failed Test:** `TestRunSample`
**Failure Summary:** TestRunSample failed because PGAdapter could not connect to the Spanner emulator at localhost:9010
**Workflow Run:** https://github.com/GoogleCloudPlatform/pgadapter/actions/runs/34136418460
**Log Excerpt:**
```text
26-09-07T15:05:20.3189205Z CGO_ENABLED='1'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3189392Z CGO_FFLAGS='-O2 -g'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3189592Z CGO_LDFLAGS='-O2 -g'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3189783Z CXX='g++'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3189954Z GCCGO='gccgo'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3190143Z GO111MODULE=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3190696Z GOARCH='arm64'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3191066Z GOARM64='v8.0'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3191267Z GOAUTH='netrc'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3191487Z GOBIN='/home/runner/go/bin'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3191872Z GOCACHE='/home/runner/.cache/go-build'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3192263Z GOCACHEPROG=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3192633Z GODEBUG=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3193002Z GOENV='/home/runner/.config/go/env'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3193381Z GOEXE=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3193875Z GOEXPERIMENT=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3194211Z GOFIPS140='off'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3194422Z GOFLAGS=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3195050Z GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1373674401=/tmp/go-build -gno-record-gcc-switches'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3195820Z GOHOSTARCH='arm64'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3196017Z GOHOSTOS='linux'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3196289Z GOINSECURE=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3196619Z GOMOD='/dev/null'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3196957Z GOMODCACHE='/home/runner/go/pkg/mod'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3197301Z GONOPROXY=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3197576Z GONOSUMDB=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3197844Z GOOS='linux'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3198119Z GOPACKAGESDRIVER=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3198411Z GOPATH='/home/runner/go'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3198704Z GOPRIVATE=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3199068Z GOPROXY='https://proxy.golang.org,direct'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3199484Z GOROOT='/opt/hostedtoolcache/go/1.27.1/arm64'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3199850Z GOSUMDB='sum.golang.org'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3200154Z GOTELEMETRY='local'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3200501Z GOTELEMETRYDIR='/home/runner/.config/go/telemetry'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3200876Z GOTMPDIR=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3201617Z GOTOOLCHAIN='local'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3202082Z GOTOOLDIR='/opt/hostedtoolcache/go/1.27.1/arm64/pkg/tool/linux_arm64'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3202565Z GOVCS=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3202905Z GOVERSION='go1.27.1'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3203225Z GOWORK=''
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3203503Z PKG_CONFIG='pkg-config'
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3203925Z
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3204635Z ##[endgroup]
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3348415Z ##[group]Run go version
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3348745Z ^[[36;1mgo version^[[0m
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3465349Z shell: /usr/bin/bash -e {0}
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3465630Z env:
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3465820Z GOTOOLCHAIN: local
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3466007Z ##[endgroup]
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3597993Z go version go1.27.1 linux/arm64
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3637170Z ##[group]Run go test
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3637479Z ^[[36;1mgo test^[[0m
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3678953Z shell: /usr/bin/bash -e {0}
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3679193Z env:
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3679387Z GOTOOLCHAIN: local
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3679576Z ##[endgroup]
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3789724Z go: downloading github.com/GoogleCloudPlatform/pgadapter/wrappers/golang v0.55.2
go-samples UNKNOWN STEP 2026-09-07T15:05:20.3809135Z go: downloading github.com/jackc/pgx/v5 v5.10.0
go-samples UNKNOWN STEP 2026-09-07T15:05:20.6494930Z go: downloading github.com/moby/moby/api v1.55.0
go-samples UNKNOWN STEP 2026-09-07T15:05:20.6501660Z go: downloading github.com/testcontainers/testcontainers-go v0.44.0
go-samples UNKNOWN STEP 2026-09-07T15:05:20.7895151Z go: downloading golang.org/x/oauth2 v0.36.0
go-samples UNKNOWN STEP 2026-09-07T15:05:20.9299606Z go: downloading cloud.google.com/go/compute/metadata v0.3.0
go-samples UNKNOWN STEP 2026-09-07T15:05:20.
```
This issue was automatically created by the dependency reviewer bot.
Contributor guide
Research direction
Start by locating the Go test that defines TestRunSample and inspect the workflow run linked in the issue, especially how the Spanner emulator and PGAdapter are started before go test. The work is done when the test no longer intermittently fails to connect to localhost:9010 and the relevant test run passes reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, postgresql
- Domain
- ci-cd, databases, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100