Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: artemis random test failures #2802

Open
stevenh opened this issue Sep 26, 2024 · 1 comment
Open

[Bug]: artemis random test failures #2802

stevenh opened this issue Sep 26, 2024 · 1 comment
Labels
bug An issue with the library

Comments

@stevenh
Copy link
Collaborator

stevenh commented Sep 26, 2024

Testcontainers version

head

Using the latest Testcontainers version?

Yes

Host OS

N/A

Host arch

N/A

Go version

N/A

Docker version

N/A

Docker info

N/A

What happened?

Tests are randomly failing

Relevant log output

FAIL TestArtemis/WithCredentials (4.94s)
  2024/09/26 16:42:35 🐳 Creating container for image docker.io/apache/activemq-artemis:2.30.0-alpine
  2024/09/26 16:42:35 ✅ Container created: 9b972e4d34b1
  2024/09/26 16:42:35 🐳 Starting container: 9b972e4d34b1
  2024/09/26 16:42:35 ✅ Container started: 9b972e4d34b1
  2024/09/26 16:42:35 ⏳ Waiting for container id 9b972e4d34b1 image: docker.io/apache/activemq-artemis:2.30.0-alpine. Waiting for: &{timeout:<nil> deadline:<nil> Strategies:[0xc0002bc870 0xc0002bc8a0]}
  2024/09/26 16:42:39 🔔 Container is ready: 9b972e4d34b1
      artemis_test.go:100: 
          	Error Trace:	/home/runner/work/testcontainers-go/testcontainers-go/modules/artemis/artemis_test.go:100
          	Error:      	Received unexpected error:
          	            	invalid command
          	Test:       	TestArtemis/WithCredentials
          	Messages:   	failed to connect
  2024/09/26 16:42:39 🐳 Stopping container: 9b972e4d34b1
  2024/09/26 16:42:40 ✅ Container stopped: 9b972e4d34b1
  2024/09/26 16:42:40 🐳 Terminating container: 9b972e4d34b1
  2024/09/26 16:42:40 🚫 Container terminated: 9b972e4d34b1

-----
FAIL TestArtemis/WithAnonymous (5.02s)
  2024/09/26 16:42:40 🐳 Creating container for image docker.io/apache/activemq-artemis:2.30.0-alpine
  2024/09/26 16:42:40 ✅ Container created: f465d5396d64
  2024/09/26 16:42:40 🐳 Starting container: f465d5396d64
  2024/09/26 16:42:40 ✅ Container started: f465d5396d64
  2024/09/26 16:42:40 ⏳ Waiting for container id f465d5396d64 image: docker.io/apache/activemq-artemis:2.30.0-alpine. Waiting for: &{timeout:<nil> deadline:<nil> Strategies:[0xc00021fcb0 0xc00021fce0]}
  2024/09/26 16:42:44 🔔 Container is ready: f465d5396d64
      artemis_test.go:100: 
          	Error Trace:	/home/runner/work/testcontainers-go/testcontainers-go/modules/artemis/artemis_test.go:100
          	Error:      	Received unexpected error:
          	            	invalid command
          	Test:       	TestArtemis/WithAnonymous
          	Messages:   	failed to connect
  2024/09/26 16:42:44 🐳 Stopping container: f465d5396d64
  2024/09/26 16:42:45 ✅ Container stopped: f465d5396d64
  2024/09/26 16:42:45 🐳 Terminating container: f465d5396d64
  2024/09/26 16:42:45 🚫 Container terminated: f465d5396d64
----
ExampleRun (re-run 5) (5.09s)
=== RUN   ExampleRun
2024/09/26 16:44:49 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: 15990 MB
  Testcontainers for Go Version: v0.34.0
  Resolved Docker Host: unix:///var/run/docker.sock
  Resolved Docker Socket Path: /var/run/docker.sock
  Test SessionID: 22112d789bc8ff4885c5084550a074287a136654ce8c0d9ed35c65e33c0e262b
  Test ProcessID: b3d49fd1-098c-4b85-8d61-7f4bebd792db
2024/09/26 16:44:49 🐳 Creating container for image testcontainers/ryuk:0.9.0
2024/09/26 16:44:49 ✅ Container created: 8d761209255e
2024/09/26 16:44:49 🐳 Starting container: 8d761209255e
2024/09/26 16:44:49 ✅ Container started: 8d761209255e
2024/09/26 16:44:49 ⏳ Waiting for container id 8d761209255e image: testcontainers/ryuk:0.9.0. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms skipInternalCheck:false}
2024/09/26 16:44:49 🔔 Container is ready: 8d761209255e
2024/09/26 16:44:49 🐳 Creating container for image docker.io/apache/activemq-artemis:2.30.0
2024/09/26 16:44:49 ✅ Container created: e8b296507f2a
2024/09/26 16:44:49 🐳 Starting container: e8b296507f2a
2024/09/26 16:44:50 ✅ Container started: e8b296507f2a
2024/09/26 16:44:50 ⏳ Waiting for container id e8b296507f2a image: docker.io/apache/activemq-artemis:2.30.0. Waiting for: &{timeout:<nil> deadline:<nil> Strategies:[0xc0003af950 0xc0003af980]}
2024/09/26 16:44:53 🔔 Container is ready: e8b296507f2a
2024/09/26 16:44:54 failed to connect to Artemis: invalid command
2024/09/26 16:44:54 🐳 Stopping container: e8b296507f2a
2024/09/26 16:44:54 ✅ Container stopped: e8b296507f2a
2024/09/26 16:44:54 🐳 Terminating container: e8b296507f2a
2024/09/26 16:44:54 🚫 Container terminated: e8b296507f2a
got:
true
want:
true
test:test

DONE 6 runs, 41 tests, 40 failures in 150.509s

Additional information

No response

@stevenh stevenh added the bug An issue with the library label Sep 26, 2024
@mdelapenya
Copy link
Member

Woops! It's the first time I see them fail. Thanks for reporting it 🙏 I'll monitor the builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

No branches or pull requests

2 participants