Commit Graph

193 Commits

Author SHA1 Message Date
Prashant Jaikumar 43628b286f Update googletest version to v1.8.1
Bazel builds of test/cpp/end2end:end2end_test were failing on Mac OS with v1.8.0 due to missing gtest symbols. The issue is not seen in v1.8.1. A WORKSPACE file was added to gtest repo in 1.8.1, so gtest.BUILD can be removed.
2019-06-20 18:17:13 -07:00
Jan Tattermusch 4d33b5c955
Merge pull request #19182 from haon4/201905291635
Update protobuf version to 3.8.0
2019-06-18 17:36:27 +02:00
Hao Nguyen 79f7abb45e Update zlib dependency 2019-05-29 17:07:00 -07:00
Hao Nguyen 1ddaafd677 Update protobuf version 2019-05-29 16:37:10 -07:00
Richard Belleville 461d1bf9cd
Merge pull request #19097 from keith/ks/bazel-incompat
Fix bazel incompatible changes
2019-05-29 09:39:57 -07:00
Jan Tattermusch 659f71099c upgrade bazel toolchain to fix ubsan RBE build 2019-05-29 04:03:47 -04:00
Keith Smiley f131adf89c Fix bazel incompatible changes
When building grpc with the upcoming `--incompatible_depset_is_not_iterable` flag, these violations were found
2019-05-21 17:13:07 -07:00
vam 5c15471710 Fix generated files as input issue (generated files were supported neither as srcs nor as deps). 2019-05-07 14:55:10 -07:00
vam 4c0d9e2f6b Fix well_known_protos issue 2019-05-06 14:29:08 -07:00
vam f4affeec66 Merge remote-tracking branch 'upstream/master' 2019-05-03 16:49:50 -07:00
vam 4269ce08f4 Make cc_grpc_library compatible with native proto_library and cc_proto_library rules.
This is needed to comply with bazel best practices (each proto file is first processed by proto_library: https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library) and generally bring cc_grcp_library rule up to date with latest Bazel changes (the rule hasn't gotten much updates since 2016).

Detailed description.

Bazel has native `cc_proto_library` rule, but it does not have `cc_grpc_library`. The rule in cc_grpc_library in this repo seems like the best candidate.

This change makes possible using `cc_grpc_library` to generate on grpc library, and consume protobuf protion as dependencies. The typical `BUILD.bazel` file configuraiton now should look like the following:

```python
proto_library(
   name = "my_proto",
   srcs = ["my.proto"],
 )

cc_proto_library(
   name = "my_cc_proto",
   deps = [":my_proto"]
)

cc_grpc_library(
    name = "my_cc_grpc",
    srcs = [":my_proto"],
    deps = [":my_cc_proto"]
)
```

This allows to decouple all thre phases: proto descriptors generation (`proto_library`), protobuf messages library creation (`cc_proto_library`), grpc library creatio (`cc_grpc_library`).

Notice how `cc_grpc_library` depends on `proto_library` (as `src`) and on `cc_proto_library` (as `deps`). Currently cc_grpc_library is designed in a way that it encapsulates all of the above and directly accepts .proto files as srcs.

The previous version (before this PR) of cc_proto_library was encapsulating all of the 3 phases inside single `cc_proto_library` and also was doing it manually (without relying on the native `cc_proto_library`).

The `cc_proto_library` is kept backward-compatible with the old version.
2019-05-03 16:43:54 -07:00
Richard Belleville 930cec4e27 Revert "Merge pull request #18912 from grpc/revert-bazel-changes"
This reverts commit c9a259aa3a, reversing
changes made to 9c882bc725.
2019-04-30 11:17:11 -07:00
Richard Belleville 50b5240d0a Revert "Merge pull request #18859 from grpc/internal_py_proto_library"
This reverts commit 5b720f19c1, reversing
changes made to a64ae3c0d5.
2019-04-29 17:47:56 -07:00
Richard Belleville f371d95c47 Handle protos at root package level 2019-04-26 17:03:16 -07:00
Richard Belleville afdc59712d Merge branch 'master' into internal_py_proto_library 2019-04-25 10:01:41 -07:00
Richard Belleville 05f37c8143 Remove dependency on pubref/rules_proto.
This commit resolves #18331.
This commit resolves #18256.
This commit resolves... another TODO that apparently didn't have an
associated github issue.

We swap out pubref's implementation of py_proto_library with our own,
which more closely mirrors the interface of the internal
py_proto_library, taking the descriptor file output of a proto_library
rule as input.

One minor change in behavior was introduced for simplicity. When a
py_proto_library depends on a proto_library with a source proto file in
a subdirectory of the bazel package, the import module of the resultant
python library will reflect the package, *not* the full directory of the
proto file, including both the bazel package and the subdirectories, as
pubref did previously. This behavior also more closely mirrors google
internal behavior.

This commit also introduces a slightly more stringent bazel format
script. Buildifier on its own will not take care of long lines, but by
running yapf first, we end up with a more legible file. At the moment,
there is no sanity check associated with this formatter.
2019-04-24 17:36:08 -07:00
Keith Moyer 0468a803b4 Add missing sha256 for http_archive deps 2019-04-17 12:43:04 -07:00
Jan Tattermusch d800f40604
Merge pull request #18748 from billfeng327/feature/rbe-windows
Windows rbe for Kokoro CI
2019-04-15 13:15:06 +02:00
Bill Feng 85100a780f windows rbe for Kokoro CI 2019-04-12 15:46:33 -07:00
Alexander Polcyn 4ba81610ee Revert "Update the upb submodule for proto.oneof fix in generated code."
This reverts commit 2975571fd3.
2019-04-12 12:00:10 -07:00
Vishal Powar 2975571fd3 Update the upb submodule for proto.oneof fix in generated code. 2019-04-11 16:24:58 -07:00
Nicolas Lopez a32b1eb765
Merge branch 'master' into master 2019-04-11 15:00:34 -04:00
Richard Belleville f3f6237e6d Wrap long line 2019-04-03 18:16:24 -07:00
Richard Belleville 615c95ed5c Mitigate #18256 2019-04-03 18:13:52 -07:00
Bill Feng d29de0ed0b removed unused configs 2019-03-28 17:08:54 -07:00
Bill Feng 3d03c2d97c fixed comments 2019-03-28 17:05:26 -07:00
Bill Feng c1b03b68da Merge remote-tracking branch 'upstream/master' into feature/reinstate-rbe-windows 2019-03-28 16:45:41 -07:00
Bill Feng 719bdcfd6a temporarily disable all poller-enabled tests for Windows 2019-03-28 16:07:36 -07:00
Nicolas Lopez 7f38bc6fd3 updating bazel-toolchains pin 2019-03-28 09:56:50 -04:00
Nicolas Lopez 8d6b6accd7 use experimental ubsan config 2019-03-28 09:56:50 -04:00
Nicolas Lopez d1640057f2 use rbe_autoconfig 2019-03-28 09:56:50 -04:00
Bill Feng cdf3e001cb wip selective build for windows 2019-03-27 10:26:41 -07:00
Fabian Holler 113e84b8dd update cares to version cares-1_15_0
This fixes the issue: https://github.com/grpc/grpc/issues/16688

Which causes that grpc can not be build because of the following
compiler error:
  third_party/cares/cares/ares_init.c: In function ‘ares_dup’:
  third_party/cares/cares/ares_init.c:301:17: error: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer- memaccess] sizeof(src->local_dev_name));
