-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[release-1.19] Force pkg dependencies to older ones compatible with gogo/protobuf #4167
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
[release-1.19] Force pkg dependencies to older ones compatible with gogo/protobuf #4167
Conversation
The continerd/ttrpc package, used to support the runtimes of type "vm", relies on the gogo/protobuf protocol buffer implementation. Recently, google updated the golang protocol buffer implementation with a newer and backward incompatible API: https://blog.golang.org/protobuf-apiv2 The gogo/protobuf protocol has not been updated and is now incompatible with the newer golang protocol buffer implementation. Unfortunately, the containerd/ttrpc package imports also the package: google.golang.org/genproto/googleapis/rpc/status which is generated by means of the golang protocol buffer. With the newer version, the generated code is no more compatible with gogo/protobuf, leading to panic during execution of the ttrpc code. While the ttrpc package needs a proper fix, this patch downgrades the version of the golang/protobuf, genproto, and grpc. This PR is a "backport" of: cri-o@6bda9b5 Signed-off-by: Fabiano Fidêncio <[email protected]> Signed-off-by: Francesco Giudici <[email protected]> Signed-off-by: Mrunal Patel <[email protected]>
|
/cc @fgiudici, please, if you can also check this one ... :-) |
Codecov Report
@@ Coverage Diff @@
## release-1.19 #4167 +/- ##
=============================================
Coverage 41.68% 41.68%
=============================================
Files 110 110
Lines 9053 9053
=============================================
Hits 3774 3774
Misses 4938 4938
Partials 341 341 |
|
/retest |
|
Interesting, @haircommander, @saschagrunert, is this a known issue? |
|
/test e2e_cgroupv2 |
1 similar comment
|
/test e2e_cgroupv2 |
|
/test e2e_cgroupv2 |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fidencio, mrunalp The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@fidencio: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/retest |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The continerd/ttrpc package, used to support the runtimes of type "vm",
relies on the gogo/protobuf protocol buffer implementation.
Recently, google updated the golang protocol buffer implementation with
a newer and backward incompatible API:
https://blog.golang.org/protobuf-apiv2
The gogo/protobuf protocol has not been updated and is now incompatible
with the newer golang protocol buffer implementation.
Unfortunately, the containerd/ttrpc package imports also the package:
google.golang.org/genproto/googleapis/rpc/status
which is generated by means of the golang protocol buffer. With the
newer version, the generated code is no more compatible with
gogo/protobuf, leading to panic during execution of the ttrpc code.
While the ttrpc package needs a proper fix, this patch downgrades the
version of the golang/protobuf, genproto, and grpc.
This PR is a backport of:
6bda9b5
Which issue(s) this PR fixes:
Fixes #3991
Special notes for your reviewer:
@fgiudici, @mrunalp, @haircommander,
Backport of #4164
Does this PR introduce a user-facing change?