Mehrdad Afshari
faf406d65b
Merge pull request #21865 from mehrdada/genericize-rpc_test
...
Check .code() before .cancelled() in Python RPC tests
2020-01-31 18:57:56 -08:00
Lidi Zheng
69c63cb33a
Merge pull request #21770 from lidizheng/aio-timeout
...
[Aio] Add tests for timeout mechanism on the client-side
2020-01-31 15:21:58 -08:00
Mehrdad Afshari
9bdd529077
Check .code() before .cancelled() in Python RPC tests
...
Call object's `.cancelled()` is not guaranteed to immediately return
True per spec even if `cancel()` is called. `.code()` ensures that
the RPC is terminated before we check for `.cancelled()` to ensure
our test is not stricter than necessary (a conforming implementation
should be allowed to return `False` on `cancelled()` for a bit due
to a race or something. This change makes the test more generically
applicable to other implementations.
2020-01-31 15:20:54 -08:00
Lidi Zheng
892fdf85d6
Add SecureLocalInteropTest to tests.json
2020-01-31 15:17:52 -08: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
4842e23e9c
Make YAPF happy
2020-01-31 13:19:09 -08:00
Lidi Zheng
3e2d5da7a2
Use as much template as possible & fix some wording
2020-01-31 13:19:09 -08:00
Lidi Zheng
acbc36b281
Remove the unused constant
2020-01-31 13:19:09 -08:00
Lidi Zheng
20a6edfe6e
Restrict visibility & improve readability
2020-01-31 13:19:09 -08:00
Lidi Zheng
dc202bdf1f
Adding gRPC Python AsyncIO interop client and server
2020-01-31 13:19:09 -08:00
Lidi Zheng
b62bc90cec
Update tests.json
2020-01-31 13:16:10 -08:00
Lidi Zheng
f3acd16a49
The initialization of connection might take longer than expected
2020-01-31 13:16:10 -08:00
Lidi Zheng
f713be4f96
Fix the json
2020-01-31 13:16:10 -08:00
Lidi Zheng
ece8422dd0
Simplify the generic handler
2020-01-31 13:16:10 -08:00
Lidi Zheng
c3caab3b3e
Make Python sanity test happy
2020-01-31 13:16:10 -08:00
Lidi Zheng
fd8cf4ec07
Use f-string
2020-01-31 13:16:10 -08:00
Lidi Zheng
2750fa31bb
Remove the evil debug line
2020-01-31 13:16:10 -08:00
Lidi Zheng
48a8072bc9
Add timeout tests
2020-01-31 13:16:10 -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
387c2c7d61
Further reduce the server number to 5
2020-01-31 13:09:26 -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
1b92dc0a7e
Fix the windows failure
2020-01-29 15:41:59 -08:00
Lidi Zheng
4e4f1f40f1
Correct the tests.json
2020-01-29 15:41:59 -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
Pau Freixes
46804d8125
Add test for stream unary close channel, remove irrelevant code
2020-01-30 00:00:18 +01:00
Pau Freixes
2f81f3df82
Fix typo
2020-01-29 23:53:14 +01:00
Mark D. Roth
380eb750ec
New JSON API
2020-01-29 14:52:19 -08:00
Pau Freixes
a1eb58c6ff
Fix pytype issue
2020-01-29 23:52:01 +01:00
Pau Freixes
cc8bd8cfda
Use Event for knowing if a callback was called or not
2020-01-29 23:23:51 +01:00
Pau Freixes
61177a2cd8
Make none graceful test explicit
2020-01-29 23:15:51 +01: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
2ea49dbf9a
Adding a space line
2020-01-21 11:37:41 -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
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
Lidi Zheng
780bff32eb
Fix the test case
2020-01-16 12:06:08 -08:00
Lidi Zheng
21670ed1a8
Add time remaining test case
2020-01-16 11:59: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
adab340647
Simplify call_test using mixin class
2020-01-15 18:07:27 -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
c6a97f125a
Fix the breakage due to conflict
2020-01-15 11:30:58 -08:00
Lidi Zheng
435cf89108
Fix a bug that prevents metadata modification in interceptors
2020-01-15 11:28:27 -08:00
Lidi Zheng
a3e950adbb
Make tests.json happy
2020-01-15 11:28:27 -08:00
Lidi Zheng
fb2b4ec82b
Add two more invalid metadata test cases
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
bcf3a1f9e7
Add metadata test
2020-01-15 11:26:44 -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
5a4a5a0088
Merge pull request #21517 from lidizheng/aio-streaming
...
[Aio] Client Streaming and Bi-di Streaming
2020-01-15 11:20:41 -08:00