zalando / skipper

An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress
https://opensource.zalando.com/skipper/
Other
3.07k stars 347 forks source link

Flaky TestRedisClient #2682

Open AlexanderYastrebov opened 10 months ago

AlexanderYastrebov commented 10 months ago
--- FAIL: TestRedisClient (1.63s)
    redistest.go:50: Started redis server at localhost:32778 in 597.485911ms
    redistest.go:50: Started redis server at localhost:32779 in 466.614842ms
    --- FAIL: TestRedisClient/With_AddrUpdater (0.06s)
        redisclient_test.go:203: expected no updater call
    redistest.go:57: Stopping redis server at localhost:32779
    redistest.go:57: Stopping redis server at localhost:32778
szuecs commented 10 months ago

This seems also an issue related to testcontainers, instead being on redis client.

2023/11/06 12:05:33 ✅ Container started: c9796a3a5a3f
2023/11/06 12:05:33 🚧 Waiting for container id c9796a3a5a3f image: redis:6-alpine. Waiting for: &{timeout:<nil> Log:* Ready to accept connections IsRegexp:false Occurrence:1 PollInterval:100ms}
2023/11/06 12:05:53 failed accessing container logs: %!w(errdefs.errDeadline={0xc000295ce0})
--- FAIL: TestRedisClientSetAddr (20.03s)
    redistest.go:39: Failed to start redis server: context deadline exceeded: failed to start container
FAIL
noleak: 1 active

goroutine 792 [chan receive]:
github.com/testcontainers/testcontainers-go.(*Reaper).Connect.func1({0xf8c478?, 0xc000074350})
    /go/pkg/mod/github.com/testcontainers/testcontainers-go@v0.25.0/reaper.go:304 +0x74e
created by github.com/testcontainers/testcontainers-go.(*Reaper).Connect in goroutine 756
    /go/pkg/mod/github.com/testcontainers/testcontainers-go@v0.25.0/reaper.go:269 +0x185

Try setting GODEBUG=tracebackancestors=10 (or more), see https://pkg.go.dev/runtime#hdr-Environment_Variables
FAIL    github.com/zalando/skipper/net  40.874s