Skip to content

Update to use the canonical version of LB proto#15840

Merged
dgquintas merged 3 commits intogrpc:masterfrom
dgquintas:common_nanopb
Jun 22, 2018
Merged

Update to use the canonical version of LB proto#15840
dgquintas merged 3 commits intogrpc:masterfrom
dgquintas:common_nanopb

Conversation

@dgquintas
Copy link
Copy Markdown
Contributor

@dgquintas dgquintas commented Jun 21, 2018

For now, load_balance.proto is a copy of https://github.com/grpc/grpc-proto/blob/master/grpc/lb/v1/load_balancer.proto . In the future we may want to submodule grpc/grpc-proto instead.

The approach taken involves compiling google.protobuf.duration and google.protobuf.timestamp using nanopb, thus generating C code the core can compile and link. Most other changes are to auxiliary scripts used to perform this compilation.

Fixes #15728

@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                            FILE SIZE
 ++++++++++++++ GROWING                              ++++++++++++++
  +0.0%     +32 [None]                               +2.45Ki  +0.0%
      +0.0%     +32 [Unmapped]                           +2.45Ki  +0.0%
      [NEW]     +87 google_protobuf_Duration_fields          +87  [NEW]
      [NEW]     +87 google_protobuf_Timestamp_fields         +87  [NEW]

  +0.0%     +32 TOTAL                                +2.45Ki  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc grpc deleted a comment from grpc-testing Jun 22, 2018
@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

Copy link
Copy Markdown
Contributor

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

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

Awesome, LGTM

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                            FILE SIZE
 ++++++++++++++ GROWING                              ++++++++++++++
  +0.0%     +32 [None]                               +2.45Ki  +0.0%
      +0.0%     +32 [Unmapped]                           +2.45Ki  +0.0%
      [NEW]     +87 google_protobuf_Duration_fields          +87  [NEW]
      [NEW]     +87 google_protobuf_Timestamp_fields         +87  [NEW]

  +0.0%     +32 TOTAL                                +2.45Ki  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

1 similar comment
@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                            FILE SIZE
 ++++++++++++++ GROWING                              ++++++++++++++
  +0.0%     +32 [None]                               +2.45Ki  +0.0%
      +0.0%     +32 [Unmapped]                           +2.45Ki  +0.0%
      [NEW]     +87 google_protobuf_Duration_fields          +87  [NEW]
      [NEW]     +87 google_protobuf_Timestamp_fields         +87  [NEW]

  +0.0%     +32 TOTAL                                +2.45Ki  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

@@ -1,4 +1,4 @@
// Copyright 2016 gRPC authors.
// Copyright 2015 The gRPC Authors
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'm just curious about why this gets decreased?

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.

The earlier copyright takes precedence. This file was copied a few times, but the original date holds.

// See the License for the specific language governing permissions and
// limitations under the License.

// This file defines an the GRPCLB LoadBalancing protocol.
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.

Nit: "an" can be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@carl-mastrangelo can you fix that upstream?

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.

@AspirinSJL actually has a PR upstream already, perhaps she can attach the change to her existing PR?

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.

Oh, I thought this only exists in downstream copies. I will attach the change to my PR.

// length of the name is 256 bytes.
// The name might include a port number. How to handle the port number is up
// to the balancer.
// Name of load balanced service (IE, service.googleapis.com). Its
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.

This overwrites my change before. I should probably update the canonical file.

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.

Updated in grpc/grpc-proto#28.

popd

##
## Checks for load_balancer.proto
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this all commented out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                            FILE SIZE
 ++++++++++++++ GROWING                              ++++++++++++++
  +0.0%     +32 [None]                               +2.45Ki  +0.0%
      +0.0%     +32 [Unmapped]                           +2.45Ki  +0.0%
      [NEW]     +87 google_protobuf_Duration_fields          +87  [NEW]
      [NEW]     +87 google_protobuf_Timestamp_fields         +87  [NEW]

  +0.0%     +32 TOTAL                                +2.45Ki  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

@AspirinSJL
Copy link
Copy Markdown
Contributor

grpc/grpc-proto#28 is merged. Please sync. Thanks!

@dgquintas
Copy link
Copy Markdown
Contributor Author

Done. PTAL.

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                            FILE SIZE
 ++++++++++++++ GROWING                              ++++++++++++++
  [ = ]       0 [None]                               +2.46Ki  +0.0%
      [ = ]       0 [Unmapped]                           +2.46Ki  +0.0%
      [NEW]     +87 google_protobuf_Duration_fields          +87  [NEW]
      [NEW]     +87 google_protobuf_Timestamp_fields         +87  [NEW]

  [ = ]       0 TOTAL                                +2.46Ki  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

@dgquintas
Copy link
Copy Markdown
Contributor Author

Issues: #15827

@dgquintas dgquintas merged commit 3acf8e6 into grpc:master Jun 22, 2018
@dgquintas dgquintas added release notes: yes Indicates if PR needs to be in release notes lang/core labels Jul 27, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lang/core 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