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
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
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
Lidi Zheng
a5503cc64a
Add unit test for channel ready
2020-02-03 16:46:48 -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
eb1f21f651
Improve readability of unit tests & add one more test case
2020-02-03 15:57:22 -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
Lidi Zheng
f20bf08d17
Merge pull request #21855 from lidizheng/aio-auto-creds
...
[Aio] Fix the server credentials & improve socket implementation
2020-02-03 13:51:21 -08:00
Pau Freixes
5cd4e133bf
Increase timeout in some tests
2020-02-03 21:52:02 +01: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
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