Muxi Yan
006c815810
Merge pull request #22687 from grpc/revert-22684-revert-22423-objc-poller
...
Revert "Revert "Introduce CFRunLoop based iomgr""
2020-04-20 15:58:26 -07:00
Pau Freixes
f07e0da6dd
Make YAPF happy
2020-04-20 23:25:59 +02:00
Pau Freixes
dae80a4977
Apply feedback
2020-04-20 23:24:54 +02:00
Pau Freixes
2aea5c002b
[Aio] Implement the Unary Stream client interceptor
...
Add support for adding intercetpors for the Unary Stream arity at
client level.
2020-04-20 15:38:40 +02:00
Lidi Zheng
916f6db913
Merge branch 'master' into aio-status
2020-04-17 13:13:12 -07:00
donnadionne
baa442e6e4
Merge pull request #22280 from donnadionne/route_response
...
Xds Routing LB Policy
2020-04-17 12:45:39 -07:00
Yash Tibrewal
b7941bedf3
Merge pull request #22575 from yashykt/newfilter
...
Move decompression into gRPC Core
2020-04-16 15:21:01 -07:00
Lidi Zheng
95b4f22475
Add AsyncIO support to grpcio-status
2020-04-16 13:37:33 -07:00
Donna Dionne
584b35055e
Merge remote-tracking branch 'upstream/master' into route_response
2020-04-16 13:10:15 -07:00
Muxi Yan
eb7779c20c
Revert "Revert "Introduce CFRunLoop based iomgr""
2020-04-16 13:07:55 -07:00
Muxi Yan
881439476c
Merge pull request #22684 from grpc/revert-22423-objc-poller
...
Revert "Introduce CFRunLoop based iomgr"
2020-04-16 13:07:48 -07:00
Yash Tibrewal
e24bb3a6ef
Regenerate projects
2020-04-16 11:46:29 -07:00
Lidi Zheng
ebfa9e7e51
Merge pull request #22665 from lidizheng/aio-unary-none
...
[Aio] Handle the empty response with error code from server handler
2020-04-16 10:20:38 -07:00
Muxi Yan
0e0db09613
Revert "Introduce CFRunLoop based iomgr"
2020-04-16 08:54:07 -07:00
Lidi Zheng
9503b68a8b
Discards response message with non-OK status
2020-04-15 16:13:12 -07:00
Lidi Zheng
51e38fa508
Allow "None" as response message with none-OK status
2020-04-15 15:26:07 -07:00
Lidi Zheng
cc04b8aaf0
Merge pull request #22677 from lidizheng/aio-codec-doc
...
Improve the documentation for serializer and deserializer
2020-04-15 15:22:10 -07:00
Taras Galkovskyi
42bd106898
updating comments to make clear that ALTS is only supported on GCP
2020-04-15 22:14:08 +00:00
Muxi Yan
7f36ff039f
Merge pull request #22423 from muxi/objc-poller
...
Introduce CFRunLoop based iomgr
2020-04-15 14:30:43 -07:00
Lidi Zheng
6e0ac50b09
Improve the documentation for serializer and deserializer
2020-04-15 14:04:52 -07:00
Lidi Zheng
17d75dde69
Simplify logic around send message operation
2020-04-15 12:45:29 -07:00
Taras Galkovskyi
3ff24dd63a
Merge branch 'master' of git://github.com/grpc/grpc
2020-04-15 18:18:51 +00:00
Taras Galkovskyi
02da3330c2
address review comments
2020-04-15 18:13:04 +00:00
Muxi Yan
b96895bf9d
Add apple_ev iomgr
2020-04-15 11:06:53 -07:00
Lidi Zheng
3e187feca0
Fix the inaccurate cancel injection
2020-04-14 16:42:35 -07:00
Lidi Zheng
9b4070a380
Fix the None return case
2020-04-14 15:42:52 -07:00
Yash Tibrewal
3c34eae97e
Move decompression into gRPC Core
2020-04-10 16:43:29 -07:00
Taras Galkovskyi
83ada3b598
adjusting formatting & tests
2020-04-10 14:20:27 +00:00
Taras Galkovskyi
2b3eca0858
adding api to configure target service accounts for client ALTS
2020-04-10 14:09:17 +00:00
Donna Dionne
f5fd631a9c
Merge remote-tracking branch 'upstream/master' into route_response
2020-04-09 11:10:28 -07:00
Mark D. Roth
80b74811d4
Merge pull request #22117 from markdroth/xdslb_refactor
...
Refactor xds LB policy
2020-04-08 07:28:49 -07:00
Mark D. Roth
f8f6034d1a
Refactor xds LB policy
2020-04-07 14:03:01 -07:00
Lidi Zheng
e50c9a8e2e
Fix typo in the comment
2020-04-07 13:54:21 -07:00
Dan Halperin
cdc1c1afaf
gRPC docs: remove mention of Python 2.7
...
It's April now, docs looking forward to January seem outdated.
2020-04-07 08:23:33 -07:00
Taras Galkovskyi
d84d53f901
fix comment
2020-04-07 00:26:23 +00:00
Taras Galkovskyi
828ee320a4
Expose ALTS client/server credentials on Python layer
2020-04-07 00:14:41 +00:00
Lidi Zheng
4eb596446d
Resolve conflict with master
2020-04-06 16:11:13 -07:00
Lidi Zheng
2b6037f113
Rename to wait_for_conneciton && Add to unary-unary RPC
2020-04-06 16:10:07 -07:00
Lidi Zheng
58beda2f73
Add try_connect API to StreamUnaryCall
2020-04-06 16:09:07 -07:00
Lidi Zheng
c07520a350
Mark it as experimental
2020-04-06 16:09:07 -07:00
Lidi Zheng
41866c1250
Add try_connect API for UnaryStreamCall and StreamStreamCall
2020-04-06 16:09:07 -07:00
Donna Dionne
c0c7f1dae3
Fix build and test failures
...
Including the following
All all needed BUILD changes to include new xdsRouting
Fixed TSAN errors
AllServerUnavailableFailFast may return UNKNOWN as oppose UNAVAILABLE
ChooseLastRoute modified into 2 tests
2020-04-06 16:05:04 -07:00
Lidi Zheng
6f00de087f
Aggregate common statement in both branches
2020-04-03 15:13:26 -07:00
Lidi Zheng
e00eb2fec2
Make pylint happy
2020-04-03 11:37:56 -07:00
Lidi Zheng
8b1a6c8f45
Accepts normal iterable of request messages
2020-04-03 11:37:56 -07:00
Richard Belleville
0ec32634fb
Merge pull request #22549 from gnossen/simple_stubs_3_6_and_up
...
Add version check for Python 3.6 to simple stubs
2020-04-02 14:08:36 -07:00
Lidi Zheng
006aafea85
Merge pull request #22541 from lidizheng/aio-poller-shutdown-error
...
[Aio] Fix AttributeError during deallocation of the completion queue
2020-04-02 13:09:23 -07:00
Richard Belleville
f15a6bf6e4
Add version check for Python 3.6 to simple stubs
2020-04-01 23:34:14 -07:00
Lidi Zheng
386977ff41
Annotate metadata variable as Tuple instead of Sequence
2020-04-01 15:16:55 -07:00
Lidi Zheng
5cab833808
Make sanity tests happy
2020-04-01 15:11:26 -07:00
Lidi Zheng
2c24272bbd
Cast the complete queue to sub class to avoid AttributeError
2020-04-01 14:30:15 -07:00
Lidi Zheng
ee31a696ab
Cast metadata to tuple
2020-04-01 13:25:33 -07:00
Mark D. Roth
03411d7be7
Second attempt: grpclb stabilization
2020-03-31 07:52:44 -07:00
Lidi Zheng
cb5fdce2bf
Improve readability and fix wording
2020-03-26 10:35:32 -07:00
Lidi Zheng
5182e9f07f
Eliminates suspicious exceptions in test logs
2020-03-25 17:45:45 -07:00
Lidi Zheng
1e6c9b4c6d
Merge pull request #22482 from lidizheng/aio-no-info
...
[Aio] Eliminate info level logs
2020-03-25 17:16:36 -07:00
Lidi Zheng
b5b47ce7c7
Upgrade the server stop log to warning
2020-03-25 16:00:50 -07:00
Lidi Zheng
0961c5de0b
Merge pull request #22306 from Skyscanner/issue-21953_type-of-metadata
...
[Aio] Initial modelling of the metadata abstraction
2020-03-25 15:10:51 -07:00
Lidi Zheng
79497f8059
Downgrade info logs to debug
2020-03-25 15:09:21 -07:00
Mariano Anaya
2be1ec9c6e
[issue21953] Move tests to the aio part
...
* Export the new metadata type through the ``__init__.py``
* Move the tests from the old location to the new one for the
asynchronous stack.
2020-03-25 10:03:14 +01:00
Mariano Anaya
3bf67c4253
[issue21953] Fix typing in Metadata class definitions
2020-03-25 10:03:14 +01:00
Mariano Anaya
6891169b58
Apply PR feedback
...
* Fix the length of the object to account for all the keys it holds
(consider it's a multi-mapping)
* Add support for deleting items
* Make test stricter
2020-03-25 10:03:14 +01:00
Mariano Anaya
1f2d916386
[aio] Metadata type: Fix tests & __repr__
2020-03-25 10:03:14 +01:00
Mariano Anaya
0be36ed606
Add mutability to the MetadataType
2020-03-25 10:03:14 +01:00
Mariano Anaya
7d88c61f57
Initial modelling of the metadata abstraction
...
Create the initial version for the abstraction for the Metadata based on
the discussion at https://github.com/grpc/grpc/issues/21953
2020-03-25 10:03:14 +01:00
Lidi Zheng
52634fb7be
Correct the docstring and implementation of AuthMetadataPlugin
2020-03-24 15:59:10 -07:00
Lidi Zheng
b73b389dd1
Change the default IO engine to poller
2020-03-23 10:21:33 -07:00
Lidi Zheng
39c4fd7972
Merge pull request #22343 from lidizheng/async-unary-unary-credentials-tests
...
[Aio] Extend unit tests for async credentials calls
2020-03-19 14:53:21 -07:00
Lidi Zheng
ae0dc69cb1
Fix the typo; I got the wrong branch and waited two hours
2020-03-19 13:19:41 -07:00
Lidi Zheng
69fa971183
Merge pull request #22405 from lidizheng/annotate-context-manager
...
Annotate channel context manager methods to make pytype happy
2020-03-18 13:30:21 -07:00
Richard Belleville
85d25bd990
Merge pull request #22104 from gnossen/xds-python-client
...
Implement Python xDS interop client.
2020-03-18 13:07:50 -07:00
Lidi Zheng
158a68f4f0
Annotate channel context manager methods to make pytype happy
2020-03-18 11:49:26 -07:00
Lidi Zheng
46bb3769a9
Override the auth plugin behavior
2020-03-18 10:13:05 -07:00
Lidi Zheng
d6bd3c37b2
Use mutex to protect queue operations
2020-03-17 15:32:38 -07:00
Lidi Zheng
030b1b6a84
Update the pxd as well
2020-03-17 13:28:24 -07:00
Lidi Zheng
82050ae192
Initialize credentials after IO engine set
2020-03-17 13:23:11 -07:00
Lidi Zheng
1a0655d75c
Add comment about why we can't use cimport
2020-03-17 10:55:52 -07:00
Lidi Zheng
65930d4be9
Remove the socket reader in shutdown
2020-03-17 10:40:05 -07:00
Mariano Anaya
dff4a30b6c
Fix build & address review comments
...
Fixes https://github.com/grpc/grpc/issues/20532
2020-03-16 16:09:36 -07:00
Mariano Anaya
33e15156bb
[WIP] Feedback on the PR
2020-03-16 16:09:36 -07:00
Mariano Anaya
f2aad7e54c
Extend tests for secure channels & credentials
2020-03-16 16:09:36 -07:00
Mariano Anaya
a1bb0bc6f8
Set error description
2020-03-16 16:09:36 -07:00
Mariano Anaya
764be7ed92
Improve error message by including the error code
2020-03-16 16:09:36 -07:00
Mariano Anaya
88e922c03f
Make the server test use SSL credentials
2020-03-16 16:09:36 -07:00
Mariano Anaya
f44e4e2138
Renames according to PR comments
2020-03-16 16:09:36 -07:00
Lidi Zheng
c82f28d428
Use socket to synchronize cq and asyncio
2020-03-16 15:42:31 -07:00
Lidi Zheng
5d1651ff65
Don't graceful shutdown cq to avoid the deadlock
2020-03-16 11:10:07 -07:00
Lidi Zheng
7622a2de38
Improve readability & fix a deadlock issue in _test_base
2020-03-13 15:56:25 -07:00
Richard Belleville
651f850076
Merge remote-tracking branch 'origin/master' into peers_method
2020-03-13 20:31:27 +00:00
Lidi Zheng
7a51ca3330
Plumb through loop object & pass daemon=Ture in constructor
2020-03-13 11:59:35 -07:00
Lidi Zheng
8fc872ed2e
Enforce one cq and support many-thread many-loop env
...
- Label channel_argument_test as flaky
- Add compatibility test
- Add many-loop test case
2020-03-13 11:47:30 -07:00
Lidi Zheng
fda2111af7
Merge pull request #22258 from lidizheng/aio-cq
...
[Aio] Add an alternative mode for the AsyncIO Stack
2020-03-13 11:40:20 -07:00
Richard Belleville
9ef83ee539
Merge remote-tracking branch 'origin/master' into peers_method
2020-03-12 20:30:08 +00:00
Lidi Zheng
4741da3a11
Remove unused variable
2020-03-10 10:26:46 -07:00
Richard Belleville
df1761ce50
Merge pull request #22218 from gnossen/simple_stubs_codegen
...
Generate simple stubs code
2020-03-09 19:04:13 -07:00
Richard Belleville
f27b7fea21
Format
2020-03-09 17:25:00 -07:00
Richard Belleville
4e2ad2444d
Remove the default value for simple stubs
2020-03-09 17:03:55 -07:00
Lidi Zheng
5b1ecef47f
Simplify the Cython code
2020-03-09 15:38:34 -07:00
Lidi Zheng
5246a7c8ff
Link to a TODO issue
2020-03-09 15:20:06 -07:00
Lidi Zheng
231f9c0c94
Improve readability
2020-03-09 15:20:06 -07:00
Lidi Zheng
ce68d53dd1
Make pytype happy
2020-03-09 15:20:06 -07:00
Lidi Zheng
7b7c0ba5fc
Fix the SEGFAULT caused by initialization ordering
2020-03-09 15:20:06 -07:00
Lidi Zheng
0ee33a4762
Confusing
2020-03-09 15:20:06 -07:00
Lidi Zheng
1d13ec88de
Segfault while shutting down
2020-03-09 15:20:06 -07:00
Lidi Zheng
221a50bf87
Allow multiple asyncio engine
2020-03-09 15:20:06 -07:00
Lidi Zheng
efd483311c
Remove loggings
2020-03-09 15:20:06 -07:00
Lidi Zheng
b2839c2bae
Add assertion in grpc_call_soon_threadsafe
2020-03-09 15:20:06 -07:00
Lidi Zheng
464d41f4b8
Great. Everything seems working.
2020-03-09 15:20:06 -07:00
Lidi Zheng
e00f8b3492
Use a poller thread to replace custom IO manager
2020-03-09 15:20:06 -07:00
Lidi Zheng
d9c55675c4
Merge pull request #22234 from lidizheng/aio-iomgr-op
...
[Aio] Optimize some details of AsyncIO IO manager
2020-03-09 14:15:19 -07:00
Lidi Zheng
a05abc0939
Mark it correctly with a TODO
2020-03-06 14:12:47 -08:00
Lidi Zheng
08b028ab82
Update the comment about the expect life span of the hack
2020-03-06 13:53:12 -08:00
Lidi Zheng
0d785bf22a
Resolve AttributeError from bpo-39764
2020-03-06 13:47:35 -08:00
Lidi Zheng
b00fc59d29
Link the TODO issue & revert to call_later
2020-03-05 16:26:41 -08:00
Lidi Zheng
33a406e6a8
Restore 3.6 compatibility
2020-03-05 12:11:22 -08:00
Lidi Zheng
f87149c967
Destroy server without gil
2020-03-05 12:11:22 -08:00
Lidi Zheng
43fe171683
Optimize some implementation of IO manager
2020-03-05 12:11:22 -08:00
Lidi Zheng
87d01bf9e5
Merge pull request #22032 from ZHmao/implement-server-interceptor-for-unary-unary-call
...
[Aio] Implement server interceptor for unary unary call
2020-03-05 10:26:56 -08:00
yang-g
976fff1797
Create a macro to allow custom dualstack socket
2020-03-04 16:07:35 -08:00
Richard Belleville
0fd0948bfa
Generate simple stubs
2020-03-02 22:11:24 -08:00
Zhanghui Mao
701ec0be20
add type annotation
2020-02-29 19:22:49 +08:00
Mark D. Roth
19e28b1353
Refactor code for gracefully switching child LB policies.
2020-02-28 08:17:54 -08:00
Zhanghui Mao
26985fd722
fix sanity checks
2020-02-28 22:06:31 +08:00
Mark D. Roth
144adbc194
Merge pull request #22147 from markdroth/xds_overprovisioning_capability
...
xds: send no-overprovisioning client capability and populate user_agent fields
2020-02-27 15:02:53 -08:00
Mark D. Roth
28b950e407
Merge remote-tracking branch 'upstream/master' into xds_overprovisioning_capability
2020-02-27 12:09:16 -08:00
Moiz Haidry
88096215a3
Merge with HEAD
2020-02-26 19:59:06 -08:00
Richard Belleville
5ef379870d
Regenerate projects
2020-02-26 10:39:34 -08:00
Mark D. Roth
b68f813e54
xds: send envoy.lb.does_not_support_overprovisioning client capability
2020-02-26 08:23:27 -08:00
Moiz Haidry
67565b767d
CallCredentials debug string API
2020-02-25 16:09:03 -08:00
Zhanghui Mao
99e26eb647
Merge branch 'implement-server-interceptor-for-unary-unary-call' of github.com:ZHmao/grpc into implement-server-interceptor-for-unary-unary-call
2020-02-22 22:38:05 +08:00
Zhanghui Mao
128d030cdc
upate test
2020-02-22 22:37:31 +08:00
Richard Belleville
7adf2f5c65
Implement first pass at Python XDS interop client.
...
I discovered a couple of existing shortcomings while implementing this
client that mean this is *not yet ready for inclusion in CI*. I
nonetheless want to get an early review and integrate this to the master
branch, in the interest of small easily reviewable code changes.
The first problem was that the bazel build has apparently never pulled
roots.pem in as a data dependency. This appears not to have been a
problem until XDS enters into the mix. This has been added into the
Bazel build with a small change to the pyx_library rule.
The larger problem is that there is currently no public Python API to
get a peer's identity from the client side. This is crucial to
determining the correctness of an interaction of a client-server pair
under XDS. I intend to add such an method to the RpcContext interface in
an upcoming PR and use it in the interop client. For the moment, I
simply fake the peer details.
Finally, I add a knob to run_xds_tests.py allowing multiple instances of
this test to exist at once. Multiple instances forwarding to the same
port cannot exist on GCE, so this enables multiple people to run tests
at the same time.
2020-02-21 23:28:19 +00:00
apolcyn
17036c1452
Merge pull request #21698 from apolcyn/bump_g_stands_for
...
Bump g stands for
2020-02-21 10:53:47 -08:00
Zhanghui Mao
958fb08d0d
Merge branch 'master' into implement-server-interceptor-for-unary-unary-call
2020-02-21 22:43:51 +08:00
Esun Kim
5f41758a76
Replaced gpr_asprintf with absl::StrFormat
2020-02-20 13:44:35 -08:00
Lidi Zheng
2eeb22de65
Merge pull request #21904 from lidizheng/aio-benchmark-client
...
[Aio] Benchmark automation
2020-02-20 10:15:01 -08:00
Lidi Zheng
8aff9ec592
Merge pull request #21987 from lidizheng/aio-doc
...
[Aio] Generate gRPC AsyncIO API Reference
2020-02-19 10:52:38 -08:00
Richard Belleville
3ed237d4bb
Merge pull request #21954 from gnossen/simple_stubs
...
Experimental: Implement Top-Level Invocation Functions Not Requiring an Explicit Channel
2020-02-18 16:32:01 -08:00
Lidi Zheng
dbdb2cc5c9
Fix the non-protobuf scenario
2020-02-18 16:28:19 -08:00
Lidi Zheng
728f5881a2
Remove unused exception check condition
2020-02-18 16:28:18 -08:00
Lidi Zheng
37552d3e62
Restrucutre exception catches
2020-02-18 16:28:18 -08:00
Lidi Zheng
5a7093639f
Suppress server stop log spamming
2020-02-18 16:27:55 -08:00
Lidi Zheng
03e1bf1071
Fix already cancelled RPC
2020-02-18 16:27:29 -08:00
Zhanghui Mao
6fef56573e
Implement server interceptor for unary unary call
2020-02-15 23:39:34 +08:00
Lidi Zheng
7b4d0b28c6
Implement health checking servicer in AsyncIO
2020-02-14 12:27:42 -08:00
Lidi Zheng
12b0ddbc2b
Improve the documentation based on suggestions
2020-02-14 11:03:27 -08:00
Lidi Zheng
479651e4cf
Remove NoReturn to support <3.6.2
2020-02-14 11:03:27 -08:00
Lidi Zheng
0c7bf6c434
Make sanity tests happy
2020-02-14 11:03:27 -08:00
Lidi Zheng
1945c1108f
Move the docstring from Cython to rst
2020-02-14 11:03:10 -08:00
Lidi Zheng
d743e4390a
Fill-in missing interfaces & improve rst template
2020-02-14 11:03:10 -08:00
Lidi Zheng
f17ec928df
Fix lack of empty line in the docstring
2020-02-14 11:01:48 -08:00
Lidi Zheng
4c59615f46
Format __init__.py
2020-02-14 11:01:48 -08:00
Lidi Zheng
11953d1315
Merge pull request #21988 from lidizheng/aio-fast-close-2
...
[Aio] Make client-side graceful shutdown faster
2020-02-14 10:36:49 -08:00
Lidi Zheng
7a50172cc8
Handle the intercepted call case
2020-02-13 16:00:54 -08:00
Lidi Zheng
e0f8fe3254
Ensure channel isolation is maintained while graceful close
2020-02-13 15:05:50 -08:00
Jan Tattermusch
a28d67f0bf
Merge pull request #21891 from jtattermusch/remove_useless_release_links
...
get rid of the https://grpc.io/release plague
2020-02-13 17:43:41 +01:00
Lidi Zheng
5a29f33a25
Optimize the logic & add comments
2020-02-12 14:32:17 -08:00
Lidi Zheng
2789f83f85
Make pytype happy
2020-02-12 10:46:56 -08:00
Richard Belleville
d46cd97bc6
Merge remote-tracking branch 'origin/master' into simple_stubs
2020-02-11 17:53:56 -08:00
Richard Belleville
6eddf397e9
Reviewer advice
2020-02-11 17:44:56 -08:00
Lidi Zheng
3061ee37c0
Remove unused import
2020-02-11 16:46:48 -08:00
Lidi Zheng
fbd213d04b
Make client-side graceful shutdown faster
2020-02-11 16:46:23 -08:00
Esun Kim
0b26a2ff56
Added abseil-based sync
2020-02-11 14:44:25 -08:00
Richard Belleville
df247fb33a
Experimental API decorator
2020-02-10 16:47:43 -08:00
Richard Belleville
7c581ab099
Revert "Stop emitting experimental warnings"
...
This reverts commit 3daa32de4e .
2020-02-10 14:57:30 -08:00
Richard Belleville
ff3088979a
Why you incomplete, Python 3.6?
2020-02-10 14:53:33 -08:00
Richard Belleville
67a492c946
Yapf
2020-02-10 13:47:25 -08:00
Richard Belleville
3daa32de4e
Stop emitting experimental warnings
2020-02-10 13:39:43 -08:00
Richard Belleville
e7e41e7610
Change up ordering
2020-02-10 13:37:43 -08:00
Richard Belleville
6e7f9f2ebe
Add typing
2020-02-10 13:34:10 -08:00
Richard Belleville
70d3765712
Use debug level logging
2020-02-10 13:19:08 -08:00
Richard Belleville
09774aebfb
Put libraries in order of reference
2020-02-10 13:18:18 -08:00
Richard Belleville
270880f440
Yapf
2020-02-10 11:56:38 -08:00
Richard Belleville
78c9ce56e5
Remove unguarded import of simple_stubs
2020-02-10 11:36:33 -08:00
Mark D. Roth
bc9cc67fa6
Merge pull request #21857 from markdroth/json_old_api_remove
...
Remove old JSON API
2020-02-10 07:30:52 -08:00
Richard Belleville
e5b287ead8
Yapf. Pylint
2020-02-07 16:51:25 -08:00
Richard Belleville
ac864c7502
Make APIs experimental
2020-02-07 16:42:38 -08:00
Richard Belleville
84c8dc739e
Add insecure_channel_credentials function
2020-02-07 15:59:24 -08:00
Lidi Zheng
8701b18efb
Use str instead of Text
2020-02-07 10:40:26 -08:00
Richard Belleville
aadcded305
Add docstrings
2020-02-06 16:56:01 -08:00
Richard Belleville
1abe2f0ac2
Add stream_stream
2020-02-06 16:37:39 -08:00
Richard Belleville
38bef98463
Add stream-unary
2020-02-06 16:27:21 -08:00
Richard Belleville
b5f06c216e
Implement unary_stream
2020-02-06 16:10:25 -08:00
Richard Belleville
4ac50ceed6
Add maximum-based channel eviction
2020-02-06 15:59:01 -08:00
Lidi Zheng
15ff162fe3
Improve the documentation about newly added exception classes
2020-02-06 14:21:43 -08:00
Lidi Zheng
22cd31b0ec
Remove TODO
2020-02-06 14:21:42 -08:00
Lidi Zheng
ecf44b094b
Prohibit mixing two styles of API on client side
2020-02-06 14:21:42 -08:00
Lidi Zheng
072c150e77
Merge pull request #21885 from lidizheng/aio-channel-ready
...
[Aio] Add channel_ready helper function
2020-02-06 12:35:37 -08:00
Lidi Zheng
231d4b22a1
Merge pull request #21919 from Skyscanner/set-error-description
...
[Aio] Set debug_error_string to AioRpcError
2020-02-06 12:01:01 -08:00
Lidi Zheng
be85024b34
Merge pull request #21809 from lidizheng/aio-compression
...
[Aio] Support compression for both client and server
2020-02-06 10:04:42 -08:00
Mariano Anaya
1df63bf35b
Get the debug_error_string in a simpler fashion
...
* Use the public method in ``AioRpcStatus``
* Keep everything encapsulated inside the function that creates the
error.
2020-02-06 09:19:16 +01:00
Lidi Zheng
473a75b47e
Reduce side effect of a "create" method
2020-02-05 15:02:21 -08:00
Mariano Anaya
583712704a
[Aio] Set debug_error_string to AioRpcError
...
When handling errors in aio, also set the ``debug_error_string``, to get
more information (when available), about the exception, and help debug.
2020-02-05 16:49:08 +01:00
Richard Belleville
741b407ac4
Add simple eviction mechanism
2020-02-04 18:34:55 -08:00
Mark D. Roth
01e87e2d93
Remove old JSON API
2020-02-04 15:21:27 -08:00
Lidi Zheng
c564d28f9a
Merge pull request #21903 from lidizheng/aio-fix-close
...
[Aio] Attempt to fix recent AsyncIO windows flake
2020-02-04 14:57:47 -08:00
Yash Tibrewal
c3bcb6c7ce
Merge pull request #21846 from yashykt/workserializer
...
Replace LogicalThread with WorkSerializer
2020-02-04 14:23:28 -08:00
Richard Belleville
5a8a6e3ad3
Add thread-safe channel cache. Test that it actually caches
2020-02-04 12:34:34 -08:00
Lidi Zheng
b378b66f8c
[Aio] Attempt to fix recent AsyncIO windows flake
2020-02-04 11:03:03 -08:00
Lidi Zheng
daeaf8eff4
Promote the channel_ready & simplify test logic
2020-02-04 10:26:57 -08:00
Lidi Zheng
0919f939b4
Improve compression docstring & simplify metadata default value
2020-02-04 10:10:46 -08:00
Jan Tattermusch
21512217f2
get rid of the https://grpc.io/release plague
2020-02-04 15:01:03 +01:00
Richard Belleville
0c4af58acc
Add test and fake LRU cache interface
2020-02-03 18:30:00 -08:00
Lidi Zheng
6a330edf74
Add channel_ready helper function
2020-02-03 16:44:19 -08:00
Lidi Zheng
d190a0e08c
Make YAPF happy
2020-02-03 15:59:51 -08:00
Lidi Zheng
cd76b79e7f
Support compression for both client and server
2020-02-03 15:57:22 -08:00
Lidi Zheng
ffb41a2368
Merge pull request #21819 from Skyscanner/close_ongoing_calls
...
[Aio] Close ongoing calls when the channel is closed
2020-02-03 14:55:16 -08:00
Pau Freixes
84d2a70741
Merge branch 'master' into close_ongoing_calls
2020-02-03 17:13:01 +01:00
Pau Freixes
2d89ef0acd
Fix pylint issue
2020-02-03 17:07:20 +01:00
Pau Freixes
3a8be1784c
make YAPF happy
2020-02-03 17:06:05 +01:00
Pau Freixes
c94364f311
Use a weakset for storing ongoing calls
2020-02-03 17:04:54 +01:00
Pau Freixes
2cef2fce39
Use set as data structure for trace ongoing calls
2020-02-03 15:52:26 +01:00
Pau Freixes
d0b218ae18
Once cancelled just destroy the channel
2020-02-03 15:29:41 +01:00
Lidi Zheng
47246c86bb
Fix the server credentials & improve socket implementation
2020-01-31 15:17:52 -08:00
Lidi Zheng
343e77ab9e
Merge pull request #21714 from lidizheng/aio-auto
...
[Aio] Introduce gRPC Async into our interop combo
2020-01-31 15:15:51 -08:00
Lidi Zheng
fb849fbda7
Merge pull request #21863 from lidizheng/flake-channel-argument
...
[Aio] Deflake the channel_argument_test & improve socket error handling
2020-01-31 14:16:04 -08:00
Lidi Zheng
788d14cb1f
Enable more local interop test cases and other fixes:
...
* Support echo status and metadata for interop test server
* Add set_code and set_details for ServicerContext
* Add an is_ok() method on cygrpc._AioCall object
* Sanitize user supplied status code
* Prettify server-side unexpected exception log
* Reduce log spams from unary calls
2020-01-31 13:19:09 -08:00
Lidi Zheng
9b26b410fb
Support echo status for interop test server
2020-01-31 13:19:09 -08:00
Lidi Zheng
41bc9b9910
Merge pull request #21803 from lidizheng/aio-wait
...
[Aio] Support wait-for-ready mechanism
2020-01-31 13:15:10 -08:00
Lidi Zheng
c926941447
Deflake the channel_argument_test & improve socket error handling
2020-01-31 12:54:14 -08:00
Lidi Zheng
27a7ec6b0d
Make YAPF happy
2020-01-31 11:25:51 -08:00
Lidi Zheng
0de9a7b231
Fix typo
2020-01-31 10:42:51 -08:00
Jan Tattermusch
b8aa71ded7
Merge pull request #21833 from jtattermusch/reintroduce_again_21527
...
Reintroduce #21527 (boringssl submodule unification - take two)
2020-01-31 16:57:22 +01:00
Yash Tibrewal
74309886bb
Replace LogicalThread with WorkSerializer
2020-01-30 13:20:57 -08:00
Lidi Zheng
a63f51b1ad
Remove assertions & add a comment
2020-01-29 15:50:21 -08:00
Lidi Zheng
82b185b268
Make sanity tests happy
2020-01-29 15:41:59 -08:00
Lidi Zheng
72d6642226
Support wait-for-ready mechanism
...
* Fixing a segfault & a deadlock along the way
* Patching another loophole in the error path
2020-01-29 15:41:59 -08:00
Mark D. Roth
380eb750ec
New JSON API
2020-01-29 14:52:19 -08:00
Pau Freixes
5959b685e8
Remove unused imports, add pylint exceptions
2020-01-29 23:13:06 +01:00
Pau Freixes
90331211a6
Add graceful period for closing the channel
...
Separated the tests for testing how a channel is closed into another
test file.
Fixed a bug introduced into the interceptors code in the previous
commit.
2020-01-29 23:07:26 +01:00
Lidi Zheng
deb472fa99
Merge pull request #21820 from lidizheng/fix-windows-compile
...
Fix the windows build failure
2020-01-29 09:54:15 -08:00
Jan Tattermusch
f098606c4a
Revert "Revert "Reintroduce #21527 (boringssl submodule unification)""
...
This reverts commit cca892022b .
2020-01-29 09:18:51 -05:00
Lidi Zheng
e5ff58ed85
Make YAPF happy
2020-01-28 15:43:13 -08:00
Lidi Zheng
50ed111cde
Pack the platform check into the compiler check function
2020-01-28 15:41:29 -08:00
Pau Freixes
c2b3e00068
[Aio] Close ongoing calls when the channel is closed
...
When the channel is closed, either by calling explicitly the `close()`
method or by leaving an asyncrhonous channel context all ongoing RPCs will be
cancelled.
2020-01-28 23:16:58 +01:00
Lidi Zheng
09d121f65e
Fix the windows build failure
2020-01-28 13:32:59 -08:00
hcaseyal
cca892022b
Revert "Reintroduce #21527 (boringssl submodule unification)"
2020-01-27 13:46:10 -08:00
Richard Belleville
cb125e969a
Merge pull request #21799 from benjaminp/credentials-daemon
...
Make credentials callback threads daemonic.
2020-01-27 12:57:46 -08:00
Lidi Zheng
2dcd83d68b
Merge pull request #21772 from lidizheng/aio-call-mixins-new
...
Adding mixin classes to make client-side implementation cleaner V2
2020-01-27 12:20:58 -08:00
Benjamin Peterson
fb8b7fbcac
Make credentials callback threads daemonic.
...
Similarly to #21786 , we want to avoid holding up interpreter shutdown with internal threads.
2020-01-27 11:06:55 -08:00
Richard Belleville
8af2097a45
Merge pull request #21786 from benjaminp/deliver-daemon
...
Mark the delivery thread daemonic.
2020-01-27 10:54:40 -08:00
Lidi Zheng
f8ec53ea42
Removing unused variables & rename variables
2020-01-27 10:04:08 -08:00
Jan Tattermusch
e7e5d0198f
Revert "Revert "Unify boringssl submodules and use non-developer boringssl cmake build""
...
This reverts commit fe2242e603 .
2020-01-27 05:04:05 -05:00
Mark D. Roth
ac7c1d20ed
Add LDS/RDS into XdsClient
2020-01-24 08:05:02 -08:00
Benjamin Peterson
4ab5aaf142
Mark the delivery thread daemonic.
2020-01-23 16:33:47 -08:00
Lidi Zheng
0c142306be
De-duplication for the call objects
2020-01-23 10:12:20 -08:00
Lidi Zheng
5109e05d06
Merge pull request #21708 from lidizheng/aio-fix
...
[Aio] Fixing a segfault in the shutdown path
2020-01-21 15:27:46 -08:00
Lidi Zheng
c4c318dc54
Merge pull request #21696 from Skyscanner/move_status_initial_metadata_cython
...
Move status and initial metadata handling to Cython
2020-01-21 13:48:40 -08:00
Lidi Zheng
29d42a4731
Merge pull request #21672 from lidizheng/one-logger
...
Clean-up loggers and imports in Cython
2020-01-21 11:29:40 -08:00
Lidi Zheng
d803bc8e4e
Merge pull request #21712 from lidizheng/fix-import
...
[Aio] Fix a segfault in check connectivity state
2020-01-21 11:09:26 -08:00
Jan Tattermusch
e886a9d0fd
Merge pull request #21723 from grpc/revert-21527-unify_boringssl_deps2
...
Revert "Unify boringssl submodules and use non-developer boringssl cmake build"
2020-01-21 19:23:18 +01:00
Pau Freixes
2dde566d39
Fix pylint issue
2020-01-21 15:19:33 +01:00
Pau Freixes
071da37fb9
Remove unused call attributes
2020-01-20 23:44:43 +01:00
Pau Freixes
90b04f2a45
Make YAPF happy
2020-01-20 23:37:29 +01:00
Pau Freixes
53c41de3e0
Refactorize Cython and Python call communications
...
Now the status and the initial metadata, as awaitable methods, are
provided by the Cython layer. Any time the Python layer, like the Call
object, needs to know the status of the initial metadata uses the new
methods published by the AioCall
2020-01-20 23:09:46 +01:00
Jan Tattermusch
fe2242e603
Revert "Unify boringssl submodules and use non-developer boringssl cmake build"
2020-01-20 14:27:31 +01:00
Jan Tattermusch
3f3cf8b62a
Revert "grpclb stabilization"
2020-01-20 14:11:16 +01:00
Jan Tattermusch
eba60d8dbe
Merge pull request #21527 from jtattermusch/unify_boringssl_deps2
...
Unify boringssl submodules and use non-developer boringssl cmake build
2020-01-20 07:52:42 +01:00
Lidi Zheng
225d37e84c
Fix a segfault in check connectivity state
2020-01-17 17:14:30 -08:00
Lidi Zheng
80d7acff7c
Fixing a segfault in the server shutdown path
2020-01-17 16:09:39 -08:00
Alexander Polcyn
1197454f5a
Regenerate projects
2020-01-17 15:36:25 -08:00
Lidi Zheng
b9083a9edb
Merge pull request #21681 from lidizheng/aio-callbacks
...
[Aio] Implement add_done_callback and time_remaining
2020-01-17 10:41:26 -08:00
apolcyn
232fa12972
Merge pull request #21590 from jtattermusch/protobuf_3_11_2
...
Update third_party/protobuf to v3.11.2
2020-01-16 14:15:12 -08:00
Lidi Zheng
c1eab2e95f
Remove the suppression
2020-01-16 12:15:12 -08:00
Lidi Zheng
0fc1d212aa
Make sanity tests happy
2020-01-16 12:13:36 -08:00
Jan Tattermusch
325da0066d
regenerate projects
2020-01-16 03:55:18 -05:00
Lidi Zheng
1c78ccd44e
Implement add_done_callbacks and time_remaining
2020-01-15 18:07:45 -08:00
Lidi Zheng
6f6b0d09bd
Merge pull request #21643 from lidizheng/aio-reuseport
...
[Aio] Support SO_REUSEPORT channel option
2020-01-15 16:28:31 -08:00
Lidi Zheng
af67aaf031
Merge pull request #21647 from lidizheng/aio-metadata
...
[Aio] Support metadata for unary calls
2020-01-15 16:27:00 -08:00
Esun Kim
d4f191b647
Merge pull request #21677 from veblush/absl-update
...
Update absl to the lastest
2020-01-15 15:23:54 -08:00
Lidi Zheng
613f64f12e
Support metadata for streaming RPCs
2020-01-15 14:18:09 -08:00
Esun Kim
9e15f78cf8
Update absl to the lastest
2020-01-15 13:39:51 -08:00
Lidi Zheng
f912ddf7d4
Split the seen_metadata function & assign tuple() as default value
2020-01-15 12:11:54 -08:00
Lidi Zheng
181437bbd8
Add prepend_send_initial_metadata_op function
2020-01-15 11:50:51 -08:00
Lidi Zheng
435cf89108
Fix a bug that prevents metadata modification in interceptors
2020-01-15 11:28:27 -08:00
Lidi Zheng
ec2f394803
Resolve the conflict between PRs
2020-01-15 11:28:27 -08:00
Lidi Zheng
a140a362ba
Make sanity tests happy
2020-01-15 11:27:18 -08:00
Lidi Zheng
f9397de161
Make test pass after the merge
2020-01-15 11:26:44 -08:00
Zhanghui Mao
6d556914d0
fix metadata
2020-01-15 11:26:19 -08:00
Zhanghui Mao
0b802e0404
implement metadata for aio unary call
2020-01-15 11:24:44 -08:00
Lidi Zheng
cdade7c450
Clean-up loggers and imports in Cython
2020-01-15 11:04:58 -08:00
Jan Tattermusch
27cdec0041
buildifier format
2020-01-15 04:43:59 -05:00
Richard Belleville
69f990673f
Conform to protobuf's usage of six
2020-01-15 04:43:59 -05:00
Lidi Zheng
4ec94d2d67
Implement stream-unary and stream-stream RPC
...
* Includes both client-side and server-side
* Adding many tests in multiple files
* Introduces EOF as stream terminator
* Fixing crashes from Core in many ways
2020-01-14 17:31:13 -08:00
Lidi Zheng
385cd4b443
Merge pull request #21582 from lidizheng/aio-abort
...
[Aio] Abort mechanism for server side
2020-01-14 13:48:23 -08:00
Lidi Zheng
259be9e6b7
Compress the catch clauses
2020-01-14 12:12:07 -08:00
Lidi Zheng
1dc2679d6d
Explicitly pointout KeyboardInterrupt and SystemExit can pass freely
2020-01-14 12:12:07 -08:00
Lidi Zheng
65ba1c9aab
Remove unused function
2020-01-14 12:12:07 -08:00
Lidi Zheng
9bba7b7af5
Improve readability
2020-01-14 12:12:07 -08:00
Lidi Zheng
26367cecc2
Expose the AbortError to enable users to identify the exception
2020-01-14 12:12:07 -08:00
Lidi Zheng
8429fec1b5
Make pytype happy
2020-01-14 12:04:17 -08:00
Lidi Zheng
cddd0a0419
Implement abort mechanism for server side
2020-01-14 12:04:17 -08:00
Lidi Zheng
2306e26130
Adding comments about socket options portability
2020-01-14 11:52:53 -08:00
Lidi Zheng
85c8ce2f2f
Fix a bug in conflict resolution
2020-01-14 11:50:52 -08:00
Lidi Zheng
4a86bb16f5
Adding documentation to the new ref-count mechanism
2020-01-14 10:55:53 -08:00
Lidi Zheng
7520925814
Further simplify the ref-count management for CallbackWrapper
2020-01-14 10:55:53 -08:00
Lidi Zheng
3099856a6a
Adopt reviews' suggestions:
...
* Created a separate file for test constants
* Guarded current behavior of watch_connectivity_state
* Applied the same SEGV protection to callback_common
2020-01-14 10:55:53 -08:00
Lidi Zheng
050b3989f0
Make pytype happy
2020-01-14 10:55:52 -08:00
Lidi Zheng
0afc05cef5
Fixing the docstring wording
2020-01-14 10:55:52 -08:00
Lidi Zheng
f75ce34da7
Removing an empty line
2020-01-14 10:55:52 -08:00