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

Update protobuf to 3.9.0 #19630

Closed
wants to merge 2 commits into from
Closed

Update protobuf to 3.9.0 #19630

wants to merge 2 commits into from

Conversation

TeBoring
Copy link

No description provided.

@thelinuxfoundation
Copy link

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.

After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

Regards,
CLA GitHub bot

@jtattermusch
Copy link
Contributor

It is useful to provide link to the last update #19182 - most changes should be of the same nature.

@jtattermusch jtattermusch added release notes: yes Indicates if PR needs to be in release notes lang/all wrapped languages labels Jul 17, 2019
Copy link
Contributor

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

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

This is mostly looking good (with exception of my comment). Let's see what the tests say.

@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY

s.add_dependency 'google-protobuf', '~> 3.8'
s.add_dependency 'google-protobuf', '~> 3.9.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the missing .0 is intended. (see PR for bump to 3.8). Please fix in the .template file

@jtattermusch
Copy link
Contributor

@TeBoring for some reason the CLA check is failing - can you doublecheck please?

@TeBoring
Copy link
Author

TeBoring commented Jul 17, 2019 via email

@jtattermusch
Copy link
Contributor

CLA: https://identity.linuxfoundation.org/projects/cncf you should be able to sign as google employee.

@jtattermusch
Copy link
Contributor

jtattermusch commented Jul 17, 2019

The c# error is something we need to take a look into. It might also be that 3.9.0 might contain a breaking change that needs to be rolled back.

  Grpc.Microbenchmarks -> /var/local/git/grpc/src/csharp/Grpc.Microbenchmarks/bin/Debug/net461/Grpc.Microbenchmarks.exe
Math.cs(39,17): error CS1729: 'GeneratedClrTypeInfo' does not contain a constructor that takes 7 arguments [/var/local/git/grpc/src/csharp/Grpc.Examples/Grpc.Examples.csproj]
Math.cs(40,17): error CS1729: 'GeneratedClrTypeInfo' does not contain a constructor that takes 7 arguments [/var/local/git/grpc/src/csharp/Grpc.Examples/Grpc.Examples.csproj]
Math.cs(41,17): error CS1729: 'GeneratedClrTypeInfo' does not contain a constructor that takes 7 arguments [/var/local/git/grpc/src/csharp/Grpc.Examples/Grpc.Examples.csproj]
Math.cs(42,17): error CS1729: 'GeneratedClrTypeInfo' does not contain a constructor that takes 7 arguments [/var/local/git/grpc/src/csharp/Grpc.Examples/Grpc.Examples.csproj]
Math.cs(43,17): error CS1729: 'GeneratedClrTypeInfo' does not contain a constructor that takes 7 arguments [/var/local/git/grpc/src/csharp/Grpc.Examples/Grpc.Examples.csproj]

Other problems:
https://source.cloud.google.com/results/invocations/c03ae785-c291-4a23-95a9-c0b8a91decf6/targets/github%2Fgrpc%2Fsanity_linux_dbg_native/tests

@jtattermusch
Copy link
Contributor

The C# problem likely has to do with this change:
protocolbuffers/protobuf@9e89b6e#diff-a11488f894c3a2f0a362c3ea33941a88R107

@jtattermusch
Copy link
Contributor

CC @ObsidianMinor (probably related to protocolbuffers/protobuf#5350)

@TeBoring
Copy link
Author

I signed

@ObsidianMinor
Copy link

3.9.0 was delisted until a 3.9.1 release can be made to with these changes. The C# issues are probably related to that.

@anandolee
Copy link

Looks like the test is using new protoc but old c# runtime? @jtattermusch is the failure in this case, and why old c# runtime is used in Grpc's test?

Protobuf only gurantee old generated code work with new runtime. Not gurantee new generated code work with old runtime

@jtattermusch
Copy link
Contributor

jtattermusch commented Jul 18, 2019

Ok, I think I now understand what happened:

  • this PR attempts to increase C# protobuf runtime version in Version.csproj.include, but it turns out that's a dead copy that doesn't influence anything, so the protobuf runtime is not really updated, but the code is regenerated. That explains the C# build error.

I created #19679 to fix the problem. After it's merged, this PR needs to be updated to modify src/csharp/build/dependencies.props instead of Version.csproj.include

@jtattermusch
Copy link
Contributor

Superseded by #19867

@lock lock bot locked as resolved and limited conversation to collaborators Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang/all wrapped languages release notes: yes Indicates if PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants