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

[receiver/mongodb] Integration tests failure #12981

Closed
atoulme opened this issue Aug 5, 2022 · 6 comments
Closed

[receiver/mongodb] Integration tests failure #12981

atoulme opened this issue Aug 5, 2022 · 6 comments
Assignees
Labels
bug Something isn't working flaky test a test is flaky priority:p2 Medium

Comments

@atoulme
Copy link
Contributor

atoulme commented Aug 5, 2022

Describe the bug
Flaky test.

Steps to reproduce
https://github.com/open-telemetry/opentelemetry-collector-contrib/runs/7685164989?check_suite_focus=true

What did you expect to see?
Passing test

What did you see instead?

=== CONT  TestMongodbIntegration/Running_mongodb_4.0_as_LPU
    integration_test.go:285: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbreceiver/integration_test.go:285
        	            				/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbreceiver/integration_test.go:200
        	Error:      	Received unexpected error:
        	            	Error response from daemon: No such image: 1931373c-eec0-40dd-a127-4d85cf8457c3:677e4494-07cf-4034-b0cd-051a854d949a: failed to create container
        	Test:       	TestMongodbIntegration/Running_mongodb_4.0_as_LPU
=== CONT  TestMongodbIntegration/Running_mongodb_3.0

What version did you use?
latest main

@atoulme atoulme added the bug Something isn't working label Aug 5, 2022
@djaglowski djaglowski changed the title Integration tests failure [receiver/mongodb] Integration tests failure Aug 5, 2022
@djaglowski
Copy link
Member

Looking into this, I noticed that we are running five tests in parallel. Each test runs a separate container, but they all expose the same port. Perhaps we are lucky this works as often as it does.

@JonathanWamsley, is this an issue you could take on?

@djaglowski djaglowski added the priority:p2 Medium label Aug 5, 2022
@JonathanWamsley
Copy link
Contributor

JonathanWamsley commented Aug 6, 2022

Yeah, I can take care of this. @djaglowski

@djaglowski
Copy link
Member

Both failures observed so far appear to be specifically on the Running_mongodb_4.0_as_LPU test.

@JonathanWamsley
Copy link
Contributor

Ok, I'll look to improve the script for Running_mongodb_4.0_as_LPU

@djaglowski
Copy link
Member

Closing based on #13372. If the error reoccurs, this issue should be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky test a test is flaky priority:p2 Medium
Projects
None yet
Development

No branches or pull requests

3 participants