Skip to content

Fix: update go.mod to ensure contrib tests pass after TLS validation #40446

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gupta-nu
Copy link

@gupta-nu gupta-nu commented Jun 3, 2025

Description

This PR updates the go.mod file to reference the latest commit from the core OpenTelemetry Collector that includes the new TLS certificate/key validation logic.

The validation introduced in open-telemetry/opentelemetry-collector#13134 causes some contrib components to fail tests due to missing or invalid TLS config. By aligning the go.mod, we ensure contrib is compatible with the updated validation rules.

Link to tracking issue

Related to open-telemetry/opentelemetry-collector#13134

Testing

Ran go test ./... in the relevant receivers (e.g. otlpjsonfilereceiver) to ensure tests pass with the updated validation logic.

Documentation

No new documentation was added.

@dmathieu
Copy link
Member

dmathieu commented Jun 3, 2025

Reference to failing tests on the collector: https://github.com/open-telemetry/opentelemetry-collector/actions/runs/15413949821/job/43372738556?pr=13134

I don't think this is the proper solution. There are tests in this repository that don't properly configure the TLS configuration. This is what should be fixed.

@@ -16,3 +16,5 @@ retract (
v0.65.0
v0.37.0 // Contains dependencies on v0.36.0 components, which should have been updated to v0.37.0.
)

replace github.com/open-telemetry/opentelemetry-collector => ../opentelemetry-collector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're saying the failing tests should be modified in that PR updating the collector core dependencies?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes since #40452 brings the latest core collector changes (including the breaking changes)

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

Successfully merging this pull request may close these issues.

5 participants