Skip to content

Bazel for gRPC Python development #17622

@lidizheng

Description

@lidizheng

Bazel has been around with gRPC for a while, and the gRPC Python has adopted Bazel last summer. It's time to see what is missing to use Bazel for gRPC Python development builds.

Let's recap how to test with Bazel:

# For all available tests
$ bazel test --test_output=errors //src/python/grpcio_tests/tests/...

# For specific test
$ bazel test --test_output=errors //src/python/grpcio_tests/tests/channelz:channelz_page_test
$ bazel test --test_output=errors //src/python/grpcio_tests/tests/unit:_api_test
...

Currently, here are the pending features for Bazel:

  • Test with Python 3 (Bazel & Python 3 integration is really hard to get it right)
  • Enable all the test cases
  • REQUESTED Merge test BUILD files into one

If you want other features, please comment below this issue ;)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions