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

[flaky test][exporter/httpforwarder] TestComponentLifecycle is flaky #37716

Closed
pjanotti opened this issue Feb 5, 2025 · 1 comment · Fixed by #37735
Closed

[flaky test][exporter/httpforwarder] TestComponentLifecycle is flaky #37716

pjanotti opened this issue Feb 5, 2025 · 1 comment · Fixed by #37735

Comments

@pjanotti
Copy link
Contributor

pjanotti commented Feb 5, 2025

Component(s)

extension/httpforwarder

Describe the issue you're reporting

Based on similar component lifecycle flaky tests a reasonable guess is that the port used in the test is being used by multiple tests and it is not being properly released due to some race during shutdown.

https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13123874574/job/36615999506#step:8:185

=== FAIL: . TestComponentLifecycle/lifecycle (0.00s)
    generated_component_test.go:46: 
        	Error Trace:	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/extension/httpforwarderextension/generated_component_test.go:46
        	Error:      	Received unexpected error:
        	            	failed to bind to address localhost:7070: listen tcp 127.0.0.1:7070: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
        	Test:       	TestComponentLifecycle/lifecycle

=== FAIL: . TestComponentLifecycle (0.00s)

=== FAIL: . TestComponentLifecycle/lifecycle (re-run 1) (0.01s)
    generated_component_test.go:46: 
        	Error Trace:	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/extension/httpforwarderextension/generated_component_test.go:46
        	Error:      	Received unexpected error:
        	            	failed to bind to address localhost:7070: listen tcp 127.0.0.1:7070: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
        	Test:       	TestComponentLifecycle/lifecycle

=== FAIL: . TestComponentLifecycle (re-run 1) (0.01s)
@pjanotti pjanotti added the flaky test a test is flaky label Feb 5, 2025
Copy link
Contributor

github-actions bot commented Feb 5, 2025

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant