Skip to content

Update protobuf to 3.9.0#19630

Closed
TeBoring wants to merge 2 commits intogrpc:masterfrom
TeBoring:201907120952
Closed

Update protobuf to 3.9.0#19630
TeBoring wants to merge 2 commits intogrpc:masterfrom
TeBoring:201907120952

Conversation

@TeBoring
Copy link
Copy Markdown

No description provided.

@thelinuxfoundation
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

s.platform = Gem::Platform::RUBY

s.add_dependency 'google-protobuf', '~> 3.8'
s.add_dependency 'google-protobuf', '~> 3.9.0'
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@TeBoring
Copy link
Copy Markdown
Author

TeBoring commented Jul 17, 2019 via email

@jtattermusch
Copy link
Copy Markdown
Contributor

@jtattermusch
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@jtattermusch
Copy link
Copy Markdown
Contributor

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

@TeBoring
Copy link
Copy Markdown
Author

I signed

@ObsidianMinor
Copy link
Copy Markdown

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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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.

6 participants