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

Move to google.golang.org/protobuf #2694

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

piochelepiotr
Copy link
Collaborator

@piochelepiotr piochelepiotr commented May 14, 2024

What does this PR do?

Stop using deprecated library for Protobuf (github.com/golang/protobuf/proto)

Motivation

Follow up to #1136

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.

Unsure? Have a question? Request a review!

@piochelepiotr piochelepiotr requested a review from a team as a code owner May 14, 2024 18:54
Copy link
Member

@felixge felixge left a comment

Choose a reason for hiding this comment

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

LGTM, but the CI failure needs to be fixed before merging.

Also needs a DSM member to approve.

@pr-commenter
Copy link

pr-commenter bot commented May 14, 2024

Benchmarks

Benchmark execution time: 2024-05-14 19:26:25

Comparing candidate commit ab3f642 in PR branch piotr-wolski/update-protobuf with baseline commit 63ae20f in branch main.

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

@@ -36,7 +36,6 @@ github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+Licev
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
Copy link
Member

Choose a reason for hiding this comment

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

Why are the older version entries still in here?

Copy link
Contributor

@darccio darccio May 15, 2024

Choose a reason for hiding this comment

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

@felixge It seems that running go mod tidy doesn't remove them. It seems to be a transitive dependency from github.com/DataDog/sketches-go/ddsketch:

❯ go mod why -m github.com/golang/protobuf
# github.com/golang/protobuf
github.com/DataDog/dd-trace-go/internal/apps
gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer
github.com/DataDog/sketches-go/ddsketch
github.com/DataDog/sketches-go/ddsketch.test
github.com/golang/protobuf/proto

@darccio darccio merged commit dfa02a3 into main May 15, 2024
200 checks passed
@darccio darccio deleted the piotr-wolski/update-protobuf branch May 15, 2024 14:57
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.

None yet

4 participants