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

Use google.golang.org/protobuf instead of github.com/gogo/protobuf #99

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

kzys
Copy link
Member

@kzys kzys commented Dec 3, 2021

This change replaces github.com/gogo/protobuf with
google.golang.org/protobuf, except for the code generators.

All proto-encoded structs are now generated from .proto files,
which include ttrpc.Request and ttrpc.Response.

Signed-off-by: Kazuyoshi Kato [email protected]

@kzys kzys force-pushed the bye-gogo branch 9 times, most recently from ed0e1e5 to 7386e40 Compare December 4, 2021 05:33
@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2021

Codecov Report

Merging #99 (6a2ae8d) into main (0247db1) will decrease coverage by 8.45%.
The diff coverage is 26.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
- Coverage   72.52%   64.07%   -8.46%     
==========================================
  Files          11       11              
  Lines         728      899     +171     
==========================================
+ Hits          528      576      +48     
- Misses        158      278     +120     
- Partials       42       45       +3     
Impacted Files Coverage Δ
client.go 79.10% <ø> (+0.49%) ⬆️
codec.go 66.66% <ø> (ø)
services.go 47.36% <ø> (ø)
request.pb.go 26.63% <26.63%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0247db1...6a2ae8d. Read the comment docs.

@kzys kzys force-pushed the bye-gogo branch 5 times, most recently from ca3da6c to 039bd6d Compare December 6, 2021 18:01
@kzys kzys marked this pull request as ready for review December 6, 2021 18:02
@kzys kzys requested review from dmcgowan and stevvooe December 6, 2021 18:02
@kzys
Copy link
Member Author

kzys commented Dec 17, 2021

@dmcgowan @stevvooe Can you take a look? We wouldn't include that in containerd 1.6 though.

@brandond
Copy link

brandond commented Dec 18, 2021

We're looking for this on the K3s side; we need to be able to unpin ttrpc and genproto for #62 (comment) since Kubernetes 1.23+ needs a newer version for custom resource validation via CEL expressions. Really hoping something like this could land in containerd 1.6, or at least be capable of being backported to our forks of 1.6 and/or 1.5.

@kzys kzys force-pushed the bye-gogo branch 2 times, most recently from 712ed9f to 4cd592b Compare February 16, 2022 23:01
This change replaces github.com/gogo/protobuf with
google.golang.org/protobuf, except for the code generators.

All proto-encoded structs are now generated from .proto files,
which include ttrpc.Request and ttrpc.Response.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys
Copy link
Member Author

kzys commented Feb 16, 2022

@brandond Sorry. We've released 1.6.0 and this protobuf-related change may be too big to backport. Releasing 1.7.0 relatively earlier may be the only option.

Copy link
Member

@stevvooe stevvooe left a comment

Choose a reason for hiding this comment

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

LGTM

Might need some work on compatibility testing.

@dmcgowan dmcgowan merged commit c636d0d into containerd:main Feb 16, 2022
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