2019-03-26 13:13:49 -07:00
billfeng327 d16597ab73 corrected Bazel target generation logic for Windows 2019-03-22 14:33:37 -07:00
Bill Feng d7e5cb70fe flipped logic for is_msvc() 2019-03-22 11:27:24 -07:00
Bill Feng d93959853f Enabled Windows Bazel build for cpp tests 2019-03-21 18:00:48 -07:00
Bill Feng 6050990f89 Merge remote-tracking branch 'upstream/master' into feature/reinstate-rbe-windows 2019-03-20 16:08:50 -07:00
Yang Gao 6ffdb37f50
Merge pull request #18415 from yang-g/census
Update opencensus
2019-03-19 08:46:19 -07:00
yang-g 38b82fb7c3 Update opencensus to fix build 2019-03-18 08:55:15 -07:00
Bill Feng e9ad9e90b3 reinstated version bump of google benchmark 2019-03-15 11:41:57 -07:00
Jan Tattermusch cf6a311761
Revert "Windows builds for gRPC C++ tests" 2019-03-15 17:15:20 +01:00
Vishal Powar 319fcdf26e Add a script for generating C code and build rule for protobuf protos.
All these changes need to go together to make sense
  - changes to use new version of upb in bazel
  - allowing includes in build target option
  - script for generating c code (upb) for protos
  - generated code for example protos
  - adding changes for non-bazel builds
  - change sanity tests to ignore the generated files.
2019-03-13 12:53:17 -07:00
Jan Tattermusch e3c024591b update bazel build to protobuf v3.7.0 2019-03-12 05:09:46 -04:00
Bill Feng d61f690a33
Merge pull request #18285 from billfeng327/update-deps-version
Windows local Bazel build for gRPC C++ tests
2019-03-08 14:17:36 -08:00
billfeng327 5eb1e8d8c9 code cleanup, removed old build file 2019-03-08 10:39:03 -08:00
Yash Tibrewal 620d80d817 Remove poll-cv references from bazel and run_tests.py 2019-03-07 15:03:31 -08:00
billfeng327 ab06853fc9 C++ Windows test builds 2019-03-06 15:47:49 -08:00
Bill Feng a0e06fdac4
Merge pull request #18162 from billfeng327/update-deps-version
updated version of abseil for enabling windows bazel build
2019-02-26 10:16:31 -08:00
Bill Feng 179eb2b4a5 update dependency version for bazel 2019-02-25 16:34:57 -08:00
Laurent Le Brun 6f3a00c1a3 Fix for future Bazel changes
This fixes issues found by running Bazel with `--incompatible_no_support_tools_in_action_inputs` and `--incompatible_new_actions_api`.
2019-02-25 18:33:33 +01:00