Commit Graph

2594 Commits

Author SHA1 Message Date
Muxi Yan 19b4feaee7 Update surface API in cython pxi 2018-01-19 12:22:24 -08:00
Muxi Yan fb061c329a Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2018-01-19 12:20:15 -08:00
Mark D. Roth dbdf495f61 Split lib/support into lib/gpr and lib/gpr++. 2018-01-18 11:21:12 -08:00
Mehrdad Afshari f2a33b0e39 Reformat Python docstrings 2018-01-17 18:13:26 -08:00
kpayson64 e1e562eb17
Merge pull request #13965 from evanj/python-abort-fix
python: Context.abort should fail RPC even for StatusCode.OK
2018-01-12 17:09:43 -08:00
Evan Jones 145b199c4d python: Context.abort should fail RPC even for StatusCode.OK
grpc.ServicerContext.abort is documented to always raise an exception
to terminate the RPC. The code argument "must not be StatusCode.OK."
However, if you do pass StatusCode.OK, the RPC terminates successfully
on the client side, but returns None.

_server.py: If the user accidentally passes StatusCode.OK, treat it as
    StatusCode.UNKNOWN. This is what happens if the user accidentally
    passes something that is not a StatusCode instance. Additionally
    set details to ''.

_metadata_code_details_test.py: update test to verify the behavior of
    abort with invalid codes.
2018-01-12 18:20:55 -05:00
Nathaniel Manista 31ddbff8cf Elide cygrpc.Timespec 2018-01-10 22:58:00 +00:00
ncteisen b04efac6a5 Merge branch 'master' of https://github.com/grpc/grpc into channel-tracing 2018-01-09 13:49:37 -08:00
Mehrdad Afshari 87cd994b04 Upgrade yapf to 0.20.0
Upgrade yapf version to 0.20.0 and reformat Python files.
2018-01-02 14:40:00 -08:00
Nathaniel Manista e1d592a999
Merge pull request #13891 from nathanielmanistaatgoogle/12531
Reform cygrpc.OperationTag and cygrpc.Event.
2017-12-31 17:11:26 -08:00
Mehrdad Afshari c71c6a7f3d Merge branch v1.8.x into master
Upmerge v1.8.3 into master
2017-12-31 14:10:01 -08:00
Nathaniel Manista 7b9c023391 Reform cygrpc.OperationTag and cygrpc.Event
Rather than single classes they are now broken up into class families
with each class containing only those fields and methods that are
needed in the context in which the class is used.
2017-12-31 20:43:58 +00:00
Mehrdad Afshari 6c9a0a1a96 Bump version to 1.8.3 2017-12-30 18:28:13 -08:00
ncteisen 7d9b6358b5 Initial commit
Picks up work from https://github.com/grpc/grpc/pull/10259.
A merge was impossible due to the many sweeping changed that
have occured since I last touched that PR (c++-ization, exec_ctx,
reorganitation of filters, etc).
2017-12-28 15:09:17 -08:00
Nathaniel Manista 81edf5ff9a Reform cygrpc.Operation
It is now a family of classes conforming to an interface rather than a
single class no single instance of which makes use of all behavior
scoped to the class.

It also now only uses gRPC Core memory for the time of a single batch
rather than for the entire lifetime of the instance.
2017-12-21 19:31:15 +00:00
Mehrdad Afshari 271b042c4d Fix port picking logic in Python tests 2017-12-20 22:51:02 -08:00
kpayson64 247a05e4b3
Merge pull request #13843 from kpayson64/fix_python_tests
Disable so_reuseport for Python tests
2017-12-20 14:21:04 -08:00
Ken Payson 3bc8e422dc Disable so_reuseport for Python tests 2017-12-20 13:02:00 -08:00
Ken Payson 16e4bc010a Bump to 1.8.2 2017-12-19 17:29:04 -08:00
Mehrdad Afshari 0981f9fab1 Bump version to 1.8.1 2017-12-14 15:14:23 -08:00
Mehrdad Afshari 5b6b591343
Merge pull request #13789 from grpc/v1.8.x
Upmerge changes from v1.8.x to master
2017-12-14 13:56:36 -08:00
kpayson64 f5649c7e96
Merge pull request #13786 from kpayson64/fix_python_server_race
Fixes race condition in Python server shutdown
2017-12-14 13:11:35 -08:00
Ken Payson 8179b9523a Fixes race condition in Python server shutdown
When we set the call state to "CANCELLED" after
grpc_cancel_all_calls, we would block other start batch
operations from happening. The rpc_state for the cancelled
call would still be in the server's rpc_states set, but it
would never get removed because there were no active batches
for the call, and the only place we remove from rpc_states is
when a batch completes.

It is better to rely on c-core's cancellation. Once a call
is cancelled, all subsequent ops on that call will return
immediately with a cancellation error.

The RLock() change is due to the possibility that
_on_call_completed
gets invoked immediately when the call has already completed when the
rpc_future callback is created.
2017-12-14 12:07:07 -08:00
Nathaniel Manista e1c4021726 Reallow out-of-spec metadata
This restore unsupported, de facto behavior that was dropped in
80516e884a but that it turns out a lot of folks
have been using.
2017-12-14 18:52:37 +00:00
Muxi Yan 032e9b32dc Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-13 14:04:45 -08:00
Mehrdad Afshari 0ba96edc41 v1.8.0-pre2 is now v1.8.0 2017-12-12 14:01:25 -08:00
Mehrdad Afshari fdfaf1b12e Add tests for gRPC Python interceptor machinery 2017-12-12 12:01:07 -08:00
Mehrdad Afshari 108500f194 Add gRPC Python client-side interceptor machinery 2017-12-12 12:01:07 -08:00
Mehrdad Afshari 68e1978e9e Add gRPC Python service-side interceptor machinery 2017-12-12 12:01:02 -08:00
Muxi Yan c870ce5476 More message compression level clean-up 2017-12-11 15:53:22 -08:00
Mehrdad Afshari c5ba665b22 Merge remote-tracking branch 'origin/v1.8.x' 2017-12-11 11:32:11 -08:00
ncteisen 138ee78529 yapf grpcio_tests 2017-12-11 16:32:31 -08:00
ncteisen e2097f0cc9 yapf-ize grpc_testing 2017-12-11 16:27:29 -08:00
ncteisen 0f6c518e3c yapf-ize grpcio_reflection 2017-12-11 16:22:30 -08:00
ncteisen d258430bc3 yapf-ize grpcio_health_checking 2017-12-11 16:16:20 -08:00
ncteisen 128366374f Yapf-ize grpcio/grpc_.py 2017-12-11 16:14:24 -08:00
Mehrdad Afshari b0afa016cb Refactor: Rename call to response_iterator_call
Rename call to response_iterator_call file-wide for response-streaming tests.
2017-12-10 06:32:13 -08:00
Mehrdad Afshari 90ab995cb0 Tests for ServicerContext.abort 2017-12-10 20:45:18 -08:00
Mehrdad Afshari 9bc44e3829 Introduce ServicerContext.abort to abort an RPC
gRPC Python required RPCs terminating with non-OK status code to still
return a valid response value after calling set_code, even though the
response value was not supposed to be communicated to the client, and
returning None is considered a programming error.

This commit introduces an alternative mechanism to terminate RPCs by
calling the `abort` method on `ServicerContext` passed to the handler,
which raises an exception and signals to the gRPC runtime to abort the
RPC with the specified status code and details.
2017-12-10 20:45:13 -08:00
Nathaniel Manista d14035c55a
Merge pull request #13688 from nathanielmanistaatgoogle/12531
Elide cygrpc.Operations.
2017-12-08 14:40:37 -08:00
Muxi Yan 99024d6436 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-08 14:02:18 -08:00
Nathaniel Manista c5c1216a65 Elide cygrpc.Operations 2017-12-08 20:55:15 +00:00
Nathaniel Manista 5cff6d3c2d
Merge pull request #13672 from nathanielmanistaatgoogle/12531
Streamline metadata in gRPC Python.
2017-12-08 10:50:22 -08:00
Nathaniel Manista 80516e884a Streamline metadata in gRPC Python 2017-12-08 11:07:35 +00:00
Yash Tibrewal caaf416eba virtual destructor in exec_ctx, remove unneeded flush in grpc_shutdown and remove grpc_exec_ctx from .pxi files in python 2017-12-07 21:09:11 -08:00
Nathaniel Manista ae74a320dc Fix Beta API metadata looseness 2017-12-08 03:02:32 +00:00
Muxi Yan 6043006af1 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-06 22:29:12 -08:00
Muxi Yan fc38142db6 Merge commit 'b0bad8f^' into fix-stream-compression-config-interface 2017-12-06 22:02:08 -08:00
Muxi Yan 4a117f0be7 Merge e759d2a^ 2017-12-06 18:47:16 -08:00
Mehrdad Afshari aaf63d9277 Upmerge changes from v1.8.x to master 2017-12-05 10:01:41 -08:00
Mehrdad Afshari bfdaefef43 Refactor: rename 'e' to 'exception' 2017-12-04 21:49:45 -08:00
Mehrdad Afshari b030ccae05 Return UNKNOWN on GenericRpcHandler failure
A GenericRpcHandler registered on a gRPC Server is not supposed to raise
an exception and if it does so it is considered a programming defect.
However, gRPC is supposed to respond to the client with an UNKNOWN
status code.  Previously, this situation was left unhandled and the
client ended up receiving a response with CANCELLED status code.

This commit fixes the issue https://github.com/grpc/grpc/issues/13629.
2017-12-04 15:21:49 -08:00
Nathaniel Manista 562544151d
Merge pull request #13603 from nathanielmanistaatgoogle/credentials
Change client-side credentials' use of gRPC Core.
2017-12-04 08:39:08 -08:00
Nathaniel Manista 0c1f59e6d5
Merge pull request #13593 from nathanielmanistaatgoogle/12531
Refactor _plugin_wrapping.
2017-12-04 07:52:27 -08:00
Nathaniel Manista dfe8403280 Change client-side credentials' use of gRPC Core
Rather than allocating gRPC Core memory when instantiated and
retaining it until deleted, gRPC Python's credentials objects now
offer methods to create gRPC Core structures on demand.
2017-12-03 22:33:19 +00:00
Nathaniel Manista 992b8c10b4 Fix some doc string formatting and content 2017-12-03 21:11:46 +00:00
Nathaniel Manista 460e0aa9e6 Refactor _plugin_wrapping 2017-12-01 22:41:10 +00:00
Nathaniel Manista 6267d779b5
Merge pull request #13587 from nathanielmanistaatgoogle/access-token-auth-metadata-plugin
Correct AccessTokenAuthMetadataPlugin name.
2017-12-01 10:39:12 -08:00
Nathaniel Manista 6288753742 Correct AccessTokenAuthMetadataPlugin name
It was never itself a "call credentials" of any sort.
2017-12-01 16:00:17 +00:00
Vijay Pai 195cf1ebfd Move histogram to test/core/util 2017-11-30 15:02:04 -08:00
Nicolas "Pixel" Noble 7d199c95a2 Merge branch 'master' of https://github.com/grpc/grpc into v1.8.x 2017-11-30 09:08:01 +01:00
Nicolas "Pixel" Noble 361f8108e4 Merge branch 'master' of https://github.com/grpc/grpc into upmerge-from-v1.7 2017-11-29 19:31:42 +01:00
Nathaniel Manista 95bcb4924b Avoid unsupported and unintended API self-use
"Do not make undocumented and unsupported use of one part of an API
from within the implementation of another part of the same API" is one
of the rules of Abstraction Club. Not sure if it's important enough to
be the first two rules, but it's up there.
2017-11-28 22:51:07 +00:00
Nathaniel Manista 6e6e31e75b grpc.CallCredentials doc string correction 2017-11-28 22:21:14 +00:00
Mehrdad Afshari d39d007e8f
Merge pull request #13515 from mehrdada/bump-master-version
Bump 1.8.0-dev to 1.9.0-dev
2017-11-28 13:30:54 -08:00
Vijay Pai bc61c538a9
Merge pull request #13491 from vjpai/destack
Pop lockfree stack off core implementation
2017-11-28 13:05:21 -08:00
Mehrdad Afshari 14e96f9ae8 Bump 1.8.0-dev to 1.9.0-dev 2017-11-27 17:14:15 -08:00
Mehrdad Afshari 552a7ca088 Bump 1.8.0-dev to 1.8.0-pre1 2017-11-27 16:51:21 -08:00
Mehrdad Afshari 0df9c8acdc Update Python dependency to protobuf v3.5.0.post1 2017-11-27 12:52:41 -08:00
Vijay Pai 891254292e Remove lockfree stack, again 2017-11-22 10:22:28 -08:00
Nathaniel Manista bb9333c485
Merge pull request #13486 from nathanielmanistaatgoogle/elide-local-field
Elide local field by directly returning values.
2017-11-22 04:29:26 -08:00
Nathaniel Manista 9e8a6922ca
Merge pull request #13485 from nathanielmanistaatgoogle/const
Add missing const.
2017-11-21 19:03:01 -08:00
Nathaniel Manista 0eacb45a48 Elide local field by directly returning values 2017-11-22 02:10:52 +00:00
Nathaniel Manista 77d2c721cb Add missing const 2017-11-22 01:42:56 +00:00
Nathaniel Manista 76c27a5768
Merge pull request #13479 from nathanielmanistaatgoogle/certificate-configuration
Avoid abbreviation in Python API.
2017-11-21 13:38:51 -08:00
Nathaniel Manista 1628da0136 Avoid abbreviation in Python API
I should have requested this during code review of bcf083fa90
but it slipped my mind.
2017-11-21 19:22:44 +00:00
Mehrdad Afshari 90dbd2b670 Alter health/reflection packages' build criterion
Using the presence of the `*_pb2_grpc` module, as opposed to the absence
of the build script (`*_commands` module) is a problematic choice,
because even if a generated file is present, the test infrastructure may
want to regenerate it under a different environment (e.g. different
Python/proto package version).  This will ensure the protos always get
recompiled if we have a `*_commands` module present, signaling we are in
a build environment, thereby making the process hermetic.
2017-11-20 18:37:34 -08:00
Nathaniel Manista 018153cd1a
Merge pull request #13406 from nathanielmanistaatgoogle/interop_required_args
Require port and server_port interop flags.
2017-11-20 17:35:46 -08:00
Nathaniel Manista ec4791254e
Merge pull request #13188 from cauthu/python-server-cert-reload
Add Python support for server SSL certificate reloading.
2017-11-20 16:26:44 -08:00
Nicolas "Pixel" Noble 18a6837bb0 Merge branch 'v1.7.x' of https://github.com/grpc/grpc 2017-11-21 00:36:21 +01:00
Giang Nguyen bcf083fa90 Add Python support for server SSL cert reloading
Previously, a secure server is configured with SSL credentials during
initialization, and those credentials will be used for the lifetime of
the server. If the user wants the server to use new credentials, the
user has to restart the server, resulting in server downtime. This
change enables the user to optionally configure the server with a
"certificiate config fetcher," such that on every new client
connection, the server will call the config fetcher before performing
the handshake, allowing the user application to optionally specify new
certificate configuration for the server to use (the fetcher can
return a "no change" and the server continues to use its current
certificate configuration).
2017-11-20 23:09:56 +00:00
Noah Eisen ad3bdbeb4a
Merge pull request #13335 from ncteisen/inline-closure
Inline Closure
2017-11-16 14:43:06 -08:00
Mehrdad Afshari 9d1ba2efd9 Fix grpcio_{health_checking,reflection} packaging
The previous packaging structure exhibited strange behavior of
slowness when trying to use pip to install grpcio-reflection
or grpcio-health-checking in a single line with grpcio-tools.

