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

go.mod: module go.opentelemetry.io/collector/pdata@latest found (v1.21.0), but does not contain package go.opentelemetry.io/collector/pdata/internal/data/protogen/profiles/v1experimental #3042

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

eliottness
Copy link
Contributor

What does this PR do?

This PR exist because of errors in the CI like this one

To sum things up, 1 OTel dependency has a breaking change and an other OTel dependency is breaking because of it. And on top of that, for some reason, go get -u upgrades only one of them and not the other which ends up breaking go mod tidy.

The dependency with the faulty go.mod should be github.com/DataDog/datadog-agent/pkg/trace.

To counter all of that, we should be able to simply transform the dependency breaking into a non-transitive dependency do take complete control over it and supersede the minimum version declared in the faulty go.mod

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.
  • For internal contributors, a matching PR should be created to the v2-dev branch and reviewed by @DataDog/apm-go.

Unsure? Have a question? Request a review!

Signed-off-by: Eliott Bouhana <[email protected]>
@eliottness eliottness marked this pull request as ready for review December 17, 2024 10:42
@eliottness eliottness requested review from a team as code owners December 17, 2024 10:42
@datadog-datadog-prod-us1
Copy link

Datadog Report

Branch report: eliottness/fix-go-get-v1
Commit report: b19dd9f
Test service: dd-trace-go

✅ 0 Failed, 5112 Passed, 70 Skipped, 2m 54.23s Total Time

@pr-commenter
Copy link

pr-commenter bot commented Dec 17, 2024

Benchmarks

Benchmark execution time: 2024-12-17 11:21:37

Comparing candidate commit 2a9aa50 in PR branch eliottness/fix-go-get-v1 with baseline commit 5a8a82c in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics.

@darccio darccio merged commit cd21985 into main Dec 17, 2024
180 of 181 checks passed
@darccio darccio deleted the eliottness/fix-go-get-v1 branch December 17, 2024 13:10
@darccio
Copy link
Member

darccio commented Dec 17, 2024

@RomainMuller I'd recommend to cherry-pick this into v1.71.0 release branch cc @eliottness

darccio pushed a commit that referenced this pull request Dec 17, 2024
…1.0), but does not contain package go.opentelemetry.io/collector/pdata/internal/data/protogen/profiles/v1experimental (#3042)

Signed-off-by: Eliott Bouhana <[email protected]>
@rosti-il
Copy link

Hi. Could you release 1.70.2 with this fix as well?

@darccio
Copy link
Member

darccio commented Dec 18, 2024

@rosti-il We are close to release v1.71.0 but I leave the decision to this month's release manager @RomainMuller

PS: you can fix it locally by applying the same "blank import" pattern we did in our tracer.

RomainMuller pushed a commit that referenced this pull request Dec 18, 2024
…1.0), but does not contain package go.opentelemetry.io/collector/pdata/internal/data/protogen/profiles/v1experimental (#3042)

Signed-off-by: Eliott Bouhana <[email protected]>
@RomainMuller
Copy link
Contributor

I confirm this will be rolled into v1.71.x

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.

4 participants