Commit Graph

54 Commits

Author SHA1 Message Date
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 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
Nicolas Lopez a32b1eb765
Merge branch 'master' into master 2019-04-11 15:00:34 -04:00
Bill Feng 5158c3db27 naming update, documentation fix 2019-04-08 14:39:09 -07:00
Bill Feng df89d8e157 bazel RBE Windows build 2019-04-05 11:40:11 -07:00
Richard Belleville 615c95ed5c Mitigate #18256 2019-04-03 18:13:52 -07:00
Nicolas Lopez bdbe0483b0 update docs 2019-03-28 09:56:50 -04:00
Nicolas Lopez a9ffc03d1b remove ubsan rbe_autoconfig target 2019-03-28 09:56:50 -04:00
Nicolas Lopez ad4926d5c6 avoid local runs from accessing remote platforms
This should fix Bazel Basic Tests for Python (Local) and other
local CI runs that are now failing.
I also have a plan to fix Bazel RBE Opt C/C++.
Bazel RBE UBSAN C/C++ might need to wait for gRPC to upgrade to
using 0.23.0
2019-03-28 09:56:50 -04:00
Nicolas Lopez d6dbaeee74 doc fixes 2019-03-28 09:56:50 -04:00
Nicolas Lopez d1640057f2 use rbe_autoconfig 2019-03-28 09:56:50 -04:00
Lidi Zheng 8bed44b2c4 Make WORKSPACE compatible with Bazel 0.20.0 for Python 2018-12-04 19:43:04 -08:00
Nicolas Noble dc930c7868
Workarounding bazelbuild/bazel#6831
This will take care of the bazel crash until we have a proper fix upstream.
2018-12-03 19:16:21 -08:00
Nicolas "Pixel" Noble dc4b538c4d Merge branch 'master' of https://github.com/grpc/grpc into fix-bazel-0.20 2018-11-30 23:27:24 +01:00
Nicolas "Pixel" Noble f0fbee5932 Bazel 0.20.0 workspace fixes. 2018-11-30 23:24:59 +01:00
Bill Feng 1e53e3c17f added back platform registration to WORKSPACE 2018-11-26 10:26:07 -08:00
Bill Feng 70f9992d77 modified execution platform registration, added host platform 2018-11-26 10:10:53 -08:00
Bill Feng a548f1cc64 fixed typo on WORKSPACE file 2018-11-20 15:43:24 -08:00
Bill Feng c04583f647 registered toolchain and platform 2018-11-20 15:23:08 -08:00
Naresh 873e0757cb
Bazel rules for Python grpcio_health_checking
Add Bazel rules for building and testing grpcio_health_checking.

An unofficial fork for rules_protobuf is used for now as it incorporates
a change (#196 by duduko on the upstream repo pubref/rules_protobuf)
which allows the protoc compiler to compile generated protos too. This
was not merged because the change was failing for golang, but works as
expected for Python.

This is needed because grpcio_health_checking fetches it's proto file
from a different directory (previously achived through setup.py) and
thus needs to be moved to the required location within bazel-genfiles
using a genrule.
2018-10-09 17:04:11 +00:00
Naresh 11f199e34d
Workspace changes to build gRPC Python with Bazel
- Include new rules from bazelbuild/rules_python, which allow for
importing pip dependencies with Bazel.
- Make Cython BUILD file visible to WORKSPACE.
- Use a custom requirements file for Bazel python. This is added to
allow for requirements previously added only during build steps.
2018-07-27 14:44:09 +00:00
Alex Polcyn aa56034b58 Add python bazel deps needed to run resolver component tests 2018-02-14 14:06:00 -08:00
Ning Ren 174e02ae3e Packs contents of WORKSPACE into a bzl function, so that it can be resued by other projects, and simplifies cares build. 2017-12-14 17:37:55 -08:00
Adele Zhou 0384127aa8 Copy key data 2017-11-30 17:10:27 -08:00
Adele Zhou b9cb3379d5 Add bazel_toolchains 2017-11-30 17:10:27 -08:00
Mehrdad Afshari 28661ea6e1 Bump third_party/protobuf submodule to v3.5.0 2017-11-24 17:56:04 -08:00
josh 30321c96d3 Update the git hash of the Google Benchmark dependency in the Bazel WORKSPACE 2017-11-13 22:02:38 -07:00
josh d692b76864 Pulling upstream changes and resolving merge conflicts with third_party/cares/cares.BUILD 2017-11-13 21:51:27 -07:00
Vijay Pai dc7c50e6a4 Switch PB dependence to PB headers dependence 2017-11-03 22:18:29 +00:00
josh 5d710a5dfe Update Bazel WORKSPACE file and third_party/cares BUILD files to that Bazel can build gRPC as a dependency.
The WORKSPACE file now pulls third_party dependencies directly instead of requiring a git submodule init and update.
The git hashes pulled by Bazel are exactly the same as the git submodules checked into third_party.

A tiny bit of complexity comes from the c-ares project's use of ares_config.h.cmake and ares_build.c.cmake.
The current solution to this problem is to check in a valid ares_config.h and a few valid ares_config.h files.
This is the same general approach used still, but ares_config.h and ares_build.h are supplied to cares.BUILD
from the only remaining local_repository, which serves only to export these two header files.
2017-10-19 18:47:58 -06:00
Craig Tiller b7a8cace34 Add abseil to core, use it for InlinedVector 2017-10-05 09:50:18 -07:00
Nicolas "Pixel" Noble fc49d6edab Splitting gmock out of gtest. 2017-09-01 23:53:34 +02:00
Nicolas "Pixel" Noble 736907c23e Reverted submodule changes... 2017-05-12 20:27:21 +02:00
Vijay Pai a935ae1505 Fix build rules for grpc++_unsecure, test that it builds properly 2017-04-20 22:21:01 +00:00
Makarand Dharmapurikar 8f37606f60 disable mongoose 2017-04-19 10:30:07 -07:00
Nicolas "Pixel" Noble f3ca374929 Merge branch 'master' of https://github.com/grpc/grpc into cpp_bazelness 2017-03-28 00:27:34 +02:00
Nicolas "Pixel" Noble 8e0684b5d4 Merge branch 'master' of https://github.com/grpc/grpc into cpp_bazelness 2017-03-27 18:50:04 +02:00
Makarand Dharmapurikar a0649dde0e Merge branch 'master' of https://github.com/grpc/grpc into grpcz_client 2017-03-27 09:18:21 -07:00
Yuchen Zeng 2c977084c8 Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-03-17 15:57:23 -07:00
Craig Tiller af11581260 Merge github.com:grpc/grpc into cpp_bazelness 2017-03-09 15:09:34 -08:00
Craig Tiller bf515b6f7f Merge github.com:grpc/grpc into cpp_bazelness 2017-02-24 16:23:50 -08:00
Makarand Dharmapurikar 4be6258900 updated to latest mongoose BUILD 2017-02-22 14:32:41 -08:00
Makarand Dharmapurikar 7b9130a610 Merge branch 'master' of https://github.com/grpc/grpc into grpcz_client
Merging with latest changes to WORKSPACE on master
2017-02-22 10:25:31 -08:00
Makarand Dharmapurikar 003092a202 code and BUILD file for creating a grpcz client
The client binary can be built with 'bazel build //tools/grpcz:grpcz_client' and
can be invoked with bazel-bin/tools/grpcz/grpcz_client --server SERVER_ADDR:PORT
You can see the stats page at http://localhost:8000/grpcz
2017-02-21 14:08:01 -08:00
David Garcia Quintas e9932d4744 add gflags to bazel 2017-02-17 16:50:23 -08:00
Craig Tiller 19f3ea2c20 Start bringing microbenchmarks to Bazel 2017-02-17 15:17:05 -08:00
Craig Tiller 05fbe3c518 Get gtest building with Bazel, add first test in test/cpp/common/BUILD 2017-02-17 13:27:21 -08:00
Yuchen Zeng 4c702ed1a1 Add bazel build rule for c-ares 2017-01-23 10:30:10 -08:00