The root cause seems to be the complicated interaction between
pip and setuptools and the fact that we ship a single .tar.gz
"source" archive for `grpcio_reflection` and
`grpcio_health_checking` packages.  `pip` tries to build this
"source" package, and our build process wants to generate
code for the `.proto` files in the package.  However, we have
already processed the `.proto` files into `_pb2.py` files in
our artifact build process, and installing `grpcio_tools`
to get `grpcio_{reflection,health_checking}` seems excessive.
The behavior gets worse since `setuptools`, while building
the package from source, tries to fetch `grpcio_tools` from
source and build that too.  This takes a while, since it
involves compiling a bunch of native code from `protobuf` and
`grpc` and requires a C compiler to boot.

This commit modifies the Python artifact for the two packages
so that they will not include the raw `.proto` files in the
distribution uploaded to PyPI, nor would they contain the
Python module that does the preprocessing code generation
from the respective .proto files.  Instead, a specific code
path is taken when the generated `_pb2_grpc` Python module is
not present in the package to provide such functionality
when built from the gRPC git repository (and hence when built
from our CI infrastructure.)
2017-11-15 16:36:25 -08:00
Nathaniel Manista 254cb369a6 Require port and server_port interop flags
Also sort arguments to ArgumentParser.add_argument in idiomatic order.
2017-11-15 20:32:00 +00:00
Noah Eisen 9268703dc9 Merge branch 'master' of https://github.com/grpc/grpc into inline-closure 2017-11-13 17:16:56 -08:00
Mehrdad Afshari d7a03c8197 Correct HEALTH_PROTO to REFLECTION_PROTO 2017-11-13 13:55:49 -08:00
ncteisen dd34f3caf6 Inline closure 2017-11-12 20:18:24 -08:00
Alexander Polcyn 9f5163eb85 Bump v1.7.x branch to 1.7.2 2017-11-01 11:07:28 -07:00
Jim King 3e0769957e
Merge pull request #13106 from Vizerai/census_update
Cleaning up census code.
2017-10-31 11:10:00 -07:00
Yuchen Zeng 9e6837d397
Merge pull request #12732 from y-zeng/connectivity_watcher
Client channel backup poller
2017-10-30 14:47:24 -07:00
Yuchen Zeng 0bad30a244 Use backup pollser instead of connectivity watcher 2017-10-30 12:06:52 -07:00
Yuchen Zeng f8ed4fa7f4 convert connectivity_watcher to cpp file 2017-10-30 12:06:52 -07:00
Yuchen Zeng 7269667f9e Add client channel connectivity watcher 2017-10-30 12:04:53 -07:00
Alexander Polcyn 40ba62f2a2 Bump v1.7.x branch to 1.7.1 2017-10-26 20:17:26 -07:00
Vizerai bb7d088ed2 Cleaning up census code. 2017-10-23 12:06:29 -07:00
Nicolas "Pixel" Noble 863a0500df Flagging 1.7.0 2017-10-21 01:48:27 +02:00
Ken Payson 9714e0376a Add thread pool reset on fork with FORKING_SUPPORT_ENABLED 2017-10-12 10:22:48 -07:00
Mark D. Roth 0e8cad5bba Merge remote-tracking branch 'upstream/master' into pick_first_subchannel_list 2017-10-12 09:13:15 -07:00
Muxi Yan f7a97e19cf build_project 2017-10-11 16:59:27 -07:00
Muxi Yan 03fc857a6f Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-10-06 18:47:09 -07:00
Mark D. Roth 5e9848e7b0 Refactor subchannel_list code out of RR and use it in PF. 2017-10-06 13:59:32 -07:00
Craig Tiller d48bd078d7 Fixes 2017-10-06 11:25:14 -07:00
Craig Tiller 5291023730 Merge github.com:grpc/grpc into flowctl+millis 2017-10-05 10:28:15 -07:00
Craig Tiller 76eab735f4 Merge github.com:grpc/grpc into flowctl+millis 2017-10-05 08:36:34 -07:00
murgatroid99 90e9140211 1.7.x is now 1.7.0-pre1 2017-10-04 14:02:22 -07:00
Yash Tibrewal ec3c138a83 Merge branch 'master' into externC 2017-10-03 16:23:42 -07:00
Yash Tibrewal bc460fa3c4 Rebasing on master for easier merging and testing 2017-10-02 19:01:25 -07:00
Muxi Yan ffa0fdd136 Fix Python build 2017-10-02 18:28:05 -07:00
murgatroid99 9887379158 Update version to 1.8.0-dev, update g word to 'generous' 2017-10-02 17:31:33 -07:00
Yash Tibrewal 26c78038a5 Trying ken's fix for windows python 2017-10-02 16:34:00 -07:00
Yash Tibrewal a0b96d4f9a Running generate projects 2017-10-02 16:34:00 -07:00
Yash Tibrewal 15ce142d65 Reverting pb.c files for now. Also fixing few more build errors 2017-10-02 16:32:27 -07:00
Yash Tibrewal 83062842c3 Changes for C to C++. Adding extern C to header files for compatibility.
Also converting to .cc
2017-10-02 16:29:41 -07:00
Yash Tibrewal 1c9b584a15 Changes for C to C++. Adding extern C to header files for compatibility. 2017-10-02 16:26:53 -07:00
Craig Tiller 1e868f0f95 Merge github.com:grpc/grpc into flowctl+millis 2017-09-29 11:18:26 -07:00
Nathaniel Manista 87997edd45 Merge pull request #12765 from nathanielmanistaatgoogle/cython
Devolve staticmethod to ordinary function.
2017-09-29 08:45:31 -07:00
Mark D. Roth ede8ed2156 Merge pull request #12374 from markdroth/plugin_credentials_api_fix
Change plugin credentials API to support both sync and async modes
2017-09-29 07:26:50 -07:00
Nathaniel Manista 103991eb73 Devolve staticmethod to ordinary function 2017-09-29 05:04:49 +00:00
Nathaniel Manista 3efe754799 "resopnse" typo correction 2017-09-28 22:38:06 +00:00
Nathaniel Manista 4ceb743c82 Drop unused staticmethods 2017-09-28 22:37:38 +00:00
Nathaniel Manista 3e3bbdff91 Raise exception instances rather than classes 2017-09-28 22:36:31 +00:00
Mark D. Roth 6456e494a8 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-28 15:16:14 -07:00
Mehrdad Afshari e249079cbe Be a tad more specific requesting error reports
This commit is a rebase of an old contribution with minor formatting
edits (cf. https://github.com/grpc/grpc/pull/8663)

[Original Author]
Masood Malekghassemi <atash@google.com>
Date:      Mon Nov 7 14:49:09 2016 -0800
Contributor is a Xoogler and the contribution is owned by Google Inc.
as per the copyright assignment agreement with the original author,
as it was drafted during their employment with Google Inc.
2017-09-26 11:31:00 -07:00
Muxi Yan 1c285b9812 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-09-25 12:38:17 -07:00
Mark D. Roth b4c01f9e29 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-25 12:36:30 -07:00
Muxi Yan 92d1bc11ba generate_project 2017-09-25 11:43:06 -07:00
Muxi Yan 31c66c576a Merge pull request #12399 from muxi/fix-stream-compression-transport-duplicate
Fix stream compression transport duplicate
2017-09-22 14:41:41 -07:00
Craig Tiller 05d77d8b21 Merge github.com:grpc/grpc into flowctl+millis 2017-09-21 13:39:01 -07:00
Nathaniel Manista 06f5e05466 Merge pull request #12666 from nathanielmanistaatgoogle/grpc_1_0_flag
Clean up even more uses of gRPC in _pb2.py files.
2017-09-21 08:04:18 -07:00
Nathaniel Manista e232f1bd5a Clean up even more uses of gRPC in _pb2.py files 2017-09-21 05:52:25 +00:00
Craig Tiller 0d958d200e Merge github.com:grpc/grpc into grpc_millis 2017-09-20 03:32:44 +00:00
Craig Tiller dd96654721 Merge github.com:grpc/grpc into grpc_millis 2017-09-19 12:31:18 -07:00
Ken Payson 2746bd5998 Fix cython definition to match c definition
This is required to compile with Cython options that
are more strict about const correctness.
2017-09-19 12:24:40 -07:00
Muxi Yan 3f583b7829 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-transport-duplicate 2017-09-19 10:12:25 -07:00
David G. Quintas 35d31c3641 Merge pull request #12622 from dgquintas/1.6.x-master-upmerge
1.6.x master upmerge
2017-09-18 20:10:24 -07:00
Nathaniel Manista 769ec3a8fa Merge pull request #12609 from nathanielmanistaatgoogle/grpc_1_0_flag
Use grpc_1_0 flag in beta_python_plugin_test.
2017-09-18 16:55:34 -07:00
Craig Tiller 50448beab3 Merge github.com:grpc/grpc into grpc_millis 2017-09-18 13:56:51 -07:00
David Garcia Quintas b352be025f Upmerge from v1.6.x branch to master 2017-09-18 11:55:52 -07:00
Nathaniel Manista 086e95ae65 Use grpc_1_0 flag in beta_python_plugin_test
Beta code elements are not generated at all in _pb2_grpc.py files.

This duplicates a lot of the in-test code generation done in
_split_definitions_test. In a future clean-up we may want to
deduplicate the common behavior, put it in a module available to all
other tests, and do all of our testing of generated code with in-test
code generation.
2017-09-18 18:01:21 +00:00
Nathaniel Manista e963820cfd Merge pull request #12615 from nathanielmanistaatgoogle/fix_with_metaclass_usage
Fix a six.with_metaclass usage mistake.
2017-09-18 09:32:28 -07:00
Nathaniel Manista 86eb4ec0ef Fix a six.with_metaclass usage mistake
I made this mistake in 2010985ab2 but
only with yesterday's release of six 1.11.0 has it started failing
("TypeError: metaclass conflict: the metaclassof a derived class must
be a (non-strict) subclass of the metaclasses of all its bases").
2017-09-18 14:22:16 +00:00
Nathaniel Manista c8cbddae0b Merge pull request #12602 from nathanielmanistaatgoogle/grpc_1_0_flag
Overhaul protoc_plugins._split_definitions_test.
2017-09-17 08:40:00 -07:00
Nathaniel Manista 719ade3cdc Overhaul protoc_plugins._split_definitions_test
We were mistaken before when we were testing _pb2.py files being
generated in one directory and _pb2_grpc.py files being generated in
another directory. Sure, that was a thing our code generator could do,
but because of the way paths and packages work in Python it wasn't a
realistic use case for actual users.

This test now tests _pb2.py files and _pb2_grpc.py files being
generated either together or independently of one another, and if
independently, in either order. Looking forward to an eventual
py_grpc_library Bazel rule, that's what actually matters.
2017-09-16 23:42:06 +00:00
Nathaniel Manista c4add66ebd Merge pull request #12603 from nathanielmanistaatgoogle/python_sanity_test
Tweak Python sanity test.
2017-09-16 14:02:28 -07:00
Nathaniel Manista 44038eb9b6 Tweak Python sanity test
- Move it out of the "unit" package, as it's not itself a unit test.

 - Suffix the test class with "Test" as we do with every other subclass
   of unittest.TestCase.

 - Add a larger-than-we'll-need-any-time-soon maxDiff so that failures
   are fully described.

 - Relax the assertion from assertListEqual to assertSequenceEqual
   since we don't actually care whether or not the sequences being
   compared are list instances.

 - Change the order of the assertions arguments to match the
   "<expected>, <actual>" convention used in our assert*Equal calls
   elsewhere throughout the test corpus.

 - Internal implementation simplifications.
2017-09-16 18:55:53 +00:00
Nathaniel Manista 6628282499 Merge pull request #12592 from nathanielmanistaatgoogle/grpc_1_0_flag
Clean up a few more uses of gRPC code elements in _pb2.py files.
2017-09-15 14:18:56 -07:00
Nathaniel Manista 8d3cc5ff0c Clean up a few more uses of gRPC in _pb2.py files
Were this not done these would break when the default behavior of gRPC
Python Protoc Plug-In is changed to be the put-gRPC-code-elements-only-
in-_pb2_grpc.py-files behavior that currently happens only when the
grpc_2_0 flag is passed.
2017-09-15 16:57:29 +00:00
Muxi Yan 3cdc6fb17e Merge remote-tracking branch 'upstream/master' into fix-stream-compression-transport-duplicate 2017-09-14 09:46:45 -07:00
Nathaniel Manista 09a02ec040 Kill (grpcio_tests/)commands.BuildProtoModules
In 1ff429da2a it appears to have been
copied out of src/python/grpcio/commands.py and not used, and it seems
to have remained without use since.
2017-09-13 20:11:30 +00:00
Craig Tiller 50e11005a1 Merge github.com:grpc/grpc into grpc_millis 2017-09-12 15:18:54 -07:00
Jan Tattermusch a5b571e22d Merge pull request #12504 from jtattermusch/bump_1_6_1
Bump version to 1.6.1
2017-09-12 22:30:35 +02:00
Jan Tattermusch ea7807876c regenerate 2017-09-12 16:56:05 +02:00
Jan Tattermusch 4fa3364975 bump version to 1.6.1 2017-09-12 12:56:45 +02:00
Nathaniel Manista c75ae78b08 Add more Cython-layer tests
I wrote these in the course of a bug hunt. I haven't yet caught and
fixed the bug, but that's no reason not to check in perfectly good
tests. :-)
2017-09-11 19:21:34 +00:00
Mark D. Roth 09fe5de45c Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-11 11:27:58 -07:00
Muxi Yan adf6c8145e Merge remote-tracking branch 'upstream/master' into fix-stream-compression-transport-duplicate 2017-09-11 10:04:57 -07:00
Nathaniel Manista eda5a4db1e Fix metadata memory leak
The gRPC Core has two styles for passing metadata: as an integer count
along with a grpc_metadata* pointer, which is used for passing metadata
into the core, and as a grpc_metadata_array, which is used for passing
metadata out of the core. The Cython layer of gRPC Python was using a
single data structure wrapping grpc_metadata_array for both purposes,
but this was complex because the core manages the slices contained in
grpc_metadata_array objects (at least those of which it is aware), so
the Cython layer had to keep track of whether or not the core was aware
of the slices it was using (and it was also defective, leaking slices).

This is solved by realigning with the Cython layer’s intended design of
mirroring as closely as possible in Python the gRPC Core API: we use
one structure for passing metadata into the core (what is now called
cygrpc.Metadata) and second, different structure for receiving metadata
out of the core (what was called cygrpc.Metadata but is now
cygrpc.MetadataArray, reflecting that it wraps the core’s
grpc_metadata_array).

All bug fixes should contain added tests preventing regression but this
doesn't because I don't know at this time how to write a does-not-leak
test for Python that fits well into our existing body of tests. Phooey.

Thanks to Dominik Janků (djanku@email.cz) for investigation and an
earlier draft of a solution.
2017-09-09 21:42:38 +00:00
Craig Tiller fabb513fe4 Merge 2017-09-08 11:45:11 -07:00
Mark D. Roth 0aee498525 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-08 08:01:29 -07:00
David Garcia Quintas 1faa48ead3 Merge branch 'master' of github.com:grpc/grpc into rename_lr_to_plugin 2017-09-07 15:29:03 -07:00
Craig Tiller da8a169928 Merge github.com:grpc/grpc into grpc_millis 2017-09-07 14:47:26 -07:00
Mark D. Roth 8941f607d6 Merge pull request #12369 from markdroth/call_combiner
Second attempt at call combiner PR
2017-09-07 14:43:47 -07:00
Ken Payson 4fe48e6579 Build fixes 2017-09-07 12:27:34 -07:00
Craig Tiller 24f30f7ac0 Garbage collect experimental pollers 2017-09-07 10:16:53 -07:00
David Garcia Quintas 0822d331df s/load_reporting/server_load_reporting 2017-09-06 18:18:48 -07:00
Muxi Yan bf5484e785 build_project 2017-09-05 13:46:18 -07:00
Nathaniel Manista 21b71b41b6 Merge pull request #11583 from nathanielmanistaatgoogle/grpc_testing
gRPC Python test infrastructure.
2017-09-05 11:23:38 -07:00
Nathaniel Manista 7c85caeaa8 gRPC Python test infrastructure
(The server-related third part of it.)
2017-09-05 01:01:20 +00:00
Ken Payson d27504f09a Changes 2017-09-01 15:06:30 -07:00
Mark D. Roth 2caf021772 Change plugin credentials API to support both sync and async modes. 2017-09-01 15:04:13 -07:00
Craig Tiller ee090ec975 Merge github.com:grpc/grpc into wc 2017-09-01 10:30:11 -07:00
Mark D. Roth 764cf04a13 Revert "Revert "Implement call combiner""
This reverts commit bf19961d0a.
2017-09-01 09:00:06 -07:00
Craig Tiller ccad38227f Merge github.com:grpc/grpc into stats 2017-08-31 12:23:53 -07:00
Mark D. Roth bf19961d0a Revert "Implement call combiner" 2017-08-29 16:59:07 -07:00
Craig Tiller 03c908fc9e Merge github.com:grpc/grpc into stats 2017-08-29 12:34:10 -07:00
Craig Tiller d9b82bdecb Merge github.com:grpc/grpc into grpc_millis 2017-08-29 12:16:56 -07:00
David Garcia Quintas dfde288148 1.6.0-pre1 -> 1.6.0 2017-08-29 11:31:50 -07:00
Mark D. Roth 76e264b8df Implement call combiner. 2017-08-25 09:03:33 -07:00
David Garcia Quintas 3499960070 Renamed load_reporting.{c,h} to load_reporting_plugin.{c,h} 2017-08-24 14:09:47 -07:00
Ken Payson f5f5ed0305 Fix syntax error on classifiers 2017-08-24 11:46:03 -07:00
Mehrdad Afshari 58c61b5520 Unskip reflection unit test since proto is fixed 2017-08-22 00:58:07 +00:00
David Garcia Quintas 1775ef91d2 Version bump to 1.6 2017-08-16 21:01:30 -07:00
David Garcia Quintas 713597f1cd Master version bump to 1.7.x 2017-08-16 20:59:05 -07:00
jiangtaoli2016 25d6fd82d1 split tsi library into two 2017-08-09 11:15:04 -07:00
jiangtaoli2016 32f66e8a81 Update build rule 2017-08-07 13:33:37 -07:00
Jiangtao Li 0211cfb277 Revert "Revert "Add TSI zero-copy frame protector"" 2017-08-07 11:24:07 -07:00
Jiangtao Li f5504a3e43 Revert "Add TSI zero-copy frame protector" 2017-08-07 10:48:46 -07:00
jiangtaoli2016 72eeb3c6dd split tsi into two libraries: tsi_interface and tsi 2017-08-04 14:40:51 -07:00
jiangtaoli2016 f3f7d3ba6c Merge branch 'master' into tsi_grpc 2017-08-04 13:45:38 -07:00
Nathaniel Manista 06b3f4dd5e Merge pull request #11964 from nathanielmanistaatgoogle/grpc_testing
gRPC Python test infrastructure.
2017-08-04 08:13:50 -07:00
Nathaniel Manista 2010985ab2 gRPC Python test infrastructure
(The channel-related second part of it.)
2017-08-03 22:38:40 +00:00
Mark D. Roth f9bf428489 Add support for service configs to c-ares resolver. 2017-08-03 14:47:23 -07:00
jiangtaoli2016 3aaa5ea028 minor fix 2017-08-02 13:36:50 -07:00
jiangtaoli2016 7001bc279b Add TSI zero-copy frame protector 2017-07-28 18:26:21 -07:00
ncteisen fb193a1e2f Merge branch 'master' of https://github.com/grpc/grpc into flow-control-v3 2017-07-28 15:47:32 -07:00
Nathaniel Manista b414268580 Merge pull request #11901 from nathanielmanistaatgoogle/grpc_testing
gRPC Python test infrastructure.
2017-07-25 19:29:32 -07:00
Ken Payson 9c420447fa Add classifiers to package details 2017-07-25 12:06:46 -07:00
Nathaniel Manista 69b7231776 gRPC Python test infrastructure
(The time-related first part of it, anyway.)
2017-07-25 18:19:35 +00:00
Craig Tiller 2014a37a5c Fix projects 2017-07-21 15:36:11 -07:00
Craig Tiller 4deeb65805 Merge github.com:grpc/grpc into grpc_millis 2017-07-20 09:50:25 -07:00
Craig Tiller b89304652b Build simplification 2017-07-19 16:24:19 -07:00
ncteisen 268a82398c Pull flow control into one module 2017-07-18 17:06:57 -07:00
Craig Tiller 280866817f Add a simple stats framework to gRPC C core 2017-07-18 14:22:19 -07:00
Mark D. Roth ea8f591b9d Merge pull request #11607 from yihuazhang/tsi_init
Add GTS plugin
2017-07-18 07:38:30 -07:00
Nathaniel Manista be803dc687 Merge pull request #11859 from nathanielmanistaatgoogle/gitignore
Narrow src/python/.gitignore to only what it needs to ignore.
2017-07-17 17:15:27 -07:00
Craig Tiller c0df1c0f9a Compiling again 2017-07-17 16:12:33 -07:00
Nathaniel Manista 1c0b20dda7 Narrow .gitignore to only what it needs to ignore
"proto" and "*.egg-info/" are no longer generated, "src/" can be
narrowed to "/src/", and "*_pb2.py" and "*_pb2_grpc.py" are covered by
.gitignore files in parent directories.
2017-07-17 20:30:32 +00:00
Yihua Zhang 1435bfc718 Add GTS plugin 2017-07-17 11:20:51 -07:00
Muxi Yan 0086d02161 Merge pull request #11189 from muxi/stream_compression
Implement stream compression lib module
2017-07-17 11:10:41 -07:00
Craig Tiller d996379030 Reset OWNERS state 2017-07-17 10:54:07 -07:00
Vijay Pai fd82a6cb4f Merge pull request #11145 from vjpai/inproc3
In-process transport
2017-07-15 20:05:26 -07:00
Vijay Pai 3d7d5f4ed2 Create inproc transport, add relevant tests, exclude irrelevant tests 2017-07-14 16:23:54 -07:00
Nicolas "Pixel" Noble 46569f238c Adding a few owners for /src/python/grpcio/grpc_core_dependencies.py 2017-07-14 17:41:47 +02:00
Mehrdad Afshari 76a316cb1f Add `set noparent` to Python OWNER files 2017-07-13 16:19:17 -07:00
Mehrdad Afshari b03e5cbb0f Add @mehrdada to python OWNERS 2017-07-13 16:09:22 -07:00
Nicolas Noble 9877189e45 Merge pull request #11310 from nicolasnoble/import
Import mutations.
2017-07-13 13:39:58 -07:00
Craig Tiller e476f7d33f Strawman OWNERS --> CODEOWNERS script 2017-07-13 08:52:00 -07:00
Mehrdad Afshari 2ca8282846 Merge pull request #11738 from mehrdada/canonica-urls
Use https://grpc.io consistently as the canonical URL
2017-07-11 11:41:14 -07:00
Ken Payson a4710a090d Revert "Remove lockfree-stack implementation that is no longer used"
This reverts commit 3d04e025bc.
2017-07-10 16:49:59 -07:00
Mehrdad Afshari bb3d95b643 Use https://grpc.io consistently as the canonical URL 2017-07-10 22:24:28 +00:00
Mehrdad Afshari 976eb7c4b4 Fetch grpc.io/release over https 2017-07-10 15:07:33 -07:00
Robert Bradshaw b0d6f115dc Remove declaration of missing field. 2017-07-10 10:33:23 -07:00
Muxi Yan e87a7e1a47 Move stream_compression to src/core/lib/compression 2017-07-05 10:09:03 -07:00
Muxi Yan c1f837ce79 Make stream compression module 2017-07-05 10:08:58 -07:00
Nicolas "Pixel" Noble 5d80dc4985 Merge branch 'master' of https://github.com/grpc/grpc into import 2017-06-26 22:01:11 +02:00
Nathaniel Manista 6613f60166 Enable wrong-import-order lint 2017-06-24 21:13:24 +00:00
Nathaniel Manista 37c83ffbed Enable redefined-variable-type lint 2017-06-24 21:03:21 +00:00
kpayson64 9cd18311a0 Merge pull request #11412 from kpayson64/upgrade_boringssl
Upgrade boringssl
2017-06-20 12:09:21 -07:00
Vijay Pai 3d04e025bc Remove lockfree-stack implementation that is no longer used 2017-06-19 15:32:44 -07:00
Ken Payson f8d6fb7a94 Update boringssl 2017-06-15 17:35:58 -07:00
Mehrdad Afshari 8fd84cfa07 Update python reflection tests to cover the higher level API 2017-06-13 14:14:07 -07:00
Craig Tiller dc16855649 Merge pull request #11336 from ctiller/ALL-the-things
Roll-up of threading changes
2017-06-08 16:03:36 -07:00
Yuchen Zeng 8f3d02106b Merge pull request #11237 from y-zeng/srv_record
Support grpclb address in the c-ares resolver
2017-06-08 13:17:02 -07:00
Craig Tiller b3899fd18b Merge github.com:grpc/grpc into ALL-the-things 2017-06-08 07:54:10 -07:00
Jan Tattermusch 4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Craig Tiller 1c8a90473d Merge github.com:grpc/grpc into ALL-the-things 2017-06-07 13:00:06 -07:00
David Garcia Quintas 87d5a3130d Implement LB policy updates 2017-06-06 19:45:58 -07:00
Yuchen Zeng b89b5011ec Merge remote-tracking branch 'upstream/master' into srv_record 2017-06-06 13:26:36 -07:00
Yuchen Zeng 4ebace71b0 Fix windows build, no_logging tests, dns_resolver_test 2017-06-05 20:47:02 -07:00
Craig Tiller 71005b169a Merge branch 'selectivity' into ALL-the-things 2017-06-02 14:36:41 -07:00
Mehrdad Afshari 5bc11d55d4 Expand pylint to grpc_health and grpc_reflection 2017-06-01 14:26:12 -07:00
David Garcia Quintas aebcdbd732 master bumped to 1.5.x 2017-05-30 14:14:27 -07:00
Michael Lumish 9baf4b19f0 Merge pull request #11309 from murgatroid99/master_1.3.x_upmerge
Master 1.3.x upmerge
2017-05-30 13:53:40 -07:00
Craig Tiller 7ebf31bcb2 Merge branch 'thread_pool' into ALL-the-things 2017-05-30 12:50:51 -07:00
Nicolas "Pixel" Noble 7bc55fdaa3 Merge remote-tracking branch 'ctiller/build-wtf' into import 2017-05-26 00:32:47 +02:00
murgatroid99 c18b9069cd Merge remote-tracking branch 'upstream/v1.3.x' into master_1.3.x_upmerge 2017-05-25 15:13:27 -07:00
kpayson64 0bd14cc89d Merge pull request #11306 from kpayson64/python_reflection
Fix Python reflection arguments
2017-05-25 13:15:42 -07:00
Ken Payson f3bb34935d Fix Python reflection arguments 2017-05-25 12:12:13 -07:00
Vizerai d74dbd3889 Merge branch 'master' of https://github.com/Vizerai/grpc into intrusive_hash_map 2017-05-23 14:10:10 -07:00
Jan Tattermusch bbfdbb19c0 bump version to 1.3.6 2017-05-23 22:48:45 +02:00
kpayson64 866190fab7 Merge pull request #11154 from kpayson64/hack_for_disconnects
Reconnect disconnected channels automatically
2017-05-22 11:07:51 -07:00
Ken Payson 8f7bc54ff2 Reconnect disconnected channels automatically 2017-05-22 10:07:25 -07:00
Ken Payson c0ce2cdf00 Update version to 1.3.5 2017-05-19 17:47:49 -07:00
Alexander Polcyn 92eb7fbc05 Bump to version 1.3.4 2017-05-18 11:49:15 -07:00
Craig Tiller 3085aa468e Merge github.com:grpc/grpc into thread_pool 2017-05-17 13:04:07 -07:00
Jan Tattermusch 90224ba893 Merge pull request #11113 from jtattermusch/python_artifact_polling_trace
Try fixing python artifact build on Windows
2017-05-17 09:05:57 +02:00
Craig Tiller 321b7d8fb0 Merge github.com:grpc/grpc into thread_pool 2017-05-16 13:42:07 -07:00
Muxi Yan a57d3c8120 Merge pull request #11138 from grpc/revert-11121-revert-10849-backward-compat
Revert "Revert "Implement Server Backward Compatibility""
2017-05-16 09:58:22 -07:00
Jan Tattermusch de030a35a2 regenerate projects 2017-05-16 18:20:26 +02:00
Ken Payson 16f76d2092 Bump to version 1.3.3 2017-05-16 08:54:22 -07:00
kpayson64 6b7f893b58 Merge pull request #11087 from kpayson64/update_python_auth
Update Python interop tests to use google-auth package
2017-05-15 23:34:47 -07:00
Craig Tiller a3eac51e1e Const correctness? for cython 2017-05-15 14:24:00 -07:00
Muxi Yan 29ff4665a8 Revert "Revert "Implement Server Backward Compatibility"" 2017-05-15 10:27:55 -07:00
Nicolas Noble 7edcce2147 Revert "Implement Server Backward Compatibility" 2017-05-12 15:35:20 -07:00
Muxi Yan a2d9d48a88 Merge pull request #10849 from muxi/backward-compat
Implement Server Backward Compatibility
2017-05-12 12:17:36 -07:00
Ken Payson 937d96d051 Update Python interop tests to use google-auth package
The oauth2client test dependency is still needed as it used by
the beta API unit tests.
2017-05-12 11:11:21 -07:00
Craig Tiller ee4b145213 Remove workqueue, covered_by_poller as concepts, get Mac build up 2017-05-12 10:56:03 -07:00
kpayson64 45b89fb11c Merge pull request #10993 from kpayson64/auth_context_python
Auth context python
2017-05-11 11:02:40 -07:00
Ken Payson 3ca8134514 Expose Auth Context in Python 2017-05-11 11:01:57 -07:00
Stanley Cheung 448a11d616 Bump to version 1.3.2 2017-05-10 15:23:29 -07:00
Craig Tiller a7785ba22e Merge github.com:grpc/grpc into uberpoll 2017-05-10 13:36:20 -07:00
kpayson64 449bf017e1 Merge pull request #11048 from kpayson64/fix_py_artifact
Fix python artifact build
2017-05-10 10:25:28 -07:00
Craig Tiller 6e86c463aa Merge github.com:grpc/grpc into uberpoll 2017-05-10 07:24:57 -07:00
Stanley Cheung 0afa9abb79 Bump to 1.3.2-pre1 2017-05-09 19:08:26 -07:00
Ken Payson b91c5fb8ba Fix python artifact build 2017-05-09 13:28:32 -07:00
kpayson64 a02b66a6cd Merge pull request #10995 from kpayson64/upgrade_protobuf
Upgrade protobuf to 3.3.0
2017-05-09 12:56:27 -07:00
Craig Tiller 581c0e479a Merge github.com:grpc/grpc into uberpoll 2017-05-09 08:19:13 -07:00
ncteisen fe9da0b80a Regain sanity 2017-05-08 18:13:20 -07:00
Ken Payson 029090628d Upgrade protobuf to 3.3.0 2017-05-08 12:18:12 -07:00
Craig Tiller d868a07d7c Merge github.com:grpc/grpc into uberpoll 2017-05-07 20:02:30 -07:00
Muxi Yan 3db618efe1 Merge remote-tracking branch 'upstream/master' into backward-compat 2017-05-05 13:32:43 -07:00
Craig Tiller 7188c9d05a Merge branch 'cq_limited_pollers' of github.com:sreecha/grpc into uberpoll 2017-05-05 13:27:02 -07:00
Sree Kuchibhotla 5a1a3b49f4 Separate this into a new poller 2017-05-05 13:14:45 -07:00
makdharma 20f2c43174 Merge pull request #10977 from makdharma/pydocfixit
Documentation fixes for python public API
2017-05-05 12:46:44 -07:00
Makarand Dharmapurikar eeb37cff4e Documentation fixes for python public API.
Contains squashed commits for several typo fixes and comments made during review.
2017-05-05 12:06:37 -07:00
Craig Tiller 1f47730377 Fix deps between grpc and tracer system 2017-05-05 11:01:25 -07:00
Craig Tiller 924353a717 Finish merge, disable new pollers until they stabilize 2017-05-05 17:36:31 +00:00
Craig Tiller 18545a3e6a Merge branch 'epoll_thread_pool' of github.com:sreecha/grpc into uberpoll 2017-05-05 17:33:44 +00:00
Craig Tiller eda29c6398 Merge branch 'epex4' into uberpoll 2017-05-05 15:21:19 +00:00
Craig Tiller 7365ec95e4 Merge branch 'timer_pool' into uberpoll 2017-05-05 15:21:09 +00:00
Craig Tiller d6ff2f0bc9 Merge github.com:grpc/grpc into hiertune 2017-05-05 15:01:20 +00:00
Craig Tiller bc7c224cac Merge branch '0bug' into timer_pool 2017-05-04 22:02:42 +00:00
murgatroid99 572cd7e5a4 Update version to 1.3.1 2017-05-04 10:02:44 -07:00
Sree Kuchibhotla 1440b0654d Merge branch 'master' into epoll_thread_pool 2017-05-03 15:42:42 -07:00
kpayson64 c4eb0ff7ae Merge pull request #10913 from kpayson64/fix_python_interop
Interop fixes
2017-05-03 10:40:44 -07:00
Craig Tiller 4d03ffbdc6 Merge github.com:grpc/grpc into timer_pool 2017-05-03 07:57:53 -07:00
Craig Tiller 0bc3b40b76 Merge github.com:grpc/grpc into hiertune 2017-05-03 07:35:51 -07:00
Sree Kuchibhotla d4fc32eacd New epoll-based polling engine with dedicated poller threads 2017-05-02 15:32:22 -07:00
Craig Tiller c3571791a5 Isolate timer checking in its own thread 2017-05-02 14:36:33 -07:00
Vizerai 0d1825d4cc Merge branch 'master' of https://github.com/Vizerai/grpc into intrusive_hash_map 2017-05-02 11:17:23 -07:00
Mark D. Roth 09e458c6cd Implement client-side load reporting for grpclb. 2017-05-02 08:13:26 -07:00
Nathaniel Manista 13cc172000 Merge pull request #7836 from thinkerou/delete_unuse_lib
Remove unused import in grpcio_health_checking.
2017-05-01 19:33:06 -07:00
Craig Tiller c610985aeb Merge branch 'hiertune' into epex4+epoll1 2017-05-01 14:26:49 -07:00
Ken Payson 7e7ac1c60c Fix Python interop tests 2017-05-01 14:17:06 -07:00
Muxi Yan e123a05913 Merge remote-tracking branch 'upstream/master' into backward-compat 2017-04-30 21:16:07 -07:00
Vizerai 0359e1260f initial commit 2017-04-28 20:06:58 -07:00
Craig Tiller ebf3a89984 Merge github.com:grpc/grpc into epoll1+hierarchical-turnstile 2017-04-28 09:27:01 -07:00
David Garcia Quintas 606945af76 1.3.0 -> 1.3.1-pre1 2017-04-27 14:26:52 -07:00
David Garcia Quintas 3ef2355eae s/1.3.0-pre/1.3.0 2017-04-27 13:59:19 -07:00
Muxi Yan f63afec89d user-agent string filtering 2017-04-27 11:14:18 -07:00
David G. Quintas 8c71bde9b0 Merge pull request #10522 from jiangtaoli2016/new_tsi
Update TSI with new non-blocking TSI interfaces.
2017-04-27 10:42:33 -07:00
Craig Tiller c67cc999e3 Initial fork for singleton epoll poller 2017-04-27 10:15:51 -07:00
Craig Tiller ac99bfff46 Merge github.com:grpc/grpc into epex4 2017-04-27 09:27:20 -07:00
Craig Tiller 737da9fdea Merge github.com:grpc/grpc into c++lame 2017-04-26 15:07:09 -07:00
Alexander Polcyn f5521c33f9 Revert "Merge branch 'master' into v1.3.x"
This reverts commit 79759fea1a, reversing
changes made to dc36f4df6a.
2017-04-26 14:18:39 -07:00
Nathaniel Manista b1faf02140 What was once Mac OS X is now called macOS 2017-04-26 20:07:58 +00:00
Nathaniel Manista ffc23ff17f Drop Python 2.7-only implication 2017-04-26 19:59:07 +00:00
Muxi Yan b53fd4df37 Add cronet_compression workaround filter 2017-04-25 17:04:29 -07:00
Craig Tiller 819cd88bd7 Allow EPOLLEXCLUSIVE tests to be omitted outside of CI 2017-04-25 13:18:22 -07:00
jiangtaoli2016 812860850c Merge branch 'master' into new_tsi 2017-04-24 15:33:41 -07:00
Craig Tiller 6f2024f4ec Merge github.com:grpc/grpc into c++lame 2017-04-24 13:33:06 -07:00
Craig Tiller 890b584ee9 Merge github.com:grpc/grpc into epex4 2017-04-24 19:33:53 +00:00
Craig Tiller 1fb0c39168 Merge github.com:grpc/grpc into epex4 2017-04-24 18:35:36 +00:00
jiangtaoli2016 6cb5e276a4 Merge branch 'master' into new_tsi 2017-04-24 09:02:11 -07:00
Craig Tiller d978a95d3c Merge github.com:grpc/grpc into hybrid 2017-04-24 08:20:03 -07:00
Craig Tiller decec09316 Merge github.com:grpc/grpc into c++lame 2017-04-21 08:08:05 -07:00
yang-g 03876f66e1 Fix http2_interop test for c++ and python 2017-04-20 14:51:58 -07:00
Craig Tiller 59db187c85 Merge branch 'tsan-c++' into hybrid 2017-04-20 19:24:57 +00:00
Craig Tiller 3df4584b9c Merge github.com:grpc/grpc into epex4 2017-04-20 19:24:41 +00:00
Craig Tiller 7bc14b5dcf Merge github.com:grpc/grpc into epex4 2017-04-20 16:14:51 +00:00
Craig Tiller 6984e1dc5e Merge github.com:grpc/grpc into c++lame 2017-04-19 14:50:31 -07:00
Craig Tiller 06a30eef36 Merge github.com:grpc/grpc into cpparena 2017-04-19 14:40:20 -07:00
Matt Kwong c602dde442 Keep _grpcio_metadata.py in GitHub repo 2017-04-18 12:10:36 -07:00
Craig Tiller c88094d64b Merge pull request #56 from kpayson64/working_mac_py_cpp
Working mac py cpp
2017-04-17 09:15:24 -07:00
Craig Tiller 26ec8fba7a Merge github.com:grpc/grpc into epex4 2017-04-17 08:38:33 -07:00
Ken Payson 0eac8aa220 Yapf_code 2017-04-17 01:58:15 -07:00
Ken Payson 63b0d11ca8 Final changes 2017-04-17 00:03:40 -07:00
jiangtaoli2016 e223a6a042 Merge branch 'master' into new_tsi 2017-04-15 10:20:51 -07:00
Craig Tiller 78d92c8a1e Merge pull request #55 from kpayson64/working_mac_py_cpp
Working mac py cpp
2017-04-14 18:56:15 -07:00
Ken Payson ae5ca1b447 Fixes 2017-04-14 16:34:26 -07:00
Ken Payson 5b034e6a4f Windows + mac dbg fix 2017-04-14 16:25:51 -07:00
Craig Tiller d69115507e Merge branch 'c++lame' of github.com:ctiller/grpc into c++lame 2017-04-14 15:18:28 -07:00
Craig Tiller 56c23f11b0 Merge github.com:grpc/grpc into c++lame 2017-04-14 15:18:20 -07:00
Craig Tiller c3666d7090 Merge github.com:grpc/grpc into hybrid 2017-04-14 13:15:56 -07:00
Craig Tiller 2c6f63731c Merge github.com:grpc/grpc into cpparena 2017-04-14 13:14:10 -07:00
Craig Tiller b4a9b8e7a2 Merge pull request #54 from kpayson64/working_mac_py_cpp
Working mac py cpp
2017-04-14 13:09:49 -07:00
Sree Kuchibhotla b81fb794a3 Merge pull request #9972 from sreecha/cq_create_api_changes
Completion Queue creation API changes (C-Core and C++ only)
2017-04-14 07:59:18 -07:00
Craig Tiller 90bb7bddd1 Merge pull request #10449 from ctiller/minimal_test
Add a test of minimal stacks, and make it pass
2017-04-14 06:48:31 -07:00
Mehrdad Afshari b575394351 Use _pb2_grpc module to access gRPC entities 2017-04-13 23:27:58 -07:00
Craig Tiller 58e6d13f1b Merge github.com:grpc/grpc into minimal_test 2017-04-13 20:50:09 -07:00
Sree Kuchibhotla 0e5fa9ebcd Merge branch 'master' into cq_create_api_changes 2017-04-13 18:36:23 -07:00
Ken Payson 571c75aa33 Switch to Makefile based build on mac 2017-04-13 16:39:37 -07:00
David Garcia Quintas 9e1acc0796 master to 1.4.0-dev 2017-04-13 16:30:15 -07:00
David Garcia Quintas d9986c3cf7 1.3.x branch cut 2017-04-13 16:20:56 -07:00
Craig Tiller cacaa1950d Merge github.com:grpc/grpc into epex3 2017-04-13 15:22:38 +00:00
Craig Tiller 28bb5c302f Merge github.com:grpc/grpc into c++lame 2017-04-13 06:58:28 -07:00
Craig Tiller 57e6485e2d Merge github.com:grpc/grpc into hybrid 2017-04-13 06:46:27 -07:00
Sree Kuchibhotla aa5a92800f Merge branch 'master' into cq_create_api_changes 2017-04-13 03:13:17 -07:00
Craig Tiller b3d308b9a1 Merge github.com:grpc/grpc into cpparena 2017-04-12 15:16:35 -07:00
Craig Tiller 80233bfde5 Merge github.com:grpc/grpc into minimal_test 2017-04-12 14:55:17 -07:00
Craig Tiller cd3ae4f33b Remove API 2017-04-12 14:19:23 -07:00
Craig Tiller f0721657ff Merge github.com:grpc/grpc into truebin 2017-04-12 08:41:29 -07:00
Craig Tiller c20fa90c60 Merge github.com:grpc/grpc into cpparena 2017-04-12 06:44:00 -07:00
Sree Kuchibhotla 4ef9ce7954 Merge branch 'master' into cq_create_api_changes 2017-04-11 14:48:19 -07:00
Craig Tiller acce275281 Merge github.com:grpc/grpc into c++lame 2017-04-11 10:46:35 -07:00
jiangtaoli2016 70928f0722 Merge branch 'master' into new_tsi 2017-04-11 10:07:01 -07:00
Craig Tiller 440df1048a Merge github.com:grpc/grpc into minimal_test 2017-04-11 09:55:16 -07:00
Craig Tiller fb75b8d429 Merge github.com:grpc/grpc into epex3 2017-04-11 09:54:07 -07:00
Craig Tiller 6b99d80410 Merge pull request #10501 from ctiller/epex2
Split event notification out of ev_epoll_linux.c
2017-04-11 09:53:41 -07:00
Craig Tiller cfab1b8758 Merge pull request #52 from kpayson64/working_mac_py_cpp
Fix mac build
2017-04-10 17:01:06 -07:00
Ken Payson 3b90055f2c Fix mac build 2017-04-10 15:53:17 -07:00
jiangtaoli2016 e69881de7f Revise based on Mark's comments. 2017-04-10 14:45:23 -07:00
Craig Tiller eb36437e85 Merge github.com:grpc/grpc into c++lame 2017-04-07 17:08:42 -07:00
Craig Tiller 8ebb5443de Update build.yaml 2017-04-07 16:01:55 -07:00
Sree Kuchibhotla 7b9f97bfb8 Merge branch 'master' into cq_create_api_changes 2017-04-07 13:44:34 -07:00
Craig Tiller f4360d77d4 Fix build, fix epollex detection 2017-04-07 08:51:00 -07:00
Craig Tiller 5f399d173b Merge github.com:grpc/grpc into minimal_test 2017-04-07 06:46:08 -07:00
Sree Kuchibhotla a6ff103446 Merge branch 'master' into cq_create_api_changes 2017-04-06 13:09:17 -07:00
Craig Tiller 71d6ce65d4 Merge deadline_init/deadline_start 2017-04-06 09:10:09 -07:00
Craig Tiller a24b971214 Rename compress_filter --> message_compress_filter 2017-04-06 09:03:21 -07:00
Craig Tiller d6d31b006a Merge github.com:grpc/grpc into minimal_test 2017-04-06 08:56:10 -07:00
Craig Tiller 376887d213 Split event notification out of ev_epoll_linux.c 2017-04-06 08:27:03 -07:00
Jan Tattermusch 61f729fe1a Merge remote-tracking branch 'upstream/v1.2.x' into upmerge_v12x 2017-04-06 17:11:44 +02:00
Craig Tiller 9a29464d67 Merge github.com:grpc/grpc into cpparena2 2017-04-05 15:07:46 -07:00
Mehrdad Afshari d4da50b2cb Add manifest to fix grpcio_reflection packaging 2017-04-05 14:48:12 -07:00
Craig Tiller 0357187b4e Merge github.com:grpc/grpc into minimal_test 2017-04-05 12:24:25 -07:00
Craig Tiller edfce58afb Merge github.com:grpc/grpc into truebin 2017-04-05 06:49:43 -07:00
Craig Tiller 5de46568ce Merge github.com:grpc/grpc into cpparena 2017-04-04 17:08:12 -07:00
Mehrdad Afshari 0cbfad62cf Support custom pool in enable_server_reflection 2017-04-04 16:43:37 -07:00
Craig Tiller ee787caf0e Merge github.com:grpc/grpc into truebin 2017-04-04 15:54:40 -07:00
Craig Tiller c8f62bcb03 Add new setting for true-binary mode 2017-04-03 16:25:45 -07:00
Craig Tiller 3be7dd0e79 Optionalize deadline checking 2017-04-03 14:30:03 -07:00
Craig Tiller af76743e33 Optionalize compress, gather all the http2 filter bits together in ext/ 2017-04-03 13:54:31 -07:00
Craig Tiller 9b3648a28e Optionalize message_size_filter 2017-04-03 12:25:19 -07:00
Jan Tattermusch 0be726b34d bump version to 1.2.2 2017-04-03 20:04:34 +02:00
Sree Kuchibhotla c1a32fa46e Merge branch 'master' into cq_create_api_changes 2017-04-01 17:36:15 -07:00
Craig Tiller 5f95f1a4ca Merge github.com:grpc/grpc into cpparena 2017-04-01 07:42:20 -07:00
Craig Tiller 6d4894e9d6 optionalize max_age 2017-03-31 17:22:06 -07:00
Craig Tiller 9eb0fdec00 Reorganize ext tree
- filters live under filters
- lb_policy, resolver implementations (being part of client_channel) live under client_channel
2017-03-31 16:59:30 -07:00
Craig Tiller 9c54a0c12c Merge pull request #10382 from ctiller/checks
Reinstate filegroup dependency checks, fix fallout
2017-03-31 16:10:35 -07:00
Yuchen Zeng 6715a15fe1 Merge pull request #10318 from y-zeng/server_channel_max_age
Max age for server channels
2017-03-31 10:59:04 -07:00
Craig Tiller dd36b15315 Call ref/unref, bugfixes 2017-03-31 08:27:28 -07:00
Sree Kuchibhotla e04906dc54 Merge branch 'master' into cq_create_api_changes 2017-03-30 13:20:00 -07:00
Craig Tiller 29b527fa30 Reinstate one check, fix fall out 2017-03-30 10:27:20 -07:00
Ken Payson 484871bb03 Bump version to 1.2.1 2017-03-28 18:00:33 -07:00
kpayson64 e417739682 Merge pull request #10345 from kpayson64/real_spinlock_fix
Fix Python poll() server spinlock bug
2017-03-28 17:34:14 -07:00
Ken Payson c9a3aaaa54 Fix Python poll() server spinlock bug 2017-03-28 16:20:04 -07:00
Craig Tiller 134fed3a85 Move src/core/lib/tsi --> src/core/tsi 2017-03-28 14:27:18 -07:00
Yuchen Zeng a809ea5c14 Add max_age_filter 2017-03-28 02:11:49 -07:00
Sree Kuchibhotla 67647d4b1d Merge branch 'master' into cq_create_api_changes 2017-03-27 16:40:22 -07:00
makdharma c4478a103b Merge pull request #10222 from makdharma/caching_with_uri
using URI query to communicate payload
2017-03-26 21:05:20 -07:00
Sree Kuchibhotla 79441baed9 Merge branch 'master' into cq_create_api_changes 2017-03-24 15:01:23 -07:00
Yuchen Zeng f466ae116e Merge pull request #7771 from y-zeng/cares_buildin
Async DNS resolver with pre-configured c-ares
2017-03-24 14:52:04 -07:00
Sree Kuchibhotla b6512cf940 Merge pull request #10245 from sreecha/cq_factory_api
Introduce grpc_completion_queue_factory API
2017-03-24 13:23:44 -07:00
Alexander Polcyn 69c2717c80 bump v1.2.x branch version to 1.2.1-pre2 2017-03-24 11:39:52 -07:00
Makarand Dharmapurikar a128b7a8a5 Merge branch 'master' of https://github.com/grpc/grpc into caching_with_uri 2017-03-24 11:12:20 -07:00
Sree Kuchibhotla 944a56fa84 Merge branch 'master' into cq_create_api_changes 2017-03-24 10:55:39 -07:00
Nicolas Noble af61d0b7b4 Merge pull request #10293 from nicolasnoble/upmerge-1.2.0
Upmerge from 1.2.0
2017-03-24 10:06:43 -07:00
Sree Kuchibhotla 7b81147cc9 Merge branch 'master' into cq_create_api_changes 2017-03-24 09:52:02 -07:00
Michael Warres c46b3ebeb9 Add socket factory support to udp_server.c 2017-03-24 11:33:20 -04:00
Nicolas "Pixel" Noble e44a50ffd7 Merge branch 'v1.2.x' of https://github.com/grpc/grpc into upmerge-1.2.0 2017-03-24 00:54:47 +01:00
Yuchen Zeng d3360844f3 Merge remote-tracking branch 'upstream/master' into cares_rebase 2017-03-23 10:58:49 -07:00
Mehrdad Afshari 02735941e4 Add pylint comment to justify unused import 2017-03-23 10:27:30 -07:00
Mehrdad Afshari 626efa67f0 Temporarily disable testFileContainingExtension
There is a behavioral discrepency in
`DescriptorPool.FindFileContainingSymbol` between the two
implementations of the protobuf python library (one of which is purely
python, and the other utilizes a python extension library written in
C++).

protobuf on PyPI is distributed via various prebuilt wheels, and our CI
setup fetches the relevant one for each platform.  Our Linux instances
end up fetching a pre-compiled C++ version of the library, whereas our
Mac and Windows builders automatically get the pure python version.
This test fails (and our reflection implementation itself) succeeds with
the C++ implementation but fails with the pure python version.

The test will be temporarily disabled pending a fix for
https://github.com/google/protobuf/issues/2882
2017-03-23 09:19:23 -07:00
Mehrdad Afshari 7472e13095 Sort service_names returned by python reflection
While not strictly required by the protocol,
it will make testing easier.
2017-03-23 09:18:48 -07:00
Mehrdad Afshari 7be69fcc1c Add helper function for enabling python reflection 2017-03-23 09:18:15 -07:00
Mehrdad Afshari 9ca61fd05f Add all_extension_numbers_of_type in py reflection 2017-03-23 09:17:24 -07:00
Mehrdad Afshari 03d9500ec0 Test all_extension_numbers_of_type 2017-03-23 09:15:33 -07:00
Mehrdad Afshari 8be4e03af2 Add ReflectionServicer._file_containing_extension 2017-03-23 09:14:31 -07:00
Mehrdad Afshari a0cbe8c0f7 Fix and un-skip testFileContainingExtension
Fix and un-skip the test for _file_containing_extension
in python reflection service to refer to the correct proto
and expect the right object to be returned. Enable it too.
2017-03-23 09:12:59 -07:00
Sree Kuchibhotla 12081c0304 Merge branch 'cq_create_api_changes' into cq_create_api_changes_with_factory 2017-03-22 13:00:18 -07:00
Sree Kuchibhotla e414d6cf00 Merge branch 'master' into cq_create_api_changes 2017-03-22 13:00:04 -07:00
Sree Kuchibhotla 56b1032feb Python changes 2017-03-22 12:37:17 -07:00
Yuchen Zeng 937302b0df Merge remote-tracking branch 'upstream/master' into cares_rebase 2017-03-22 10:54:31 -07:00
Makarand Dharmapurikar 226098c9f1 added b64.c to the sources neede for grpc_base 2017-03-22 10:53:37 -07:00
Mark D. Roth 5c42af696d Merge pull request #9655 from markdroth/remove_initial_connect_string
Remove initial_connect_string hack.
2017-03-22 08:14:06 -07:00
Sree Kuchibhotla 5ea3bbd418 Merge branch 'cq_factory_api' into cq_create_api_changes_with_factory 2017-03-21 17:18:41 -07:00
Sree Kuchibhotla 098110d882 Merge branch 'master' into cq_factory_api 2017-03-21 16:39:11 -07:00
Sree Kuchibhotla 313b895064 Merge branch 'master' into cq_create_api_changes 2017-03-21 16:38:57 -07:00
Sree Kuchibhotla bf18428740 Introduce grpc_completion_queue_factory API
Just the API and a bare-bone implementation
2017-03-21 15:18:58 -07:00
Mark D. Roth 62d1dd920e Merge pull request #9850 from markdroth/retry_throttle
Retry throttling implementation.
2017-03-21 13:40:20 -07:00
Mark D. Roth 14ef5d83e2 Merge remote-tracking branch 'upstream/master' into remove_initial_connect_string 2017-03-21 13:08:53 -07:00
Sree Kuchibhotla 36c370793b Merge branch 'master' into cq_create_api_changes 2017-03-21 10:28:40 -07:00
Alexander Polcyn 3e30832cca bump v1.2.x branch to 1.2.1-pre1 2017-03-20 17:00:45 -07:00
David Garcia Quintas 69e5a28635 Going for 1.2.0 2017-03-20 12:51:17 -07:00
Nathaniel Manista 496734412b Merge pull request #10212 from nathanielmanistaatgoogle/update-tests
Update tests to current gRPC code elements.
2017-03-20 12:49:27 -07:00
Nathaniel Manista bb7484cee7 Update tests to current gRPC code elements 2017-03-17 23:42:39 +00:00
Yuchen Zeng 9bc0d8200e Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-03-17 16:00:17 -07:00
Yuchen Zeng 2c977084c8 Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-03-17 15:57:23 -07:00
Yuchen Zeng f39cf46842 Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-03-17 15:53:39 -07:00
kpayson64 252205cef8 Merge pull request #10022 from kpayson64/resource_exauhsted
Add max_requests argument to server
2017-03-17 15:38:27 -07:00
Yuchen Zeng d9efa4a5fd Merge pull request #10123 from y-zeng/android
Fix android build
2017-03-17 11:04:49 -07:00
Mark D. Roth f3792b2024 Merge remote-tracking branch 'upstream/master' into remove_initial_connect_string 2017-03-17 11:04:09 -07:00
Ken Payson 39a5932097 Add max_requests argument to server
If the server is already serving max requests, return RESOURCE_EXHAUSTED
2017-03-17 10:38:50 -07:00
Mark D. Roth 693d2b48ab Merge remote-tracking branch 'upstream/master' into retry_throttle 2017-03-17 09:53:35 -07:00
Mark D. Roth fecba535d9 Switch to using a CAS loop to update the token value. 2017-03-17 09:50:48 -07:00
kpayson64 b4121cad15 Merge pull request #10188 from kpayson64/another_gil_fix
Initialize GIL at startup
2017-03-17 08:59:02 -07:00
kpayson64 7655748917 Merge pull request #10186 from kpayson64/bump_pre_version
Bump 1.2.x version to pre-2
2017-03-16 16:15:14 -07:00
Ken Payson 867e35a458 Initialize GIL at startup 2017-03-16 14:05:12 -07:00
Ken Payson 12ca7d319c Bump 1.2.x version to pre-2 2017-03-16 11:01:06 -07:00
Nathaniel Manista 6b2662adf5 Merge pull request #10174 from nathanielmanistaatgoogle/health
Update health to current gRPC code elements.
2017-03-15 18:12:37 -07:00
Craig Tiller 41373d0457 Merge pull request #10122 from ctiller/arena
Arena allocator for grpc
2017-03-15 16:16:30 -07:00
Ken Payson 8b371e23c0 Change GIL aquire functions to make it c-core thread safe 2017-03-15 16:15:13 -07:00
Nathaniel Manista 488d419125 Update health to current gRPC code elements 2017-03-15 23:09:52 +00:00
Mark D. Roth 3a91707ace Merge remote-tracking branch 'upstream/master' into retry_throttle 2017-03-15 08:06:21 -07:00
Yuchen Zeng 68745bbf8a Resolve dependency issues 2017-03-14 18:00:48 -07:00
Yuchen Zeng 47155ed254 Split ifaddr related functions out into a separate file 2017-03-13 17:18:07 -07:00
Craig Tiller 9202b3fdfd Arena allocator for grpc 2017-03-12 22:30:38 -07:00
Siddharth Shukla fe6bc6999c Skip split_definitions_test if PyPy
Skip SameSeparateTest, SameCommonTest, SplitCommonTest, and
SplitSeparateTest if the interpreter is PyPy.
2017-03-12 17:28:08 +01:00
kpayson64 32f32ea0b2 Merge pull request #9990 from kpayson64/fill_in_fields
Add package details to grpcio/grpcio-tools
2017-03-10 15:35:55 -08:00
Ken Payson 78354300bf Add package details to gRPC Packages 2017-03-10 10:47:45 -08:00
David Garcia Quintas 904e7f53ae Introducing 1.2.0-pre1 2017-03-09 15:02:19 -08:00
David Garcia Quintas 74cec10619 Bumped version to 1.3.0-dev 2017-03-09 15:00:26 -08:00
Sree Kuchibhotla 89da88c7b4 Merge branch 'master' into cq_create_api_changes 2017-03-08 14:45:23 -08:00
Nathaniel Manista 04b4d4c54b Merge pull request #9974 from nathanielmanistaatgoogle/lint
More lint.
2017-03-08 12:54:27 -08:00
Sree Kuchibhotla 36108cce7d Merge branch 'master' into cq_create_api_changes 2017-03-08 10:40:38 -08:00
Mehrdad Afshari 9b3c73d1cd Updated protobuf dependency for python to 3.2.0 2017-03-07 22:10:15 +00:00
Sree Kuchibhotla b4a6f908ca Python: Completion queue creation API changes 2017-03-06 10:57:34 -08:00
Nathaniel Manista 26515ab5ba Merge pull request #9967 from nathanielmanistaatgoogle/lint
Lint progress.
2017-03-03 08:07:23 -08:00
Nathaniel Manista 3ec1366eb6 Enable unused-argument lint 2017-03-03 06:23:53 +00:00
Nathaniel Manista 8fccf59d04 Enable too-many-return-statements lint 2017-03-03 06:08:02 +00:00
Nathaniel Manista c3038a5cb3 Suppress and enable too-many-locals lint 2017-03-03 06:00:01 +00:00
Nathaniel Manista db0f85b010 Configure and enable too-many-arguments lint 2017-03-03 05:59:10 +00:00
Nathaniel Manista 18f025e0a3 Fix and enable super-init-not-called lint 2017-03-03 05:57:37 +00:00
Nathaniel Manista af39256c01 Fix and enable redefined-outer-name lint 2017-03-03 01:06:20 +00:00
Nathaniel Manista 0ee3e3ec2d Merge pull request #9866 from nathanielmanistaatgoogle/lint-fixes
Lint fixes.
2017-03-02 16:58:44 -08:00
Nathaniel Manista b16d765c0c Work toward enabling cyclic-import lint 2017-03-02 23:43:26 +00:00
Nathaniel Manista 4531cbe937 Selectively suppress and enable broad-except lint 2017-03-02 23:43:16 +00:00
Nathaniel Manista f4aca31d21 Merge pull request #9961 from nathanielmanistaatgoogle/_connectivity_channel
Remove grpc.beta._connectivity_channel.
2017-03-02 13:48:52 -08:00
Nathaniel Manista e151a21ee4 Fix and enable unused-variable lint
In _server.py start_server_batch_result is removed because
start_server_batch can only ever fail as a result of a programming
defect in gRPC Python and not the application. This differs from some
analogous-appearing points in _channel.py where the result of
start_client_batch is checked because at those points it is possible
for a failure to indicate a programming defect on the part of the
application.
2017-03-02 21:39:51 +00:00
Nathaniel Manista d5e3766027 Fix and enable no-value-for-parameter lint 2017-03-02 21:39:51 +00:00
Nathaniel Manista 7983213fd2 Fix and enable unused-import lint 2017-03-02 21:39:51 +00:00
Nathaniel Manista 017365d072 Fix and enable no-self-use lint 2017-03-02 21:39:40 +00:00
Noah Eisen 0093d6684f Merge pull request #9931 from ncteisen/to-time-dot-sleep-perchance-to-dream
Add sleep(1) to Python negative http2 client
2017-03-02 13:04:38 -08:00
Nathaniel Manista 98a4c6f33f Remove grpc.beta._connectivity_channel
This should have been removed in, and has done anything but fail on
import since, 4d425522bf.
2017-03-02 19:13:15 +00:00
kpayson64 07ad1b9c7c Merge pull request #9938 from kpayson64/increase_epsilon
Increase epsilon in thread cleanup test
2017-03-01 12:05:28 -08:00
Mark D. Roth 02612c163e Merge remote-tracking branch 'upstream/master' into retry_throttle 2017-03-01 10:58:13 -08:00
kpayson64 47d7a08e1e Increase epsilon in thread cleanup test 2017-03-01 10:39:49 -08:00
Noah Eisen da22274401 Add sleep(1) to Python negative http2 client
client now conforms to spec. See
https://github.com/grpc/grpc/blob/master/doc/negative-http2-interop-test-descriptions.md
2017-03-01 08:30:57 -08:00
Nathaniel Manista fc39593a08 Add missing unittest.main call
This should have been included in 48226a2f1f.
2017-02-28 23:09:35 +00:00
Michael Lumish 63852c933b Merge pull request #9694 from nicolasnoble/upmerge_from_1_1_x
Upmerge from 1.1.x
2017-02-23 14:39:37 -08:00
Mark D. Roth d6d192d005 Retry throttling implementation. 2017-02-23 08:58:42 -08:00
Nathaniel Manista 90798ab199 Fix and enable no-member lint 2017-02-22 18:56:55 +00:00
Paul Marks 69c0437e75 Merge pull request #9634 from pmarks-net/master
Connect to "localhost" from interop clients.
2017-02-16 16:34:42 -08:00
Nathaniel Manista a52d3bb39b Fix and enable simplifiable-if-statement lint 2017-02-15 23:00:05 +00:00
Nathaniel Manista 402aca6621 Fix and enable dangerous-default-value lint
The fix is more of an elision and the code in the changed area is
reflowed.
2017-02-15 22:43:52 +00:00
Nathaniel Manista 3577f63136 Fix and enable logging-format-interpolation lint 2017-02-15 22:09:16 +00:00
kpayson64 86e9f3564a Merge pull request #9709 from kpayson64/preserve_call
Store cython-level call in grpc.Call
2017-02-15 09:43:50 -08:00
Ken Payson d5d9d9e672 Store cython-level call in grpc.Call
This allows inspecting c-level properties of the call after completion.
2017-02-14 15:01:26 -08:00
Nicolas "Pixel" Noble e00d63f3ea Merge remote-tracking branch 'google/v1.1.x' 2017-02-13 23:37:17 +01:00
kpayson64 dfa88e95c5 Merge pull request #9672 from kpayson64/v1_1_x_cherrypick
Use unique namespace for each python protoc test
2017-02-10 13:56:04 -08:00
Ken Payson 6193f23f94 Use unique namespace for each python protoc test
Using the same namespace results in errors when using the c-extension
version of protobuf due to name collisions
2017-02-10 12:09:11 -08:00
Ken Payson dbf571ea07 Use unique namespace for each python protoc test
Using the same namespace results in errors when using the c-extension
version of protobuf due to name collisions
2017-02-10 11:06:23 -08:00
Mark D. Roth 1dcd922ce6 Remove initial_connect_string hack. 2017-02-09 09:40:07 -08:00
Yuchen Zeng f44e781d01 Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-02-08 20:15:20 -08:00
Nathaniel Manista 87562c83e4 Merge pull request #7432 from thinkerou/fix_undefined_name
Fix undefined name found by pyflakes.
2017-02-08 11:36:20 -08:00
thinkerou 2b43481ff3 fix undefined name 2017-02-08 13:05:07 +08:00
Michael Lumish fa301e3674 Merge pull request #9613 from murgatroid99/node_disable_libuv_core
Disable libuv core changes in Node library and bump version number
2017-02-07 18:20:39 -08:00
David Garcia Quintas 012915045f Secure naming support for gRPCLB 2017-02-07 17:41:57 -08:00
Paul Marks 3a5bba0a20 Connect to "localhost" from interop clients.
This is for compatibility with IPv6-only environments; see the Google
bug b/32531998.

Note that InteropClient.cs and http2_client.cc don't appear to be tested
by our internal branch, but I've included them for consistency.
2017-02-07 16:28:09 -08:00
Nathaniel Manista 9e61e08065 User-Agent "Python-gRPC-" → "grpc-python/"
This brings gRPC Python into conformance with the recommendation in
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md.
2017-02-07 19:31:03 +00:00
David G. Quintas b4726ff0a6 Merge pull request #9598 from kpayson64/pin_yapf
Re-run yapf code, and pin version
2017-02-06 22:29:13 -08:00
murgatroid99 2b3e12ceee Update version to 1.1.2 2017-02-06 17:42:07 -08:00
Ken Payson 0f5e3a87c2 Ran Yapf code, pinned version 2017-02-06 10:42:45 -08:00
Ken Payson 2fa5f2f978 Re-run yapf code, and pin version 2017-02-06 10:27:09 -08:00
Yuchen Zeng 86d2115553 Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-02-01 16:12:08 -08:00
Craig Tiller 3a63d4c005 Merge github.com:grpc/grpc into bwest 2017-02-01 15:27:24 -08:00
Michael Lumish 0e8763ffb1 Merge pull request #9533 from murgatroid99/version_1.1.1_bump
Bump version to 1.1.1
2017-02-01 09:57:38 -08:00
murgatroid99 e15b5a42af Bump version to 1.1.1 2017-01-31 16:23:54 -08:00
Yuchen Zeng 92edda5129 Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-01-31 15:59:19 -08:00
Craig Tiller a5b1a89779 Merge github.com:grpc/grpc into bwest 2017-01-31 15:56:57 -08:00
Craig Tiller 6e0a4760c4 Merge github.com:grpc/grpc into version3 2017-01-31 15:54:32 -08:00
murgatroid99 ba7c059c64 Run yapf_code on v1.1.x 2017-01-31 13:42:33 -08:00
Craig Tiller 5cad46e218 Bump master version numbers 2017-01-30 15:32:24 -08:00
Nicolas "Pixel" Noble 4dcb7862bf Flagging version 1.1.0. 2017-01-30 23:28:06 +01:00
David Garcia Quintas 4a1fa69d2d ran yapf 2017-01-30 10:29:49 -08:00
Mark D. Roth 203de0fa41 Really fix python. 2017-01-28 02:23:51 +01:00
Mark D. Roth 26e973e36e Fix cython bug. 2017-01-28 02:23:42 +01:00
Mark D. Roth e6dd773dff Move parameters for all grpc_op types into their own sub-structs. 2017-01-28 02:23:30 +01:00
Craig Tiller 95ccbc2d6f Merge branch 'bm_countwrites' into bwest 2017-01-27 14:10:09 -08:00
Craig Tiller 48af8b2721 Merge github.com:grpc/grpc into bwest 2017-01-26 13:58:52 -08:00
Craig Tiller afceb2edbd Merge github.com:grpc/grpc into rollfwd 2017-01-26 12:21:28 -08:00
Mark D. Roth 4ffcb2058d Merge pull request #9465 from markdroth/core_api_change
Move parameters for all grpc_op types into their own sub-structs.
2017-01-26 12:08:11 -08:00
Craig Tiller c63aaf1650 Merge branch 'cp' into rollfwd 2017-01-26 08:51:30 -08:00
Mark D. Roth db74844fb6 Really fix python. 2017-01-26 08:04:15 -08:00
Yuchen Zeng bc8a70445d Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-01-25 16:10:18 -08:00
Mark D. Roth 02adb8914f Fix cython bug. 2017-01-25 15:02:08 -08:00
Mark D. Roth 448c1f002c Move parameters for all grpc_op types into their own sub-structs. 2017-01-25 10:44:30 -08:00
Mark D. Roth 6f690f3483 Merge pull request #9372 from markdroth/proxy_mapper
Add proxy mapper hook.
2017-01-25 10:42:34 -08:00
Mark D. Roth 674fe85d11 Merge pull request #9383 from markdroth/http_connect_channel_arg
Trigger HTTP CONNECT handshaker via channel args.
2017-01-25 10:41:18 -08:00
Craig Tiller 0f2e2e4a42 Merge github.com:grpc/grpc into rollfwd 2017-01-24 10:53:20 -08:00
Yuchen Zeng d32dc3a188 Remove fallback files 2017-01-23 18:31:51 -08:00
Yuchen Zeng e38698e5bd Merge remote-tracking branch 'upstream/master' into cares_bazel_rule 2017-01-23 17:19:53 -08:00
Yuchen Zeng 6694bb079a Migrate to the new c-ares dir 2017-01-23 17:09:51 -08:00
Nicolas "Pixel" Noble da83b376eb Changing versions from -dev to -pre1 on the release branch. 2017-01-23 23:52:35 +01:00
Masood Malekghassemi c9cf96d2e1 Merge pull request #9127 from soltanmm-google/if-you-rely-only-on-yourself-fewer-things-might-go-wrong-but-fewer-things-might-go-right
Don't leak Py exceptions without calling gRPC core
2017-01-23 17:05:49 -05:00
Masood Malekghassemi 6b890d1dd3 Run yapf over Python code 2017-01-23 15:10:28 -05:00
Masood Malekghassemi 0b1bb2d418 Don't leak Py exceptions without calling gRPC core 2017-01-23 15:10:27 -05:00
David G. Quintas f2c5c1e541 Merge pull request #9428 from grpc/revert-8842-metadata_filter
Revert "Metadata handling rewrite"
2017-01-23 12:08:46 -08:00
Masood Malekghassemi f621a0fabe Merge pull request #9422 from soltanmm-google/as-filthy-rich-as-our-cabinet-secretaries
Add __richcmp__ to cygrpc.Timespec
2017-01-23 14:25:37 -05:00
Craig Tiller 7c70b6c144 Revert "Revert "Metadata handling rewrite""
This reverts commit 5e01e2ac97.
2017-01-23 07:48:42 -08:00
Craig Tiller 5e01e2ac97 Revert "Metadata handling rewrite" 2017-01-20 18:11:52 -08:00
Nathaniel Manista c84725fd02 Merge pull request #9420 from nathanielmanistaatgoogle/time_remaining
Fix grpc._server._Context.time_remaining.
2017-01-20 16:42:03 -08:00
Nicolas Noble 2e225c1d80 Merge pull request #9340 from stanley-cheung/update-boringssl
Update boringssl
2017-01-20 15:50:34 -08:00
Masood Malekghassemi a66dad5db6 Add __richcmp__ to cygrpc.Timespec 2017-01-20 18:41:52 -05:00
Nathaniel Manista 7d561a6328 Fix grpc._server._Context.time_remaining
A weak test is included; proper test coverage will come later.
2017-01-20 23:14:46 +00:00
Craig Tiller ff1f160a26 Merge github.com:grpc/grpc into bwest 2017-01-20 13:55:35 -08:00
Craig Tiller b7b7486c4b Merge github.com:grpc/grpc into metadata_filter 2017-01-20 11:31:47 -08:00
Stanley Cheung b39942f06f Update boringssl to latest chromium-stable 2017-01-20 11:07:08 -08:00
Craig Tiller c27b5b7933 Merge branch 'metadata_filter' of github.com:ctiller/grpc into metadata_filter 2017-01-20 06:54:38 -08:00
Noah Eisen 659e563e2e Merge pull request #9348 from ncteisen/python_negative_http2_fix
Change expected error code in Python negative interop client
2017-01-19 22:31:35 -08:00
Yuchen Zeng e02cbebd02 Merge remote-tracking branch 'upstream/master' into cares_buildin 2017-01-19 16:33:30 -08:00
Masood Malekghassemi c4d10dfb1b Fix Python memory errors
... but for real this time.
2017-01-19 16:21:45 -08:00
Nathaniel Manista d9ed84f66e Doc string fix and tweaks
In those places where we return an object that implements two
interfaces (let's say P and Q), consistently describe it as a "P-Q"
rather than once mentioning that it is a P and describing it as a "Q"
for the rest of prose.
2017-01-19 22:30:52 +00:00
ncteisen af2c01e73e Expect INTERNAL in Python negative interop client
The test now expects to receive StatusCode.INTERNAL when it receives a
RST_STREAM from the server in order to comply with
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md

Also added wait for ready behavior on the client channel.
2017-01-19 11:41:25 -08:00
Yuchen Zeng 04ec4701e3 Merge remote-tracking branch 'upstream/master' into cares_buildin 2017-01-18 18:49:07 -08:00
Craig Tiller f593d88c78 Merge github.com:grpc/grpc into metadata_filter 2017-01-18 15:45:43 -08:00
Mark D. Roth d58a985a56 Move detection of HTTP CONNECT proxy from DNS resolver to client channel. 2017-01-18 08:28:57 -08:00
Craig Tiller 5acc826ace Merge github.com:grpc/grpc into metadata_filter 2017-01-17 17:20:14 -08:00
Masood Malekghassemi a47245112b Fix Python errors 2017-01-17 16:49:17 -08:00
Nathaniel Manista 5aa2bcfd4d Pass an iterator rather than an iterable
This should have been included in dd52a31337
but was missed because it falsely passes almost all of the time.
2017-01-17 23:31:17 +00:00
Mark D. Roth 79f2a24644 Add proxy mapper hook. 2017-01-17 14:13:33 -08:00
Masood Malekghassemi cc793703bf Run Python formatting 2017-01-17 10:55:33 -08:00
Craig Tiller a36bdc162a Merge pull request #44 from soltanmm-google/meta_meta-meta-MUSHROOM-MUSHROOM-Snaaaaakkeeeee-oohhhh-it's-a-snaaaaakkeeeeee
Paper-over Python errors
2017-01-13 18:16:39 -08:00
Masood Malekghassemi 62d895bc77 Paper-over Python errors
This reads directly off of the slices rather than ref'ing and unref'ing
them. There's likely some silliness w.r.t. interned slices and
references to them outliving their associated call objects, but we are
just ignoring that for now.
2017-01-13 17:40:30 -08:00
Craig Tiller d425712427 Merge github.com:grpc/grpc into bwest 2017-01-13 09:33:57 -08:00
Craig Tiller 5ffd766a5e Merge github.com:grpc/grpc into metadata_filter 2017-01-10 15:28:25 -08:00
ncteisen d70c8bb871 Implement wait-for-ready behavior in Python stress and qps client
The clients now block until the channel is in the READY state. This
fixes some test flakiness issues we have had.
2017-01-10 11:59:28 -08:00
Craig Tiller d04dc4da81 Merge github.com:grpc/grpc into fix_errors 2017-01-09 14:40:28 -08:00
Mark D. Roth 6cf58c8173 Merge pull request #9129 from markdroth/handshaker_plugin
Handshaker plugin mechanism
2017-01-09 09:43:47 -08:00
Craig Tiller 732351f826 Start fixing http error --> grpc status conversion 2017-01-06 14:52:01 -08:00
Craig Tiller 0d8e0b138d Merge github.com:grpc/grpc into fix_errors 2017-01-06 13:59:30 -08:00
Mark D. Roth 1f0f23cc5a Handshaker plugin mechanism. 2017-01-06 13:07:19 -08:00
Nathaniel Manista c6a0606080 v1.0.x → master upmerge
Manual resolution:

- New test added in src/python/grpcio_test/tests/tests.json

- Timeout-related edits resolved in tools/run_tests/run_tests.py

Manual changes:

- Pass request iterator rather than request sequence in
  _reflection_servicer_test.py
2017-01-06 16:06:26 +00:00
Craig Tiller 17f6904bad Merge branch 'slice_with_exec_ctx_and_new_closures' into metadata_filter_and_new_closures 2017-01-04 10:17:31 -08:00
Nathaniel Manista 41eabb8c1f Merge pull request #9212 from nathanielmanistaatgoogle/intraop
Rename interop-as-a-unit-test "intraop".
2016-12-29 13:36:51 -08:00
Nathaniel Manista 2fab0e78b0 Rename interop-as-a-unit-test "intraop"
It's been confusing that these tests have been called "interop" but
are not actually tests of interoperation.
2016-12-29 18:41:31 +00:00
Craig Tiller eb30c809cf Merge branch 'flow_control_v2' into bwest 2016-12-27 16:03:43 -08:00
Masood Malekghassemi 25186ae0f1 Set Python documentation copyright 2016-12-27 09:57:09 -08:00
Craig Tiller ef6938477b Merge branch 'slice_with_exec_ctx' into metadata_filter 2016-12-27 08:59:00 -08:00
siddharthshukla 48226a2f1f Add _invocation_defects_test.InvocationDefectsTest
Added tests for detecting invocation time defects arising out of the
runtime.
2016-12-22 02:50:12 +01:00
siddharthshukla dd52a31337 Replace Python unit test iterables by iterators
Cast iterables into iterators for stream based compression, empty
message, and metadata tests.
2016-12-20 13:19:23 +01:00
siddharthshukla 6bfa91a795 Handle non-iterator objects in consume_request_iterator
Restructure the consume_request_iterator method to handle exceptions
where the object being passed is not an iterator. Fixes #8231 and #8454.
2016-12-20 13:19:23 +01:00
Nathaniel Manista ab8fb5be32 Merge pull request #9156 from nathanielmanistaatgoogle/Exception.message
Drop use of Exception.message in metadata test.
2016-12-19 18:08:32 -08:00
Nicolas Noble f29de26194 Merge pull request #9145 from nathanielmanistaatgoogle/v1.0.x-upmerge
v1.0.x manual upmerge
2016-12-19 14:36:24 -08:00
ncteisen 02a7d4272a Add python client to test negative http2 conditions
Documentation for the new tests can be found https://github.com/grpc/grpc/blob/master/doc/negative-http2-interop-test-descriptions.md
2016-12-19 08:50:16 -08:00
siddharthshukla c336268a40 Fix invalid tests.json
Add a comma delimiter for "_invalid_metadata_test.InvalidMetadataTest".
2016-12-17 03:49:06 +01:00
Nathaniel Manista 6aedd44fb6 Drop use of Exception.message in metadata test
Apparently Exception.message was introduced in Python 2.5 and
deprecated almost immediately afterward in Python 2.6.
2016-12-17 00:42:00 +00:00
Nathaniel Manista 8f7b0b48bf v1.0.x → master upmerge
Manual changes:

 - Fixed use of Exception.message in _invalid_metadata_test.py

 - Fixed merge of one_failed_as_unavailable in rpc_server_spec.rb

 - Added "set -e" to generate_build_additions.sh
2016-12-16 23:48:52 +00:00
Masood Malekghassemi b4c27c1cd1 Merge pull request #9120 from soltanmm-google/if-you-run-away-from-things-it-just-means-you're-going-to-see-them-again-when-you-wrap-around-the-universe
Fix Python setup-time diagnostics
2016-12-15 11:56:33 -08:00
Noah Eisen 3fa20cffc6 Merge pull request #8995 from ncteisen/python_call_batch
Add check on return value from start_client_batch
2016-12-15 11:19:47 -08:00
ncteisen 61b8c89206 Add check on return value from start_client_batch 2016-12-15 10:07:40 -08:00
Craig Tiller 9a66ba5fe9 Merge branch 'slice_with_exec_ctx' into metadata_filter 2016-12-15 07:13:35 -08:00
Masood Malekghassemi 4682bf3928 Diagnose AttrErr as too-old setuptools 2016-12-14 18:42:03 -08:00
Masood Malekghassemi 9fb054a537 Upversion Python 2016-12-14 11:52:26 -08:00
Masood Malekghassemi 94b82355cb Patch overlooked strings from Python un-namespacing 2016-12-14 11:52:26 -08:00
Masood Malekghassemi f1cdf59b7f Patch overlooked strings from Python un-namespacing 2016-12-14 11:51:40 -08:00
Craig Tiller 8735891b41 Merge branch 'slice_with_exec_ctx' into metadata_filter 2016-12-14 11:07:56 -08:00
kpayson64 665ec81e9c Merge pull request #9006 from kpayson64/revert_bizarre_api
Revert "Add configurable exit grace periods and shutdown handlers"
2016-12-13 12:51:14 -08:00
Nathaniel Manista d0e336ab58 Merge pull request #9045 from nathanielmanistaatgoogle/interop-fixes-v1.0.x
Interop fixes.
2016-12-13 11:59:30 -08:00
Nathaniel Manista d0966d031d Merge pull request #9080 from nathanielmanistaatgoogle/channel_ready_future_tests-v1.0.x
Channel ready future test tweaks.
2016-12-13 11:46:54 -08:00
Nathaniel Manista 1de3914d69 Style fix: pass keyword arguments by keyword 2016-12-13 02:56:41 +00:00
Nathaniel Manista 91764921bc Use LONG_TIMEOUT for calls that do not time out 2016-12-13 02:53:20 +00:00
Masood Malekghassemi e136c1a773 Up-version Python 2016-12-12 16:24:31 -08:00
Masood Malekghassemi f096f540ee Recover 'namespace'd Python distribution packages
Uses dynamic loading to paper-over the negative effects of losing
namespace packages in the previous commit.
2016-12-12 16:24:25 -08:00
Masood Malekghassemi 53f6d098a7 Recover 'namespace'd Python distribution packages
Uses dynamic loading to paper-over the negative effects of losing
namespace packages in the previous commit.
2016-12-12 16:23:33 -08:00
Masood Malekghassemi 7ba3527ffe Un-namespace Python packages
Setuptools was updated and our hacky namespace-package-chickens came
back to roost. This removes the unsupported namespace package hacks.
2016-12-12 16:03:23 -08:00
Masood Malekghassemi fb261bf748 Un-namespace Python packages
Setuptools was updated and our hacky namespace-package-chickens came
back to roost. This removes the unsupported namespace package hacks.
2016-12-12 15:04:30 -08:00
Craig Tiller 1b0d2f008b Merge branch 'slice_with_exec_ctx' into metadata_filter 2016-12-12 07:19:55 -08:00
Nathaniel Manista 30492b90a3 Merge pull request #9041 from nathanielmanistaatgoogle/servicer_context_doc_strings-v1.0.x
ServicerContext methods doc string fix and tweak.
2016-12-11 12:18:47 -08:00
Nathaniel Manista e1fd78f110 Drop unnecessary sleep in interop test 2016-12-09 23:27:58 +00:00
Nathaniel Manista 8b223e2986 Correct Python cancel_after_begin interop test
It was a mistake that requests might be sent; the test specification
calls for no requests to be sent. It was a mistake that the response
future's cancelled() method was called; the cancelled() method returns
something more like "was this object's cancel() method called earlier?"
than "did the RPC terminate with status code CANCELLED?". Since it's
something that we'd well enough like to work I've retained the
cancelled() call with a different failure message.
2016-12-09 23:25:56 +00:00
Ken Payson 65feb6ae3d Add ServiceRpcHandler to exported names 2016-12-09 14:57:32 -08:00
Masood Malekghassemi 6ba93f2612 Up-version Python for backports 2016-12-09 14:47:31 -08:00
Nathaniel Manista b2b6a9eb57 ServicerContext methods doc string fix and tweak
ServicerContext.set_code takes a (grpc.)StatusCode, not an integer.
2016-12-09 22:25:36 +00:00
kpayson64 5431135ce5 Merge pull request #8742 from kpayson64/service_names_hint
Allow handlers to hint at the services they export
2016-12-09 12:51:34 -08:00
kpayson64 a44d3145c9 Allow handlers to hint at the services they export 2016-12-08 16:12:26 -08:00
Ken Payson 83decd64e0 Revert "Add configurable exit grace periods and shutdown handlers"
This reverts commit 3045a379aa.
2016-12-08 12:14:59 -08:00
Masood Malekghassemi 990983110f Begin patching Cython 2016-12-07 19:37:01 -08:00
Masood Malekghassemi edcd491648 Merge pull request #8990 from soltanmm-google/have-fun-filling-in-the-blanks-of-reality-with-belief-structures
Backport Python features to v1.0.x
2016-12-07 17:41:16 -08:00
Masood Malekghassemi 53360f2d1c Backport Python features to 1.0.x
Backports per-object grpc_init/deinit and separated-file grpc protoc
codegen (#7538, #8246, #8920).
2016-12-07 14:42:31 -08:00
Craig Tiller 385dd9a462 Merge branch 'slice_interning' into metadata_filter 2016-12-06 20:27:38 -08:00
Craig Tiller 35769dc29c Merge branch 'slice_with_exec_ctx' into slice_interning 2016-12-06 20:23:13 -08:00
Craig Tiller b35cfc76e2 Merge pull request #8913 from markdroth/security_handshaker2
Rewrite security handshaker to use generic handshaker API.
2016-12-02 22:34:00 -08:00
Masood Malekghassemi 4d7b0e135b Merge pull request #8920 from soltanmm-google/fracking-is-not-inherently-horrible-it-just-does-not-have-enough-oversight
Switch to command-arg for Python split-codegen
2016-12-02 18:59:55 -08:00
Masood Malekghassemi 561dce4525 Switch to command-arg for Python split-codegen
Almost fixes #8753 (which still needs a test).
2016-12-02 15:32:15 -08:00
Mark D. Roth 714038204a Use the same server code for both secure and insecure servers. 2016-12-02 10:51:39 -08:00
Ken Payson 3045a379aa Add configurable exit grace periods and shutdown handlers
The server cleanup method is untested.

The join() function that exposes it is only called by the internals of threading.py, and we don't hold a reference to the server thread to explicitly join() it, and I'm not sure we should add a reference just for this purpose.

Moreover, the threading.py only calls join(None), the code path in question isn't even exercised by the internals of threading.py. Its just there to make sure we properly follow the join(timeout) semantics.
2016-12-01 09:38:50 -08:00
Yuchen Zeng b0023d25dc Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-11-30 15:51:25 -08:00
Nathaniel Manista b292a8502e Refactor channel call management
The requirement that any created managed call must have operations
performed on it is obstructing proper handling of the case of
applications providing invalid invocation metadata. In such cases the
RPC is "over before it starts" when the very first call to
start_client_batch returns an error.
2016-11-30 23:21:53 +00:00
Nathaniel Manista 564d3a7aa3 Lint fixes 2016-11-30 23:21:17 +00:00
Craig Tiller 36b3135929 Merge branch 'slice_interning' into metadata_filter 2016-11-30 13:41:53 -08:00
Craig Tiller 369ddc524a Merge branch 'slice_with_exec_ctx' into slice_interning 2016-11-30 13:32:18 -08:00
Mark D. Roth 6c3d040ebf Merge branch 'security_handshaker1' into security_handshaker2 2016-11-29 14:24:42 -08:00
Jan Tattermusch 6ff81e91c9 Merge pull request #8825 from jtattermusch/manual_upmerge_101
Manual upmerge from v1.0.x
2016-11-24 00:20:46 +01:00
Noah Eisen 24804d25b4 Add new flags to Python stress client
Add use_tls, use_test_ca, and server_host_override flags to Python
stress client. These are needed to run the stress client against a local
server that is using tls.
2016-11-22 10:19:11 -08:00
Jan Tattermusch 8613e474cb Merge remote-tracking branch 'upstream/v1.0.x' into HEAD 2016-11-22 11:15:53 +01:00
Craig Tiller ac5f518016 Merge branch 'slice_with_exec_ctx' into eliminate_mdstr 2016-11-18 12:45:16 -08:00
Mark D. Roth 071cacf1cb Rename security handshaker files. 2016-11-17 13:17:56 -08:00
Mark D. Roth 8686cab11c Use the same connector code for both secure and insecure clients. 2016-11-17 13:12:17 -08:00
Noah Eisen 91f24b9ccf Add default arguments to python interop client 2016-11-17 11:52:49 -08:00
Craig Tiller 66b14c125e Merge branch 'slice_interning' into eliminate_mdstr 2016-11-16 16:05:01 -08:00
Craig Tiller 1094c32f35 Merge branch 'slice_with_exec_ctx' into slice_interning 2016-11-16 15:54:03 -08:00
Mark D. Roth 863113a0d9 Merge remote-tracking branch 'upstream/master' into service_config_json 2016-11-16 14:18:28 -08:00
Craig Tiller c80fa2f673 Merge pull request #8680 from ctiller/no_more_legacy
Remove legacy poller
2016-11-15 17:25:27 -08:00
Yuchen Zeng 5c1f55af23 Merge pull request #8335 from y-zeng/tos
Add grpc_socket_mutator
2016-11-11 15:05:14 -08:00
Craig Tiller 5ef31ab9c9 Progress towards mdstr elimination 2016-11-10 16:27:48 -08:00
Craig Tiller 64b26567ad First pass of slice interning facilities 2016-11-10 08:31:42 -08:00
Mark D. Roth fc75321830 Merge remote-tracking branch 'upstream/master' into service_config_json 2016-11-08 10:57:20 -08:00
Yuchen Zeng bd363544fd Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-11-08 10:56:16 -08:00
Craig Tiller e6684f415e Remove legacy poller 2016-11-08 08:17:43 -08:00
Craig Tiller b720b609ea Merge github.com:grpc/grpc into grpc_slice 2016-11-08 07:20:27 -08:00
Mark D. Roth c22717ec63 Merge remote-tracking branch 'upstream/master' into service_config_json 2016-11-07 09:41:07 -08:00
Masood Malekghassemi 80eb075e63 Merge pull request #8628 from soltanmm-google/turtles
Explicitly stop the server on tear-down
2016-11-04 15:52:16 -07:00
Craig Tiller 503653e27e Merge pull request #8456 from ctiller/pid_ctl
Simple PID controller
2016-11-04 14:17:14 -07:00
Nathaniel Manista 8764c220d6 Improved Server.stop specification 2016-11-03 23:07:15 +00:00
Masood Malekghassemi d6ddb0e37c Explicitly stop the server on tear-down 2016-11-03 15:29:27 -07:00
Mark D. Roth ea846a0800 Rename method_config.[ch] to service_config.[ch]. 2016-11-03 11:32:54 -07:00
Yuchen Zeng e882e39224 Fix windows build 2016-11-02 19:33:41 -07:00
Yuchen Zeng 3cc6a02a55 Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-11-02 18:54:14 -07:00
Yuchen Zeng 64d518e3b0 Merge remote-tracking branch 'upstream/master' into tos 2016-11-02 16:27:49 -07:00
Craig Tiller 41fd9f2343 Merge github.com:grpc/grpc into grpc_slice 2016-10-31 14:42:53 -07:00
Yuchen Zeng c76e9d3062 Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-10-28 15:41:58 -07:00
Masood Malekghassemi d953959e2b Enable split code generation
To support magical internal build processes, the pb2 files need to be
split into pure-proto and gRPC parts. This performs that split and
further fixes bad module names in the test harness that interfered with
the intended test implementation.

An unfortunate side effect, due to limitations of protoc and holdover
behavior we must support in major version 1.x, is that trash files are
generated in split generation. This shouldn't be a problem in normal
protoc plugin use.
2016-10-28 14:53:10 -07:00
Masood Malekghassemi 81cdf1e34e Fix Python tests' module loading behavior 2016-10-28 14:41:27 -07:00
Masood Malekghassemi a12e6d8037 Merge pull request #8367 from soltanmm-google/blurb
Partially implement gRPC Python server reflection
2016-10-28 13:30:16 -07:00
Craig Tiller fa014a86e3 Merge github.com:grpc/grpc into pid_ctl 2016-10-28 07:31:20 -07:00
Craig Tiller 618e67d655 s/GPR_SLICE/GRPC_SLICE/g 2016-10-26 21:08:10 -07:00
Craig Tiller 6e080a3651 Merge branch 'buffer_pools_for_realsies' into grpc_slice 2016-10-26 21:00:53 -07:00
Craig Tiller 3d357d901c Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-10-26 20:52:03 -07:00
Craig Tiller c3350541e3 Generate build files 2016-10-26 16:19:01 -07:00
Craig Tiller d41a4a720f s/gpr_slice/grpc_slice, and move around tests, impls 2016-10-26 16:16:06 -07:00
Mark D. Roth e4e457ed76 Merge remote-tracking branch 'upstream/master' into circular_dependency_fix 2016-10-26 13:06:03 -07:00
Mark D. Roth d4a5971ae8 Merge pull request #8462 from markdroth/resolver_channel_args
Plumb channel_args through resolvers.
2016-10-26 12:54:05 -07:00
Mark D. Roth bfe56801ad Move method_config module from ext/client_channel to lib/transport. 2016-10-26 12:45:20 -07:00
Nicolas "Pixel" Noble 50a730bd1c Going 1.0.1. 2016-10-26 21:42:29 +02:00
Mark D. Roth fb809b7850 Merge remote-tracking branch 'upstream/master' into resolver_channel_args 2016-10-26 09:12:25 -07:00
Noah Eisen 970078807f Merge pull request #8449 from ncteisen/new_python_interop_tests
New python interop tests
2016-10-26 09:07:32 -07:00
Masood Malekghassemi 3e784bb6d4 Merge pull request #8347 from docent-net/master
Updated C_PYTHON_DEV_ERROR_MESSAGE err msg w/RHEL+Fedora
2016-10-25 18:51:13 -07:00
Noah Eisen 9785c8f9c4 Implement the advanced interop tests for Python
Add the code for three new interop tests: unimplemented_method,
unimplemented_service, and custom_metadata.

Fix and refactor the code for status_code_and_message.
2016-10-25 17:00:03 -07:00
Yuchen Zeng f1cd449030 Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-10-25 11:26:17 -07:00
Maciej Lasyk 39cb9a9aca Updated C_PYTHON_DEV_ERROR_MESSAGE err msg w/RHEL+Fedora
Added RHEL/Fedora specific information about lacking of python.h - because Linux doesn't mean Ubuntu ;)
2016-10-25 19:36:43 +02:00
Craig Tiller c690768b15 Merge branch 'flow_control_v2' into bwest 2016-10-24 14:50:12 -07:00
Craig Tiller fe8c5012d3 Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-10-24 14:49:18 -07:00
murgatroid99 b516cadc2a Merge branch 'master' into uv_core_transport 2016-10-21 15:54:42 -07:00
Mark D. Roth ae07f7fdc6 Merge remote-tracking branch 'upstream/master' into resolver_channel_args 2016-10-21 15:23:53 -07:00
Mark D. Roth af84245131 Remove resolver_result. 2016-10-21 15:05:15 -07:00
Craig Tiller 3f14e6df65 Merge branch 'flow_control_v2' into bwest 2016-10-20 15:53:50 -07:00
Craig Tiller 79fb584883 Merge branch 'bdp_est' into bwest 2016-10-20 15:47:19 -07:00
Craig Tiller dd2fa6482a Add pid controller test 2016-10-20 15:46:32 -07:00
Craig Tiller 9e0066b0c9 Add estimator test 2016-10-20 14:04:18 -07:00
Masood Malekghassemi aff6936cf7 Partially implement gRPC Python server reflection
Some features relating to proto2 extension querying are missing due to
missing upstream features required to support them (see
https://github.com/google/protobuf/issues/2248).
2016-10-20 12:47:06 -07:00
murgatroid99 10edf68eec Merge branch 'master' into uv_core_transport 2016-10-19 15:19:00 -07:00
Mark D. Roth eb35a1d16b Merge remote-tracking branch 'upstream/master' into rename_client_config 2016-10-19 14:53:42 -07:00
Craig Tiller 9ea0f2c6e8 Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-10-19 14:44:53 -07:00
Mark D. Roth 20e77f27b0 Merge pull request #8303 from markdroth/service_config
Support service configs in core.
2016-10-19 14:20:51 -07:00
murgatroid99 59f347e125 Merge branch 'master' into uv_core_transport 2016-10-19 13:53:21 -07:00
Craig Tiller 6952b213b7 Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-10-19 13:36:59 -07:00
kpayson64 fa95818efa Merge pull request #8414 from kpayson64/use_external_api
Change channel tests to use public API
2016-10-19 12:54:17 -07:00
Ken Payson 667301a25f Change channel tests to use public API
This allows for testing other implementations of grpc.Server.
2016-10-18 12:34:45 -07:00
Mark D. Roth 605a8f12ed Merge remote-tracking branch 'upstream/master' into service_config 2016-10-18 11:06:33 -07:00
Craig Tiller 20afa3d7c9 BufferPool --> ResourceQuota 2016-10-17 14:52:14 -07:00
Yuchen Zeng c007a6c879 Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-10-17 14:33:29 -07:00
Craig Tiller 654b242ce7 Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-17 14:31:44 -07:00
Craig Tiller 8c94df19d4 Merge github.com:grpc/grpc into direct-calls 2016-10-17 13:25:45 -07:00
kpayson64 8725595933 Merge pull request #7664 from kpayson64/cv_wakeup_fd
Add Shim for wakeup_fds with no pipe or
2016-10-17 13:12:22 -07:00
Craig Tiller a628c84e86 Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-14 16:09:01 -07:00
murgatroid99 e76b87baa0 Merge branch 'master' into uv_core_transport 2016-10-14 14:50:08 -07:00
Mark D. Roth d7ec5e18ce Merge remote-tracking branch 'upstream/master' into service_config 2016-10-14 13:10:54 -07:00
Mark D. Roth 6a721b5b3f Rename grpc_hash_table to grpc_mdstr_hash_table. 2016-10-14 12:43:34 -07:00
Craig Tiller fd77de6a8a Merge github.com:grpc/grpc into direct-calls 2016-10-14 08:52:53 -07:00
Yuchen Zeng de3daf5d63 More interfaces for grpc_socket_mutator 2016-10-13 17:26:26 -07:00
kpayson64 448a16dd28 Merge pull request #8127 from kpayson64/allow_pointers
Allow pointer channel args python
2016-10-13 15:12:33 -07:00
Ken Payson 58c0f96f19 Allow pointer channel args python 2016-10-13 15:11:04 -07:00
Ken Payson 82e4ec741b Moved cv polling into ev_poll_posix.c 2016-10-13 12:26:01 -07:00
murgatroid99 c0aa97d158 Merge branch 'master' into uv_core_transport 2016-10-12 16:41:38 -07:00
Yuchen Zeng a4f708a4c4 Introduce grpc_socket_mutator 2016-10-11 18:36:24 -07:00
Yuchen Zeng 830c32c4a1 Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-10-11 15:57:29 -07:00
Yuchen Zeng b5273fdb73 Merge remote-tracking branch 'upstream/master' into tos 2016-10-10 16:02:56 -07:00
Yuchen Zeng 929f4c652f Add tos configuration in channel args 2016-10-10 16:02:43 -07:00
Craig Tiller c99945e44c Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-10 10:20:48 -07:00
Craig Tiller fdc2b10dce Merge github.com:grpc/grpc into direct-calls 2016-10-10 10:16:35 -07:00
kpayson64 d195cf589d Add condition variable polling engine 2016-10-10 09:38:09 -07:00
Nathaniel Manista 062ba7b8ba Merge pull request #8324 from grpc/v1.0.x
v1.0.x → master upmerge.
2016-10-07 15:28:47 -07:00
Mark D. Roth 15195741d7 Merge remote-tracking branch 'upstream/master' into rename_client_config 2016-10-07 09:02:28 -07:00
Nathaniel Manista 84350e167d Drop unnecessary return statement 2016-10-04 20:25:53 +00:00
Yuchen Zeng 6988838a67 Merge remote-tracking branch 'upstream/master' into cares_buildin 2016-10-03 13:24:13 -07:00
Craig Tiller 1bb0ce5e23 Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-03 12:58:02 -07:00
Craig Tiller 787d58f9e3 Merge github.com:grpc/grpc into direct-calls 2016-10-03 12:56:57 -07:00