testcontainers-go
testcontainers-go copied to clipboard
[Bug]: random failures of couchbase tests
Testcontainers version
aceb707
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
AMD64
Go version
1.23.2
Docker version
N/A
Docker info
N/A
What happened?
Tests randomly fail in CI
Relevant log output
FAIL TestCouchbaseWithCommunityContainer (80.47s)
2024/11/07 14:09:48 github.com/testcontainers/testcontainers-go - Connected to docker:
Server Version: 26.1.3
API Version: 1.45
Operating System: Ubuntu 22.04.5 LTS
Total Memory: 15981 MB
Testcontainers for Go Version: v0.35.0
Resolved Docker Host: unix:///var/run/docker.sock
Resolved Docker Socket Path: /var/run/docker.sock
Test SessionID: a3abb261ccb71eab2f74b850d5a7a1d189a2cabd9bd770e60c83982a30c3ff3f
Test ProcessID: a8895753-9dd1-4d62-b72c-e4c13ba0237f
2024/11/07 14:09:59 🐳 Creating container for image couchbase:community-7.1.1
2024/11/07 14:10:00 🐳 Creating container for image testcontainers/ryuk:0.11.0
2024/11/07 14:10:00 ✅ Container created: 75806fbbd3ff
2024/11/07 14:10:00 🐳 Starting container: 75806fbbd3ff
2024/11/07 14:10:00 ✅ Container started: 75806fbbd3ff
2024/11/07 14:10:00 ⏳ Waiting for container id 75806fbbd3ff image: testcontainers/ryuk:0.11.0. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms skipInternalCheck:false}
2024/11/07 14:10:00 🔔 Container is ready: 75806fbbd3ff
2024/11/07 14:10:00 ✅ Container created: 4356f38715d1
2024/11/07 14:10:00 🐳 Starting container: 4356f38715d1
2024/11/07 14:10:00 ✅ Container started: 4356f38715d1
2024/11/07 14:10:00 🔔 Container is ready: 4356f38715d1
couchbase_test.go:36:
Error Trace: /home/runner/work/testcontainers-go/testcontainers-go/modules/couchbase/couchbase_test.go:36
Error: Received unexpected error:
init cluster: context deadline exceeded
Test: TestCouchbaseWithCommunityContainer
2024/11/07 14:11:07 🐳 Stopping container: 4356f38715d1
2024/11/07 14:11:08 ✅ Container stopped: 4356f38715d1
2024/11/07 14:11:08 🐳 Terminating container: 4356f38715d1
2024/11/07 14:11:08 🚫 Container terminated: 4356f38715d1
FAIL TestCouchbaseWithEnterpriseContainer (89.77s)
FAIL TestWithCredentials (67.29s)
2024/11/07 14:12:38 🐳 Creating container for image couchbase:community-7.1.1
2024/11/07 14:12:38 ✅ Container created: be1e55bb23d5
2024/11/07 14:12:38 🐳 Starting container: be1e55bb23d5
2024/11/07 14:12:38 ✅ Container started: be1e55bb23d5
2024/11/07 14:12:38 🔔 Container is ready: be1e55bb23d5
couchbase_test.go:76:
Error Trace: /home/runner/work/testcontainers-go/testcontainers-go/modules/couchbase/couchbase_test.go:76
Error: Received unexpected error:
init cluster: context deadline exceeded
Test: TestWithCredentials
2024/11/07 14:13:44 🐳 Stopping container: be1e55bb23d5
2024/11/07 14:13:45 ✅ Container stopped: be1e55bb23d5
2024/11/07 14:13:45 🐳 Terminating container: be1e55bb23d5
2024/11/07 14:13:45 🚫 Container terminated: be1e55bb23d5
2024/11/07 14:11:26 🐳 Creating container for image couchbase:enterprise-7.6.1
2024/11/07 14:11:26 🐳 Stopping container: 75806fbbd3ff
2024/11/07 14:11:26 🐳 Terminating container: 75806fbbd3ff
2024/11/07 14:11:26 🚫 Container terminated: 75806fbbd3ff
2024/11/07 14:11:26 🐳 Creating container for image testcontainers/ryuk:0.11.0
2024/11/07 14:11:26 ✅ Container created: 7816e42cb8b5
2024/11/07 14:11:26 🐳 Starting container: 7816e42cb8b5
2024/11/07 14:11:27 ✅ Container started: 7816e42cb8b5
2024/11/07 14:11:27 ⏳ Waiting for container id 7816e42cb8b5 image: testcontainers/ryuk:0.11.0. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms skipInternalCheck:false}
2024/11/07 14:11:27 🔔 Container is ready: 7816e42cb8b5
2024/11/07 14:11:27 ✅ Container created: 9e6be86fcda7
2024/11/07 14:11:27 🐳 Starting container: 9e6be86fcda7
2024/11/07 14:11:27 ✅ Container started: 9e6be86fcda7
2024/11/07 14:11:27 🔔 Container is ready: 9e6be86fcda7
couchbase_test.go:59:
Error Trace: /home/runner/work/testcontainers-go/testcontainers-go/modules/couchbase/couchbase_test.go:59
Error: Received unexpected error:
init cluster: context deadline exceeded
Test: TestCouchbaseWithEnterpriseContainer
2024/11/07 14:12:36 🐳 Stopping container: 9e6be86fcda7
2024/11/07 14:12:38 ✅ Container stopped: 9e6be86fcda7
2024/11/07 14:12:38 🐳 Terminating container: 9e6be86fcda7
2024/11/07 14:12:38 🚫 Container terminated: 9e6be86fcda7
FAIL TestCouchbaseWithCommunityContainer (re-run 2) (30.72s)
2024/11/07 14:19:38 github.com/testcontainers/testcontainers-go - Connected to docker:
Server Version: 26.1.3
API Version: 1.45
Operating System: Ubuntu 22.04.5 LTS
Total Memory: 15981 MB
Testcontainers for Go Version: v0.35.0
Resolved Docker Host: unix:///var/run/docker.sock
Resolved Docker Socket Path: /var/run/docker.sock
Test SessionID: 54dc8c49b2f290e971cf9c27fed835880aaa26fe9d916fe4b002905c66819bc3
Test ProcessID: 5d883074-dce5-4870-8311-e08be4dfc249
2024/11/07 14:19:38 🐳 Creating container for image couchbase:community-7.1.1
2024/11/07 14:19:38 🐳 Creating container for image testcontainers/ryuk:0.11.0
2024/11/07 14:19:38 ✅ Container created: 7a9ff9a9415b
2024/11/07 14:19:38 🐳 Starting container: 7a9ff9a9415b
2024/11/07 14:19:38 ✅ Container started: 7a9ff9a9415b
2024/11/07 14:19:38 ⏳ Waiting for container id 7a9ff9a9415b image: testcontainers/ryuk:0.11.0. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms skipInternalCheck:false}
2024/11/07 14:19:38 🔔 Container is ready: 7a9ff9a9415b
2024/11/07 14:19:38 ✅ Container created: 7ba849944555
2024/11/07 14:19:38 🐳 Starting container: 7ba849944555
2024/11/07 14:19:38 ✅ Container started: 7ba849944555
2024/11/07 14:19:38 🔔 Container is ready: 7ba849944555
couchbase_test.go:42:
Error Trace: /home/runner/work/testcontainers-go/testcontainers-go/modules/couchbase/couchbase_test.go:118
/home/runner/work/testcontainers-go/testcontainers-go/modules/couchbase/couchbase_test.go:42
Error: Received unexpected error:
unambiguous timeout | {"InnerError":{"InnerError":{"InnerError":{},"Message":"unambiguous timeout"}},"OperationID":"WaitUntilReady","Opaque":"","TimeObserved":5000289338,"RetryReasons":["NOT_READY","CONNECTION_ERROR"],"RetryAttempts":18,"LastDispatchedTo":"","LastDispatchedFrom":"","LastConnectionID":""}
Test: TestCouchbaseWithCommunityContainer
Messages: could not connect bucket
2024/11/07 14:20:08 🐳 Stopping container: 7ba849944555
2024/11/07 14:20:08 ✅ Container stopped: 7ba849944555
2024/11/07 14:20:08 🐳 Terminating container: 7ba849944555
2024/11/07 14:20:08 🚫 Container terminated: 7ba849944555
Additional information
No response