open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.1k stars 2.39k forks source link

[receiver/snmp] Integration test failure: failed to create container #35226

Open crobert-1 opened 2 months ago

crobert-1 commented 2 months ago

Component(s)

receiver/snmp

Describe the issue you're reporting

Failing CI/CD action link

Failure output:

Running target 'mod-integration-test' in module 'receiver/snmpreceiver' as part of group 'receiver-3'
make --no-print-directory -C receiver/snmpreceiver mod-integration-test
go: downloading github.com/gosnmp/gosnmp v1.38.0
running go integration test ./... in /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/snmpreceiver
/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/.tools/gotestsum --rerun-fails=1 --packages="./..." -- -race -timeout 360s -parallel 4 -tags=integration,""
∅  internal/metadata
∅  internal/mocks
✖  . (1m45.335s)

DONE 237 tests, 1 failure in 109.847s

✖  . (1m40.869s)

=== Failed
=== FAIL: . TestIntegration (105.10s)
2024/09/16 22:34:43 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
  Resolved Docker Host: unix:///var/run/docker.sock
make[2]: *** [../../Makefile.Common:146: mod-integration-test] Error 1
make[1]: *** [Makefile:187: receiver/snmpreceiver] Error 2
make: *** [Makefile:136: gointegration-test] Error 2
  Resolved Docker Socket Path: /var/run/docker.sock
  Test SessionID: 55ab7a591ca155e2e24177b584197ea2cd44ea2de61b8b7fd5fc2e8a069f349f
  Test ProcessID: 03e87bc1-e1d0-427e-963a-1d986dbabbef
2024/09/16 22:34:43 🐳 Creating container for image testcontainers/ryuk:0.7.0
2024/09/16 22:34:43 ✅ Container created: 90faec9473e0
2024/09/16 22:34:43 🐳 Starting container: 90faec9473e0
2024/09/16 22:34:43 ✅ Container started: 90faec9473e0
2024/09/16 22:34:43 🚧 Waiting for container id 90faec9473e0 image: testcontainers/ryuk:0.7.0. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms}
2024/09/16 22:34:43 🔔 Container is ready: 90faec9473e0
2024/09/16 22:36:28 🐳 Creating container for image 
    integration_test.go:107: 
            Error Trace:    /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/snmpreceiver/integration_test.go:107
                                        /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/snmpreceiver/integration_test.go:47
            Error:          Received unexpected error:
                            Error response from daemon: No such image: 05b05414-d9e2-49b6-bf1e-99cd9a23fb12:70c0a[309](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10893052335/job/30227210808?pr=35040#step:5:310)-600a-4619-b1ac-556ef456d82f: failed to create container
            Test:           TestIntegration

=== FAIL: . TestIntegration (re-run 1) (100.82s)
2024/09/16 22:36:29 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
  Resolved Docker Host: unix:///var/run/docker.sock
  Resolved Docker Socket Path: /var/run/docker.sock
  Test SessionID: 99cb92fea54402cf5dc1177d454bc82933808fa78d9ba1eafa46a665f4615675
  Test ProcessID: 0e439bdc-3617-47e8-82ff-dad6d1575a1e
2024/09/16 22:36:29 🐳 Creating container for image testcontainers/ryuk:0.7.0
2024/09/16 22:36:29 ✅ Container created: 10cdeff367c9
2024/09/16 22:36:29 🐳 Starting container: 10cdeff367c9
2024/09/16 22:36:29 ✅ Container started: 10cdeff367c9
2024/09/16 22:36:29 🚧 Waiting for container id 10cdeff367c9 image: testcontainers/ryuk:0.7.0. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms}
2024/09/16 22:36:29 🔔 Container is ready: 10cdeff367c9
2024/09/16 22:38:10 🐳 Creating container for image 
    integration_test.go:107: 
            Error Trace:    /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/snmpreceiver/integration_test.go:107
                                        /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/snmpreceiver/integration_test.go:47
            Error:          Received unexpected error:
                            Error response from daemon: No such image: 9cf85075-7937-4e18-849b-41ab5f438f05:e9c33aa0-f9bc-47a8-879b-45705e88b9c0: failed to create container
            Test:           TestIntegration

DONE 2 runs, 238 tests, 2 failures in 211.943s
make[1]: Leaving directory '/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib'
github-actions[bot] commented 2 months ago

Pinging code owners: