Donna Dionne
4f8ed98f3e
Xds cluster resolver
...
Implemented new xds cluster resolver config
Separated policy and discovery mechanism
2020-12-14 16:05:15 -08:00
Lidi Zheng
0dd3f7e65b
Merge pull request #24946 from lidizheng/abort-annotation
...
[Aio] Correct type annotation of grpc.aio.ServicerContext.abort
2020-12-09 14:44:12 -08:00
Lidi Zheng
45b4608a02
Correct the type annotation of abort
2020-12-09 10:10:30 -08:00
Yash Tibrewal
c9e99945ec
Add SANs matching for xDS credentials
2020-12-08 15:15:39 -08:00
AJ Heller
880a854f0e
Convert URI parser to C++ #24701
2020-12-07 12:13:22 -08:00
Mark D. Roth
d6298ed3dc
Merge pull request #24806 from markdroth/client_channel_split0
...
Eliminate ResolvingLoadBalancingPolicy.
2020-12-01 08:09:52 -08:00
Mark D. Roth
0e13934764
Eliminate ResolvingLoadBalancingPolicy.
2020-11-30 11:37:37 -08:00
Lidi Zheng
2d7d354c92
Merge pull request #24818 from lidizheng/aio-max-concurrent
...
Add limit concurrent RPC feature to asyncio server
2020-11-24 12:59:07 -08:00
Lidi Zheng
3da3cc2168
Add limit concurrent RPC feature to asyncio server
...
* Reduce the allocation of new function
2020-11-23 14:45:34 -08:00
Lidi Zheng
511af22c78
Hopefully fixed 27 build on winserver2016
...
* Download the working msys64 and use it to compile 27
* Remove the cygwin detection override logic
* Only install Python interpreters in jobs running on winserver2016
* Fix the batch script substring check
* Increase the timeout for related jobs
* TIL that there is an allow list for Kokoro env vars
2020-11-23 14:17:58 -08:00
Lidi Zheng
a0883ea81a
Found another typo in the comment
2020-11-20 13:24:45 -08:00
Lidi Zheng
06ce4cb51c
Use the correct adjective for false
2020-11-20 13:04:09 -08:00
Lidi Zheng
2996c03114
Fix the emtpy response handling in streaming RPC
2020-11-20 12:16:21 -08:00
Chuan Ren
1faf030cc4
Add aws-sourced external credentials
2020-11-19 11:20:35 -08:00
yulin-liang
2ffa791ae6
Regenerate projects
2020-11-17 13:10:08 -08:00
Lidi Zheng
cbab3b4dac
Str and bytes have different interface...
2020-11-13 12:07:45 -08:00
Lidi Zheng
0e275f3d2b
Change to explicitly encode
2020-11-13 12:07:45 -08:00
Lidi Zheng
892e7bacb1
Explicitly set encoding to ascii to prevent TypeError in 3.7+
2020-11-13 12:07:44 -08:00
Mark D. Roth
28c795f542
Merge pull request #24618 from renkelvin/aws-signer
...
[3PI Support] Add aws signature v4 signer
2020-11-12 07:43:05 -08:00
Chuan Ren
bedaeb5265
Add aws signature v4 signer
2020-11-11 15:55:16 -08:00
Lidi Zheng
4dab5d3deb
Merge pull request #24718 from lidizheng/stop-ctrl-c-spam
...
Stop the spamming log generated by ctrl-c for AsyncIO server
2020-11-11 15:14:27 -08:00
Yash Tibrewal
0b4c258354
Merge pull request #24711 from yashykt/filewatcherconfig
...
File watcher certificate provider config parsing
2020-11-11 02:23:13 -08:00
Yash Tibrewal
d45bbe46e0
File watcher certificate provider config parsing
2020-11-10 15:49:23 -08:00
Lidi Zheng
c0e0207fde
Add the empty line back
2020-11-10 14:37:43 -08:00
Lidi Zheng
a012edf10f
Stop the ctrl-c spam
2020-11-10 14:33:14 -08:00
Lidi Zheng
89fa7203d0
Add a special optimization for 1 rpc unary-stream sync
2020-11-10 12:31:24 -08:00
Ben Reed
eacf3ba54f
Make python qps_worker --server_port consistent
...
The python qps_worker was changed in grpc/grpc#24350 , adding support for
the --server_port flag. When the --server_port flag was set, the python
worker ignored the port specified in the Scenario's ServerConfig.
This behavior was inconsistent with Java and Go. In the workers for
those languages, the --server_port flag was used only when the
Scenario's ServerConfig port was unset. It did not override.
This commit alters the behavior of the python qps_worker to match Java
and Go, similar to grpc/grpc#24661 for C++. In addition, it updates the
documentation for the flag.
2020-11-04 15:25:20 -08:00
capstan
3b9484afcb
Rerun tools/buildgen/generate_projects.sh under Python 3.
...
This generates reordered lists, presumably dict traversal issues, and there are whitespace diffs in the emitted .json files.
2020-11-04 01:31:40 +01:00
yulin liang
75044f89f1
Merge pull request #24657 from yulin-liang/update-boringssl
...
1.34 Release [T - 4w] Updating boringssl
2020-11-03 13:53:47 -08:00
Esun Kim
e0cbc7e5dd
Merge pull request #24245 from veblush/stacktrace
...
Add stack-tracer to gRPC
2020-11-03 13:50:41 -08:00
yulin-liang
afc556a4c3
renegerate files
2020-11-03 11:53:12 -08:00
Chuan Ren
2b1265b42f
Add file-sourced external credentials
2020-11-02 14:11:50 -08:00
Yash Tibrewal
f0edcac24b
Merge pull request #24579 from yashykt/xdscertificateprovider
...
Add XdsCertificateProvider
2020-11-02 11:28:45 -08:00
Esun Kim
f3e75c1fa9
Add stack-tracer to gRPC
2020-11-01 23:02:39 -08:00
Lidi Zheng
0bad97452d
Merge pull request #24614 from lidizheng/not-found-windows
...
Fix a typo in Python's Windows build
2020-10-30 12:51:05 -07:00
Yash Tibrewal
e11a670736
Add XdsCertificateProvider
2020-10-30 10:15:57 -07:00
Lidi Zheng
1eedd0a693
Add extra safe guard to prevent this function misbehave again
2020-10-30 10:15:33 -07:00
Lidi Zheng
ca2b0f5f07
Fix typo in Python's Windows build
2020-10-29 17:15:31 -07:00
ZhenLian
d5d35650b0
add API to get last modification time of a file
2020-10-29 10:43:29 -07:00
Lidi Zheng
3c17848cee
Merge pull request #24576 from lidizheng/unary-stream-exp
...
Add support for unary-stream benchmarking for Python
2020-10-27 14:12:25 -07:00
Lidi Zheng
85228ef34a
s/streamming/streaming/g
2020-10-26 17:11:11 -07:00
Lidi Zheng
36b46b104a
Add support for unary-stream benchmarking for Python
2020-10-26 16:50:57 -07:00
Richard Belleville
efb843980c
Merge pull request #24523 from gnossen/single_threaded_future
...
Implement grpc.Future interface in SingleThreadedRendezvous
2020-10-26 15:32:35 -07:00
ZhenLian
4d80f376a3
Merge pull request #24227 from ZhenLian/zhen_dynamic_file_reloading_3
...
C-core changes for TLS credentials
2020-10-26 13:38:39 -07:00
Richard Belleville
9b24faf188
Add comment about timeout argument
2020-10-23 16:01:19 -07:00
Esun Kim
4efde0b477
Generating projects
2020-10-23 13:22:38 -07:00
ZhenLian
518ed1303c
Add Credential Loading From Static Providers For TLS Credentials
2020-10-22 13:55:31 -07:00
Richard Belleville
928e3b2fa5
Spruce up docstrings
2020-10-21 21:55:02 -07:00
Richard Belleville
f2059ee6be
Implement grpc.Future interface in SingleThreadedRendezvous
2020-10-21 20:35:18 -07:00
Mark D. Roth
62cfb36c60
Merge pull request #24411 from renkelvin/url
...
[3PI Support] Add url-sourced external account credentials
2020-10-21 08:48:34 -07:00
Yash Tibrewal
cf26660f44
Merge pull request #24408 from yashykt/castore
...
Certificate Provider Store implementation
2020-10-21 01:18:09 -07:00
Yash Tibrewal
ea027f0ef5
CertificateProviderStore implementation
2020-10-20 23:05:36 -07:00
Richard Belleville
de90ff64d5
Merge pull request #24478 from gnossen/runtime_protos_wkt
...
[gRPC Easy] Make Well-Known Types Available to Runtime Protos
2020-10-20 20:08:14 -07:00
Chuan Ren
4c93d36d08
Add url-sourced external credentials
2020-10-20 13:56:55 -07:00
Richard Belleville
905bb9834a
Switch names around
2020-10-20 13:31:36 -07:00
Lidi Zheng
e861546b3c
Replace grpc_shutdown_blocking with grpc_shutdown in Cython
2020-10-19 17:08:01 -07:00
Richard Belleville
f13b324941
Include well-known types in sys.path when using runtime protos
2020-10-19 13:02:33 -07:00
Mark D. Roth
e05c5da2c8
Merge pull request #24419 from markdroth/xds_cluster_impl_lb
...
Move circuit breaking, EDS drops, and load reporting to xds_cluster_impl policy.
2020-10-16 09:24:04 -07:00
Mark D. Roth
e496705ea3
Move circuit breaking, EDS drops, and load reporting to xds_cluster_impl policy.
2020-10-16 07:29:08 -07:00
Mark D. Roth
27795e7cad
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-10-15 20:05:29 -07:00
Lidi Zheng
684b5d1f47
Fix the grpc.aio import hack and its unit test
2020-10-14 17:00:25 -07:00
Mark D. Roth
6c982e6b61
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-10-14 16:32:13 -07:00
Mark D. Roth
012381235f
Merge pull request #24208 from renkelvin/base
...
[3PI Support] Add base external account credentials class
2020-10-13 10:27:14 -07:00
Chuan Ren
0cf672d42e
Add implementation of base external account credentials
2020-10-12 16:18:11 -07:00
Mark D. Roth
ff7496b660
fix upbdefs paths for non-bazel builds
2020-10-12 15:23:03 -07:00
Mark D. Roth
f81650f497
update list of upbdefs files in build
2020-10-12 14:48:18 -07:00
Mark D. Roth
7d6b12fe73
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-10-12 14:21:45 -07:00
Lidi Zheng
f9925a6f97
Merge pull request #24356 from lidizheng/support-3.9
...
[Linux] [macOS] Support pre-compiled Python 3.9 wheels
2020-10-12 10:28:07 -07:00
Yash Tibrewal
4013fd9dc9
Merge pull request #24313 from yashykt/xdscredscpp
...
C++ API to create Xds channel credentials
2020-10-08 22:27:21 -07:00
Yash Tibrewal
c52cb09f47
Add experimental XdsCredentials with support for insecure channel_credentials and security_connector
2020-10-08 20:37:47 -07:00
Benjamin Reed
9757a09ec4
Merge pull request #24350 from codeblooded/python/bug/add-server-port
...
Add --server_port flag to python benchmark worker
2020-10-08 16:24:56 -07:00
Richard Belleville
9c41697873
Merge pull request #24326 from gnossen/fix_fork_interop
...
Remove uses of PIPE in Fork Interop Tests
2020-10-08 15:08:12 -07:00
Lidi Zheng
89b34444f8
Merge pull request #24341 from grpc/revert-24337-revert-24289-aio-import-dot
...
Revert "Revert "Allow asyncio API to be imported as grpc.aio""
2020-10-07 15:56:36 -07:00
Donna Dionne
aafe657978
Bump version to v1.34.x: regenerate projects
2020-10-07 12:51:27 -07:00
Lidi Zheng
4fa90f42ce
Support pre-compiled Python 3.9 wheels
2020-10-07 12:43:45 -07:00
Lidi Zheng
6336930029
Check file name instead of package name
2020-10-07 11:01:00 -07:00
Ben Reed
9a00264e9b
Add --server_port flag to python benchmark worker
...
The benchmark workers for most gRPC languages support a `--server_port`
flag. When specified, the server accepts traffic on this port. This is
true even if a port is specified in the ServerConfig message of a
Scenario.
This change adds this flag to the benchmark worker for Python, allowing
it to adopt the same behavior.
2020-10-07 10:38:56 -07:00
Lidi Zheng
442aa916dc
Make sure the module space won't be polluted by "from grpc import aio"
2020-10-06 16:55:14 -07:00
Lidi Zheng
c6dc383c15
Prevent import order issue in cyclic imports
2020-10-06 16:53:01 -07:00
Lidi Zheng
e54fe6ccd0
Revert "Revert "Allow asyncio API to be imported as grpc.aio""
2020-10-06 14:14:13 -07:00
Lidi Zheng
d938e0052e
Revert "Allow asyncio API to be imported as grpc.aio"
2020-10-06 12:35:26 -07:00
Yash Tibrewal
7c7b452f16
Merge pull request #24312 from yashykt/xdscreds
...
gRPC Core API to create Xds channel credentials
2020-10-06 12:18:44 -07:00
Richard Belleville
3dc0b3b625
Get port properly
2020-10-05 15:29:45 -07:00
Yash Tibrewal
48ec53971a
gRPC Core API to create Xds channel credentials
2020-10-05 14:52:08 -07:00
Richard Belleville
d13fbc5bfb
Remove uses of PIPE
2020-10-05 11:27:46 -07:00
Mark D. Roth
7c0b500f33
Merge pull request #24291 from markdroth/xds_load_reporting_in_eds
...
Move locality load reporting to EDS policy.
2020-10-05 08:35:18 -07:00
Lidi Zheng
4f3f6960f9
Merge pull request #24289 from lidizheng/aio-import-dot
...
Allow asyncio API to be imported as grpc.aio
2020-10-02 15:38:25 -07:00
Lidi Zheng
b830caa997
Update the tests.json
2020-10-02 13:10:17 -07:00
Mark D. Roth
799e805e8a
Move locality load reporting to EDS policy.
2020-10-02 11:16:01 -07:00
Mark D. Roth
71050c88b9
Move EDS drop handling to a new eds_drop LB policy.
2020-10-02 08:23:48 -07:00
Lidi Zheng
c9768211fb
Remove unused import
2020-10-01 11:43:50 -07:00
Lidi Zheng
638f6fb659
Expand alternatives to import aio module
2020-10-01 11:43:50 -07:00
Lidi Zheng
b7894bb090
Allow asyncio API to be accessed as grpc.aio.foo
2020-10-01 11:43:50 -07:00
Lidi Zheng
32e4c1c1df
Merge pull request #24267 from lidizheng/fix-macos-enum
...
Don't install enum34 for non-2.7 Python
2020-09-30 12:04:01 -07:00
Mark D. Roth
02436e33ea
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-09-30 11:40:56 -07:00
Lidi Zheng
777792b652
Merge pull request #24271 from lidizheng/tiny-fix-in-commands
...
Use != with literals in commands.py
2020-09-30 10:43:05 -07:00
Donna Dionne
bad6ee7676
Merge remote-tracking branch 'upstream/master' into release
2020-09-29 22:25:43 -07:00
Lidi Zheng
8da468ff09
Merge pull request #24257 from lidizheng/rpc-test-split-test
...
Split RPCTest into two and speed up test cases
2020-09-29 16:21:21 -07:00
Lidi Zheng
e242764d50
Remove enum34 from requirements.txt
2020-09-29 15:17:38 -07:00
Donna Dionne
bcd41d6397
Merge remote-tracking branch 'upstream/master' into release
2020-09-29 14:55:57 -07:00
Lidi Zheng
9e0b427893
Use != with literals
2020-09-29 14:44:59 -07:00
Lidi Zheng
944d20f7b8
Make buildifier happy
2020-09-29 13:56:04 -07:00
Lidi Zheng
7f52f5d669
Make linters happy
2020-09-29 12:04:57 -07:00
Lidi Zheng
84acaad1fe
Split RPCTest into two and speed up test cases
2020-09-29 12:04:57 -07:00
Yash Tibrewal
2a56886513
Update submodules: envoy-api, protoc-gen-validate, udpa
2020-09-29 12:03:40 -07:00
Mark D. Roth
69c52a8b2a
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-09-29 09:01:09 -07:00
Donna Dionne
55267990b0
regenerate files
2020-09-28 22:41:16 -07:00
Richard Belleville
1c425ba9fd
Fix CI errors
2020-09-22 13:46:08 -07:00
Richard Belleville
a80a3b72bb
Do not import grpc_tools.protoc from grpc_tools
2020-09-22 12:35:52 -07:00
Yash Tibrewal
11abbd3828
Add parsing logic for GoogleMeshCaConfig
2020-09-17 09:33:10 -07:00
Donna Dionne
ffb560090a
Moving XDS Routing functionalities from LB policy into XdsConfigSelector
2020-09-11 15:44:10 -07:00
Lidi Zheng
ac5cca327a
Merge pull request #23453 from implr/addcythoninit
...
Add __init__.py to cygrpc pyx_library to support --incompatible_default_to_explicit_init_py
2020-09-09 14:12:10 -07:00
Yash Tibrewal
24ba65d6a1
Merge pull request #24080 from yashykt/caregimpl
...
Add certificate provider registry implementation
2020-09-09 14:05:38 -07:00
Yash Tibrewal
cdda406115
Add certificate provider registry implementation
2020-09-08 14:50:37 -07:00
ZhenLian
1a275d7eab
Add tls_certificate_distributor implementation
2020-09-08 10:20:21 -07:00
Mark D. Roth
998bde891f
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-09-02 15:50:33 -07:00
Mark D. Roth
25518e5b08
Merge pull request #24030 from yashykt/xdsremoveunsecure
...
Remove xDS support from unsecure builds
2020-09-02 15:07:45 -07:00
Mark D. Roth
6514396713
update build files
2020-09-02 08:38:31 -07:00
Lidi Zheng
0eae18f9e6
Disable the exit tests until they are deflaked
2020-09-01 17:42:51 -07:00
Mark D. Roth
3fcb32b757
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-09-01 15:41:07 -07:00
Yash Tibrewal
025d9d8e8a
Remove xDS support from unsecure builds
2020-09-01 15:04:49 -07:00
Mark D. Roth
30e4170dc3
Update version of master to 1.33-dev ("geeky").
2020-08-28 09:20:30 -07:00
Lidi Zheng
1dbc68c4ae
Disable two in flight stream stream cases due to known flake
2020-08-25 15:13:44 -07:00
Lidi Zheng
cd1b211321
Improve the exit test to yield better logs
2020-08-25 12:08:09 -07:00
Richard Belleville
4a2d4a0b64
Merge pull request #23949 from gnossen/grpcio_tools_import
...
Tolerate old versions of grpcio-tools
2020-08-24 10:22:32 -07:00
Richard Belleville
36be9bbf6e
Yapf
2020-08-21 17:25:25 -07:00
Richard Belleville
3ce329ffda
Clean up error messages
2020-08-21 17:04:15 -07:00
Richard Belleville
d481046de6
Tolerate old versions of grpcio-tools
2020-08-21 16:57:31 -07:00
Lidi Zheng
d713e9f202
Prevent call objects from outliving its parent channel or server
2020-08-21 15:04:16 -07:00
Richard Belleville
0bd773c152
Merge pull request #23892 from gnossen/python_interop_client_additions
...
Python xDS interop client traffic splitting / path matching additions
2020-08-20 10:25:29 -07:00
Richard Belleville
03b50b704d
Save two lines
2020-08-19 23:38:28 +00:00
Richard Belleville
324ade3638
Pull out parsing functions
2020-08-19 23:24:19 +00:00
Richard Belleville
efd0521731
Format
2020-08-19 20:50:41 +00:00
Richard Belleville
a4979ad65b
Keep track of method of each RPC
2020-08-19 20:44:17 +00:00
Ashitha Santhosh
fcce56df4e
Merge pull request #23887 from ashithasantosh/create_activation
...
Add activation logic and endpoint getters.
2020-08-19 10:43:39 -07:00
Richard Belleville
b0ab7197a6
Add --metadata flag
2020-08-19 17:39:03 +00:00
Richard Belleville
86525d703c
Add --rpc flag
2020-08-19 05:19:09 +00:00
ashithasantosh
5820e833fc
Add activation logic and endpoint getters.
2020-08-18 19:12:22 -07:00
Richard Belleville
057b34a4d0
Pull out function for running single method
2020-08-19 00:20:43 +00:00
Richard Belleville
6e3cc78375
Abstract out the method being called
2020-08-18 23:36:02 +00:00
Lidi Zheng
9ff83e8cb1
Merge pull request #23240 from lidizheng/aio-graduate
...
[Aio] Graduation from experimental folder
2020-08-18 14:31:00 -07:00
Lidi Zheng
6326422b05
Merge branch 'master' into aio-graduate
2020-08-18 12:14:51 -07:00
Mark D. Roth
bd73844208
Move parse_address library from client_channel to iomgr.
2020-08-18 11:23:06 -07:00
Richard Belleville
c79bef55ee
Merge pull request #21458 from gnossen/dynamic_stubs
...
Enable Runtime Import of .proto Files
2020-08-17 20:39:29 -07:00
Richard Belleville
7295541044
Support path changes in MacOS 3.8
2020-08-17 16:41:19 -07:00
Richard Belleville
60f8bc1b85
Fix subprocess tests on Mac Python 3.8
2020-08-17 14:34:40 -07:00
Richard Belleville
1169084a21
Unpack args a layer higher
2020-08-17 21:06:04 +00:00
Yash Tibrewal
55821f5cf8
Revert "Merge pull request #23786 from michaelywg/cel_create_activation"
...
This reverts commit fe59761648 , reversing
changes made to 1856e224c3 .
2020-08-17 14:01:53 -07:00
Lidi Zheng
cd336404e9
Merge pull request #23783 from lidizheng/aio-win-poll
...
[Aio] Add a fail-back polling mode for Windows+3.8+
2020-08-17 10:56:08 -07:00
Srini Polavarapu
9b5b5be3e2
regenerate files
2020-08-14 18:33:42 -07:00
Richard Belleville
cdb906ac8e
Expand documentation
2020-08-14 16:46:03 -07:00
Lidi Zheng
5694b798b0
Move aio module out of experimental folder
2020-08-14 15:58:50 -07:00
Lidi Zheng
9c3f878e03
Merge pull request #23843 from lidizheng/fix-non-ok-read
...
Make status_code_and_message interop test robust
2020-08-14 14:30:46 -07:00
Lidi Zheng
0955c14608
Make status_code_and_message interop test robust
2020-08-14 13:40:32 -07:00
Lidi Zheng
4ed38373ae
Remove event loop policy check
2020-08-14 11:24:23 -07:00
Michael Wang
b8771966f1
Added tests for eval_args address/port getters. Implemented said getters and CreateActivation.
...
Added logging for unsupported attributes
fixed make issues by moving grpc_authorization_engine under grpc
changed inet_aton to inet_pton
fixed issue leftover from initial implementation of evalargs
2020-08-14 04:30:42 +00:00
Mark D. Roth
478ea19b65
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-08-13 08:21:43 -07:00
Lidi Zheng
a5dc598a42
Handle another corner case on Windows
2020-08-11 16:07:57 -07:00
Richard Belleville
d6a9ba9d54
Restrict to 3.5.0
2020-08-11 15:19:16 -07:00
Lidi Zheng
03813bf6fc
Make the fail back mode triggering more robust
2020-08-11 13:56:40 -07:00
Richard Belleville
d0e8342dcd
Document as experimental
2020-08-11 11:53:11 -07:00
Richard Belleville
0b543de30a
Last pylint error
2020-08-10 17:46:55 -07:00
Richard Belleville
51b0a3bb96
Why Windows? Why?
2020-08-10 17:42:00 -07:00
Richard Belleville
b50110b583
Fix Windows
2020-08-10 14:49:48 -07:00
Lidi Zheng
c0632acaff
Add a fail-back polling mode for Windows+3.8+
2020-08-10 13:54:47 -07:00
Mark D. Roth
d926e1ca47
Move XdsClient code out of client_channel tree.
2020-08-07 08:21:09 -07:00
Richard Belleville
05aaf3d939
Pylint
2020-08-06 17:43:41 -07:00
Richard Belleville
2d9e8bc736
Copyright
2020-08-06 17:24:28 -07:00
Richard Belleville
8f1e181189
Merge remote-tracking branch 'origin/master' into dynamic_stubs
2020-08-06 12:32:47 -07:00
Richard Belleville
aa044d0911
Revert grpcio_metadata
2020-08-06 12:28:43 -07:00
Richard Belleville
2c1efcd0ae
Add documentation
2020-08-06 12:25:21 -07:00
Lidi Zheng
218a2ff95f
Merge pull request #23483 from emkornfield/fg
...
Adds option of using ASM for BoringSSL in Python.
2020-08-05 14:10:40 -07:00
Michael Wang
d0311ac81a
Basic class definition and constructor Cel eval engine
...
Merge remote-tracking branch 'upstream/master' into celeval_constructor
Iterate through policies and store CEL condition
git push origin ce Merge remote-tracking branch 'upstream/master' into celeval_constructor
added class and constructor comments for CelEvaluationEngine
CelEvaluationEngine class and constructor
Added cel_evaluation_engine to build
ran clang_tidy_code.sh
updated BUILD with cel_evaluation_engine
added rbac.upb.h/cc to BUILD
Rewrote cel_evaluation_engine code with upb conventions
removed unnecessary deps for cel_evaluation_engine in BUILD
Cel_evaluation_engine uses arenas to manage condition pointers
Used upb::Arena instead of upb_arena*, added temp_arena to save memory
Added action_allow_ member variable
Added fullstops to comments
initialize action_allow_
changed variable names to be more clear
removed unnecessary headers
correctly initialize the action_allow_ variable
changed constructor to use an initializer list
ran clang_tidy and clang_format scripts
added cel_engine_test
resolved merge conflicts and rewrote cel engine constructor to use new map api
changed variables to be more clear and made them const
changed syntax.upb.h so the build succeeds
changed syntax.upb.h so the build succeeds
changed version of upb in bazel_dpes
regenerated upb files with new upb version
added TODO regarding two-policy design
modified CelEvaluationEngine and tests to use two rbac policies
Made test messages consistent and added a case with too many policies
changed name from cel_engine to authorization_engine
fixed merge issues and updated authorization engine to v3 rbac
made constructor public and added namespace grpc_core
2020-08-04 18:23:21 +00:00
Micah Kornfield
6f6778276d
update template format
2020-08-03 15:47:34 -07:00
Micah Kornfield
8e501c86f5
Move over to using sources.json from boring.ssl.
...
- Undo a bunch of hacks in src/boringssl/gen_build_yaml.py
- Store the structued data in YAML/dependencies.py so
we don't need to recreate the filters.
- Update setup.py accordingly
2020-08-03 15:47:33 -07:00
Micah Kornfield
35c0a4cfff
Adds option of using ASM for BoringSSL in Python.
...
- Adds a new environment variable for turning on the build of ASM
for boring SSL.
- Only enables for x86_64 for now. I think this is likely the most
common target and the only machine I have readily accessible.
2020-08-03 15:47:25 -07:00
Mark D. Roth
60283a1085
Merge pull request #23582 from markdroth/grpclb_authority
...
Remove TargetAuthorityTable in favor of a per-address channel arg.
2020-07-29 15:18:13 -07:00
Lidi Zheng
70f001565b
Merge pull request #23632 from lidizheng/raise-when-bind-failed
...
Raises an exception when port binding failed
2020-07-28 16:22:30 -07:00
Lidi Zheng
d13c5834af
Abstract the validation into a common function
2020-07-28 13:54:57 -07:00
Esun Kim
3ac116f1cb
Enabled GPR_ABSEIL_SYNC
2020-07-27 20:00:26 -07:00
Lidi Zheng
655319e286
Ban this test with gevent + Windows
2020-07-27 15:11:39 -07:00
Lidi Zheng
df440a5a66
It seems the port binding won't fail if a port is occupied by native socket
2020-07-27 14:01:25 -07:00
Lidi Zheng
b9b33c06eb
Make sure the SO_REUSEPORT is off
2020-07-27 11:33:24 -07:00
Lidi Zheng
217dade003
Raises an exception when port binding failed
2020-07-27 11:16:43 -07:00
Mark D. Roth
f88449c205
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-07-27 09:55:48 -07:00
Mark D. Roth
181781387d
xDS v3 support
2020-07-23 10:20:55 -07:00
Mark D. Roth
c35a37d6c2
Remove TargetAuthorityTable in favor of a per-address channel arg.
2020-07-23 08:23:05 -07:00
Jan Tattermusch
aa0193db42
Merge pull request #23576 from jtattermusch/bump_master_1_32
...
update master version to 1.32.0-dev
2020-07-23 07:48:24 +02:00
Yash Tibrewal
2c5291ff71
Plumb absl::Status through connectivity state notifiers
2020-07-22 15:56:24 -07:00
Richard Belleville
089d90933a
Merge pull request #23203 from gnossen/python_google_default_creds
...
Implement compute_engine_channel_credentials in Python
2020-07-22 13:14:54 -07:00
Jan Tattermusch
80daba44d9
regenerate projects
2020-07-22 17:38:48 +02:00
Mark D. Roth
c66d826298
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-07-21 11:31:28 -07:00
Lidi Zheng
666787d841
Metadata value has to be string or bytes
2020-07-21 11:16:56 -07:00
Lidi Zheng
ffc6bce8ca
Only >=3.7 allows annotate oneself as return type
2020-07-21 11:06:53 -07:00
Lidi Zheng
6e96a47dd6
Make pytype happy
2020-07-21 10:58:42 -07:00
Lidi Zheng
b5f107d470
Support tuple and aio.Metadata interaction
2020-07-21 10:58:23 -07:00
Lidi Zheng
9a54627c0b
Include re2 in source wheel && solve the missing --all complain
2020-07-20 17:06:26 -07:00
Richard Belleville
f7d16b20a4
Fix docstring
2020-07-20 19:28:18 +00:00
Mark D. Roth
a24306fa0c
Merge remote-tracking branch 'upstream/master' into xds_logging
2020-07-20 10:36:43 -07:00
Richard Belleville
9448150eec
Remove option to specify path
2020-07-17 16:46:38 -07:00
Karthik Ravi Shankar
d7565c37a8
Revert "Adding Fake headers for header matching."
...
This reverts commit 8c013bfcdc .
2020-07-17 16:39:05 -07:00
Mark D. Roth
5afa417c89
Revert "Merge pull request #23524 from markdroth/xds_logging_revert"
...
This reverts commit b5b9172915 , reversing
changes made to 47c6c826f7 .
2020-07-17 14:48:20 -07:00
Mark D. Roth
a0f08b1b06
Revert "Merge pull request #21941 from markdroth/xds_logging"
...
This reverts commit 37d5d93983 , reversing
changes made to 0e8190a3c9 .
2020-07-17 10:19:28 -07:00
Donna Dionne
8c013bfcdc
Adding Fake headers for header matching.
2020-07-15 13:14:19 -07:00
Richard Belleville
999bbf1401
Format
2020-07-15 13:09:53 -07:00
Richard Belleville
fd0d0f77df
Fix Bazel warning
2020-07-15 13:03:16 -07:00
Richard Belleville
e16e11cdcf
Fix six dependency
2020-07-15 11:55:37 -07:00
Richard Belleville
892cfd883e
Support asyncio interop client
2020-07-13 23:25:29 +00:00
Richard Belleville
36465e06f1
Merge remote-tracking branch 'origin/master' into python_google_default_creds
2020-07-13 19:32:59 +00:00
Richard Belleville
7e3f3d61a2
Format
2020-07-13 19:09:33 +00:00
Lidi Zheng
ddbf4b6f9f
Further reduce the spam log by doing nothing if GC has error
2020-07-13 11:18:46 -07:00
Bartosz Stebel
3b45262f03
Add __init__.py to cygrpc pyx_library
2020-07-12 22:56:56 +02:00
Richard Belleville
df0978ceb0
Clean up build file
2020-07-10 15:18:46 -07:00
Richard Belleville
1b2e7fa318
Merge remote-tracking branch 'origin/master' into dynamic_stubs
2020-07-10 14:07:01 -07:00
Richard Belleville
23b9007198
Simplify raise statement
2020-07-10 13:54:48 -07:00
Richard Belleville
56ed8f3be4
Merge remote-tracking branch 'origin/master' into python_google_default_creds
2020-07-10 01:09:58 +00:00
Richard Belleville
e9a90ab30a
Clean up
2020-07-10 00:44:59 +00:00
Lidi Zheng
8f3bd10c03
Make sure >3 Python version triggers a failure
2020-07-09 15:34:06 -07:00
Lidi Zheng
27033c4f8d
Update the hint for install Python header to depend on version
2020-07-09 15:17:37 -07:00
Richard Belleville
b96edd3072
Stop trying to handle SIGSEGV
2020-07-08 10:52:32 -07:00
donnadionne
be92b122b6
Merge pull request #22987 from donnadionne/new
...
Add support for xDS regex matchers.
2020-07-07 15:32:25 -07:00
Lidi Zheng
e1b4a5507c
Merge pull request #23351 from lidizheng/silence-del
...
Suppress exceptions from the __del__ of channel object
2020-07-07 13:56:37 -07:00
Donna Dionne
8dd0cb4712
Add support for xDS regex matchers.
2020-07-07 13:17:25 -07:00
Lidi Zheng
e7f42f1ff9
Add type annotation in comments
2020-07-07 10:45:11 -07:00
Lidi Zheng
b61fe7ab33
Address comments
2020-07-07 10:17:38 -07:00
Lidi Zheng
e58e24afb9
Allows poller to bound to ephemeral loops in multiple threads
2020-07-07 10:17:38 -07:00
Richard Belleville
23dacfc0b4
Add Python wrapper
2020-07-07 01:10:12 +00:00
Richard Belleville
c8a8a6aea4
Get new core API design building
2020-07-07 00:18:42 +00:00
Richard Belleville
ebe49df659
Don't clutter __init__.py quite as much
2020-07-03 10:14:02 -05:00
matthewstevenson88
c1e07d8308
Merge pull request #23165 from matthewstevenson88/matt-tls13
...
Enable TLS 1.3 in the C-core and all wrapped languages.
2020-07-01 07:56:18 -07:00
Lidi Zheng
de075024a7
Suppress exceptions from the __del__ of channel object
2020-06-29 14:54:31 -07:00
Miguel Ángel
d2b917030f
Fix typo
2020-06-28 17:17:47 +02:00
Richard Belleville
3dcc929adf
Remove resolved TODO
2020-06-26 12:16:22 -07:00
Richard Belleville
d4e8d9956c
Run tests under setup.py
2020-06-26 12:11:31 -07:00
Richard Belleville
2f789e38ed
Merge pull request #23243 from gnossen/setup_py_improvements
...
Incrementally Improve setup.py
2020-06-26 11:13:48 -07:00
Richard Belleville
8459b49dd5
Buildifier
2020-06-26 17:55:51 +00:00
Yash Tibrewal
a438ef58f1
Merge pull request #23293 from yashykt/retrychecksize
...
Add message-size check before message decompression with ordering change
2020-06-26 10:43:52 -07:00
Richard Belleville
2b09327a6f
Yapf :(
2020-06-26 02:25:38 +00:00
Richard Belleville
4de06d0e22
Regenerate projects
2020-06-26 02:18:16 +00:00
Richard Belleville
4fefc6235f
Let the wrapped language create the composite credential
2020-06-25 23:39:27 +00:00
Richard Belleville
3bdc5bb4d1
Change name to compute_engine_channel_credentials
2020-06-25 21:36:36 +00:00
Richard Belleville
330eaea53d
Initial implementation of gce_channel_creds
2020-06-25 06:00:39 +00:00
Richard Belleville
1aae547e2c
Regenerate projects
2020-06-25 04:48:28 +00:00
Matthew Stevenson
6822dd1d1e
Merge remote-tracking branch 'upstream/master' into matt-tls13
2020-06-24 13:29:45 -07:00
Mark D. Roth
37d5d93983
Merge pull request #21941 from markdroth/xds_logging
...
Use upb textformat library to dump out raw xDS proto messages
2020-06-24 11:59:37 -07:00
Mark D. Roth
c1d7180daa
Use upb textformat library to dump out raw xDS proto messages
2020-06-24 10:10:03 -07:00
Lidi Zheng
b9088ee9dd
Address comments
2020-06-23 15:56:25 -07:00
Lidi Zheng
14d499a50f
Make PyLint happy
2020-06-23 13:01:01 -07:00
Lidi Zheng
286a80dad5
Resolve the compatibility issue that get_runnint_loop is 3.7+
2020-06-23 12:45:21 -07:00
Yash Tibrewal
e98eaa5052
Revert "Revert "Add message-size check before message decompression""
2020-06-23 12:19:07 -07:00
Lidi Zheng
6717ecb3cb
Suppress the server dealloc warning
2020-06-23 12:12:51 -07:00
Lidi Zheng
019921f57a
Add the new test to tests.json
2020-06-23 12:11:57 -07:00
Lidi Zheng
8bcffaa5ca
Hide init_grpc_aio and guard async API outside of AsyncIO context
2020-06-23 12:10:18 -07:00
Lidi Zheng
b2c420fa44
Merge pull request #23265 from lidizheng/aio-context-info
...
[Aio] Implement methods to access auth context and peer info
2020-06-23 10:40:33 -07:00
Vijay Pai
c7f2956b67
Revert "Add message-size check before message decompression"
2020-06-22 16:18:36 -07:00
Lidi Zheng
ae49a85038
Fix the typo
2020-06-22 13:47:30 -07:00
Lidi Zheng
b96381694c
Sort tests.json alphabetically
2020-06-22 12:57:09 -07:00
Mark D. Roth
4d541fc30a
Merge pull request #23051 from markdroth/xds_config_selector2
...
Add ConfigSelector API.
2020-06-22 12:30:21 -07:00
Lidi Zheng
11a29eb95a
Implement methods to access auth context and peer info
2020-06-22 12:14:39 -07:00
Yash Tibrewal
d48d39c432
Merge pull request #23177 from yashykt/checksizebeforedecompress
...
Add message-size check before message decompression
2020-06-19 17:47:48 -07:00
Richard Belleville
4fcf9d01d2
Address review comments
2020-06-19 15:31:55 -07:00
Yash Tibrewal
0497ad8bb0
Add missing message-size check before decompressing
...
Add and fix tests for limit check before decompression
Code restructuring to allow easy reuse of service config call data
Regenerate projects
Reviewer comments
2020-06-19 14:49:18 -07:00
Mark D. Roth
133918ec70
Add ConfigSelector API.
2020-06-18 12:57:43 -07:00
Matthew Stevenson
df6f8c0729
Merge remote-tracking branch 'upstream/master' into matt-tls13
2020-06-18 11:37:03 -07:00
Richard Belleville
af222241a7
Give up on getting compiler executable from distutils
2020-06-18 10:40:31 -07:00
Richard Belleville
edcf210050
Use proper compiler
2020-06-17 22:00:54 -07:00
Richard Belleville
08e117ae80
Improve build slightly
2020-06-17 16:12:59 -07:00
Richard Belleville
1f53f13446
Merge remote-tracking branch 'origin/master' into dynamic_stubs
2020-06-17 14:47:07 -07:00
Richard Belleville
71567b6096
Allow the user to specify grpclb config
2020-06-17 19:49:16 +00:00
Richard Belleville
06eb0ac7bd
Fix up aio interop client
2020-06-17 18:39:34 +00:00
Lidi Zheng
43a574d1ae
Trust google-auth library will handle their dependency properly
2020-06-15 13:32:28 -07:00
Richard Belleville
b821ff99a8
Initial working implementation
2020-06-13 00:11:43 +00:00
Lidi Zheng
72f2b99097
Guard _ChannelCallState.__del__ from cygrpc being deallocated early
2020-06-12 13:25:40 -07:00
Lidi Zheng
c47bc1a709
Merge pull request #23045 from Skyscanner/issue-21953_use-metadata-type
...
[Aio] Use Metadata type
2020-06-12 12:45:25 -07:00
Lidi Zheng
9a3ae47658
Pump up the minimum version of google-auth to 1.17.1
2020-06-12 10:48:47 -07:00
Matthew Stevenson
039e009faa
Fix memory leak, per Yang's comment.
2020-06-11 19:21:51 -07:00
Lidi Zheng
8cd6ee6297
Merge pull request #23176 from lidizheng/fix-del
...
Avoid attribute error in __del__ of _ChannelCallState
2020-06-11 13:38:54 -07:00
Matthew Stevenson
432823cbf6
Add check that unused bytes size is at most received bytes size.
2020-06-11 11:54:28 -07:00
Matthew Stevenson
264592275b
Revert "Check unused bytes size is smaller than received bytes size, and fix Python format in _server_ssl_cert_config_test.py"
...
This reverts commit 7d0ae9cf2e .
2020-06-11 11:30:22 -07:00
Matthew Stevenson
7d0ae9cf2e
Check unused bytes size is smaller than received bytes size, and fix Python format in _server_ssl_cert_config_test.py
2020-06-11 11:29:24 -07:00
Mariano Anaya
376c0f0767
Add missing metadata TypeError case
...
Code formatted.
2020-06-11 09:32:55 +02:00
Richard Belleville
c483ece5dd
Merge pull request #23163 from gnossen/wait_for_ready_default
...
Default wait_for_ready to True in simple stubs
2020-06-10 16:37:26 -07:00
Richard Belleville
4b497f7156
Compensate for low test default timeout
2020-06-10 13:08:35 -07:00
Richard Belleville
93477ae55f
That line changed count seemed a bit big
2020-06-10 12:06:09 -07:00
Richard Belleville
5811df0fd0
Yapf
2020-06-10 12:00:18 -07:00
Richard Belleville
357c78c822
Simplify implementation
2020-06-10 11:54:26 -07:00
Richard Belleville
6344b2b97f
Support infinite timeouts
2020-06-10 11:48:22 -07:00
Lidi Zheng
7294172c8f
Avoid attribute error in __del__ from _ChannelCallState
2020-06-10 09:40:16 -07:00
Richard Belleville
80e834abab
Merge pull request #23107 from gnossen/contextvars_propagation
...
Propagate contextvars to auxiliary threads
2020-06-09 16:04:35 -07:00
Richard Belleville
00d20bb70a
Use self.fail
2020-06-09 10:56:34 -07:00
Matthew Stevenson
a575049c03
Changes needed to enable TLS 1.3.
2020-06-08 18:56:15 -07:00
Richard Belleville
25cdba8a70
Yapf
2020-06-08 12:50:33 -07:00
Richard Belleville
50cab884e1
Default wait_for_ready to True
2020-06-08 12:44:37 -07:00
Richard Belleville
e329de88e7
Add failing test
2020-06-08 12:22:59 -07:00
Mariano Anaya
18e0f9f533
Remove metadata as optional from AioRpcError
2020-06-08 17:02:32 +02:00
Mariano Anaya
36f79adaf9
Remove references to the old MetadataType
2020-06-08 16:52:31 +02:00
Richard Belleville
27e1ccc92d
Merge pull request #23153 from gnossen/simple_trust_store
...
Simplify channel credentials in simple stubs
2020-06-05 16:26:00 -07:00
Richard Belleville
bacbf3b85f
Fix argument order
2020-06-05 14:43:45 -07:00
Srini Polavarapu
057091fe1f
Regenerate projects
2020-06-05 13:54:32 -07:00
Richard Belleville
8c96f976da
Yapfity yapf. Don't yapf back
2020-06-05 13:08:16 -07:00
Richard Belleville
a0e23e2123
Review comments
2020-06-05 12:30:09 -07:00
Richard Belleville
2226f8ab12
Add plugin test for insecure option
2020-06-05 12:12:36 -07:00
Richard Belleville
e3ae621f64
Add insecure option
2020-06-05 11:33:36 -07:00
Richard Belleville
9f380bc16c
Make SSL the default for simple stubs
2020-06-05 11:03:40 -07:00
Richard Belleville
420584462f
:chairflip:
2020-06-04 15:15:05 -07:00
Richard Belleville
dda5d219bd
WIP
2020-06-04 15:08:48 -07:00
Richard Belleville
bd7291b020
:tableflip:
2020-06-04 13:56:34 -07:00
Richard Belleville
773611c1d1
Plz Windoze
2020-06-04 12:35:34 -07:00
Richard Belleville
9fac7a1ad4
Work around Windows bug
2020-06-04 10:38:09 -07:00
Richard Belleville
65ef92861d
Re-add wait_for_ready
2020-06-03 16:41:44 -07:00
Richard Belleville
a64dac7b93
Yapf
2020-06-03 15:30:10 -07:00
Richard Belleville
fb54a30483
Ban gevent tests
2020-06-03 15:19:37 -07:00
Richard Belleville
9e5a91b3b9
A rare moment where I wish I had a Windows machine
2020-06-02 12:04:11 -07:00
Richard Belleville
bc157d5eb5
Support Windows
2020-06-02 11:46:11 -07:00
Richard Belleville
2ed3d6bb5e
Add to tests.json
2020-06-02 11:20:14 -07:00
Richard Belleville
f4d4200127
Underscore
2020-06-02 10:39:40 -07:00
Mariano Anaya
6e83eb79f4
Apply formatting & fix typing
2020-06-02 12:38:46 +02:00
Mariano Anaya
7b3430ef3e
Restore test that passes metadata in a list
...
The old interface of accepting the metadata as a list, should be kept
due to a backwards incompatibility with a client.
The new ``aio.Metadata()`` type supports iteration, so creating a list
from it, is possible.
2020-06-02 11:53:22 +02:00
Mariano Anaya
a6bf093af8
Use metadata types in the service context
...
Replace the signature to allow methods to use the metadata object.
Internally, they'll still wrap the data in a tuple, but the interface
makes it clear that the ``aio.Metadata()`` object is supported.
Remove the ``tuple(<metadata>)`` conversions done in the tests.
2020-06-02 11:49:57 +02:00
Mariano Anaya
5a5a578446
Fix new metadata tests
...
Using the new aio.Metadata() type instead of tuple.
2020-06-02 11:44:14 +02:00
Mariano Anaya
8fcc77a310
[issue-21953] Improvements from review
...
* Replace ``MetadataType`` by ``Metadata`` in all places
* Fix annotations
* Use the new ``Metadata.from_tuple`` to create Metadata objects
2020-06-02 09:31:54 +02:00
Mariano Anaya
e9dadf46bf
[issue-24953] Fix tests, format, & types
...
Fixes https://github.com/grpc/grpc/issues/21953
2020-06-02 09:31:53 +02:00
Mariano Anaya
e04fcd2998
[issue-21953] Use the Metadata type
...
In all places where a tuple was used for metadata (in the aio version),
replace it by the new ``Metadata`` class.
2020-06-02 09:30:55 +02:00
Pau Freixes
7d4ce583f9
Merge pull request #23092 from grpc/client_interceptor_bi_streaming
...
Add Aio stream stream client interceptor support
2020-06-02 01:06:12 +02:00
Richard Belleville
c843c18801
Actually change the implementation
2020-06-01 15:28:25 -07:00
Richard Belleville
2d4b6e894b
Interoperate with contextvars backports
2020-06-01 15:24:06 -07:00
Pau Freixes
b4afe041f1
Fixed weird annotation issues with pytype
2020-06-01 23:19:30 +02:00
Pau Freixes
c8b7f22474
Apply feedback review
2020-06-01 21:53:14 +02:00
Richard Belleville
3ade93b447
Add TODOs
2020-06-01 12:19:06 -07:00
Richard Belleville
8487ce7faf
Propagate on posix
2020-06-01 12:05:15 -07:00
Richard Belleville
bccbda7f28
Add failing test
2020-06-01 11:34:35 -07:00
Pau Freixes
f9d9793c96
Apply review feedback
2020-05-30 22:34:45 +02:00
Pau Freixes
b3425f6dbf
Add stream stream client interceptor support
...
This was the last missing arity which did not have support yet for
the interceptors in the client side for the Aio package. This commit
adds specific support for this interceptro which allows the deveveloper
to intercept the request iterator and the response iterator.
2020-05-29 21:32:24 +02:00
Mark D. Roth
3bb427195e
Revert "Merge pull request #23053 from grpc/revert-22772-gpr_strvec"
...
This reverts commit 4b7452bcdb , reversing
changes made to 133d0076b4 .
2020-05-28 11:13:12 -07:00
Mark D. Roth
afe7c74d6d
Merge pull request #23013 from markdroth/xds_config_selector
...
Refactor ServiceConfig code to pave the way for adding a ConfigSelector API
2020-05-28 09:52:32 -07:00
Mark D. Roth
aed6574023
Refactor ServiceConfig code to move parsing to its own API.
2020-05-28 07:15:28 -07:00
Lidi Zheng
a275cb1eaa
Supply sock options but still close the socket
2020-05-27 10:36:45 -07:00
Karthik Ravi Shankar
f46c07f3f8
Revert "Remove gpr_strvec."
2020-05-26 17:25:45 -07:00
Mark D. Roth
3db250de10
Merge pull request #22772 from markdroth/gpr_strvec
...
Remove gpr_strvec.
2020-05-21 13:18:40 -07:00
Mark D. Roth
c2ef110303
Replace gpr_strvec with absl::StrJoin().
2020-05-21 08:47:41 -07:00
Srini Polavarapu
02f099875c
Merge pull request #23012 from srini100/update_boringssl
...
Update boringssl
2020-05-20 21:02:31 -07:00
Lidi Zheng
ea7116d3b7
Try another approach to stablize the test
2020-05-20 15:56:24 -07:00
Srini Polavarapu
ce52c1dd71
update boringssl
2020-05-20 14:57:25 -07:00
Lidi Zheng
70f9dc5441
Close the socket before constructing the channel
2020-05-20 10:21:37 -07:00
Lidi Zheng
60eea82fbf
Merge pull request #22604 from dhalperi/patch-1
...
gRPC docs: remove mention of Python 2.7
2020-05-15 10:37:43 -07:00
Lidi Zheng
567325d293
Merge pull request #22667 from lidizheng/aio-channelz
...
[Aio] Add AsyncIO support for Channelz
2020-05-14 17:32:59 -07:00
Lidi Zheng
698a5a8869
Merge pull request #22770 from grpc/revert-22759-revert-22688-aio-status
...
Revert "Revert "[Aio] Add AsyncIO support to grpcio-status""
2020-05-14 14:09:01 -07:00
Lidi Zheng
b2b939d747
Make pytype happy
2020-05-12 14:45:34 -07:00
Lidi Zheng
f0f99b1b05
Clean up test logic
2020-05-12 14:00:20 -07:00
Lidi Zheng
7eeab2a23c
Describe the expectations of input arguments and return values
2020-05-12 12:52:27 -07:00
Lidi Zheng
ef6ff6dcfd
Make linters happy
2020-05-12 10:43:12 -07:00
Lidi Zheng
028a7c4e79
Add test cases for server interceptors
2020-05-11 13:59:44 -07:00
Lidi Zheng
5ba3ee13b4
Merge pull request #22920 from lidizheng/stop-leak
...
Add module docstring for the leak test
2020-05-11 10:57:05 -07:00
Lidi Zheng
205ad35413
Add module docstring for the leak test
2020-05-11 10:10:55 -07:00
Lidi Zheng
f7591a3426
Merge pull request #22855 from lidizheng/stop-leak
...
Stop memory leak when Python channel is deallocated without invoking "close"
2020-05-08 16:19:47 -07:00
Lidi Zheng
e844f30101
Close Core's channel when there is no reference to the channel
2020-05-08 13:43:10 -07:00
Mark D. Roth
c769951764
Remove deprecated variant of JoinHostPort().
2020-05-08 09:13:26 -07:00
Mark D. Roth
7b3590d543
Merge pull request #22854 from markdroth/xds_lrs_send_all_clusters
...
xds: Add support for send_all_clusters field in LRS.
2020-05-06 09:33:41 -07:00
Lidi Zheng
9993d2b9a4
Merge pull request #22860 from lidizheng/fix-metadata-flags-test-flake
...
Fix the metadata flags test flake
2020-05-05 15:34:30 -07:00
Lidi Zheng
9c537f91f4
Make pytype happy
2020-05-05 15:11:16 -07:00
Lidi Zheng
76b79d0ef6
Refactor the test case
2020-05-05 14:36:53 -07:00
Lidi Zheng
a8c268500d
Revert "Further simplifify the test"
...
This reverts commit aaa0f328c9 .
2020-05-05 13:29:47 -07:00
Lidi Zheng
da428e9020
Pull out _LARGE_UNASSIGNED_ID
2020-05-05 13:28:59 -07:00
Lidi Zheng
e2a41a1001
Restore for 2.7
2020-05-05 09:54:23 -07:00
Lidi Zheng
4484918d34
Close the socket to ensure falling into transient failure state
2020-05-04 17:13:51 -07:00
yihuaz
4efeb8f1fd
Merge pull request #22638 from tgalkovskyi/master
...
Expose ALTS client/server credentials in Python API
2020-05-04 12:57:50 -07:00
Pau Freixes
b6f4feb64c
Merge pull request #22821 from Skyscanner/stream_unary_client_interceptor
...
[Aio] Stream Unary client interceptor
2020-05-04 21:15:02 +02:00
Mark D. Roth
b95843c1b7
xds: Add support for send_all_clusters field in LRS.
2020-05-04 11:16:52 -07:00
Lidi Zheng
aaa0f328c9
Further simplifify the test
2020-05-04 11:03:08 -07:00
Lidi Zheng
5d8a5ef8c7
Add AsyncIO support for grpcio-channelz
2020-05-04 11:01:08 -07:00
Lidi Zheng
f6e6b9f640
Fix the pylint complain
2020-04-30 15:16:32 -07:00
Lidi Zheng
ae73ab5190
Merge pull request #22812 from lidizheng/aio-mixed-server
...
[Aio] Make sync handlers runnable in AsyncIO server
2020-04-30 15:03:30 -07:00
Pau Freixes
39d8fa3f0b
Apply feedback review
2020-04-30 22:40:53 +02:00
Taras Galkovskyi
f375c0b548
minor stylistic fixes
2020-04-30 18:58:44 +00:00
Nicolas "Pixel" Noble
791729d09f
Bumping version.
2020-04-30 08:12:29 +02:00
Lidi Zheng
fb60bf235e
Synchonize the production and consumption of request messages
2020-04-29 16:11:55 -07:00
Taras Galkovskyi
469631f549
run yapf; delete alts unit tests
2020-04-29 22:50:35 +00:00
Lidi Zheng
8be1251e2c
Remove read/write API && simplify the logic of getting the pool
2020-04-29 15:37:15 -07:00
Lidi Zheng
d40c1b8408
Fix the error on mac and win && make pytype happy
2020-04-29 15:24:19 -07:00
Lidi Zheng
df065d41fa
Make sync handlers runnable in AsyncIO server
2020-04-29 15:24:19 -07:00
Pau Freixes
7b869e8442
Use message constant
2020-04-29 23:12:02 +02:00
Pau Freixes
b9558026b1
Improve message redability
2020-04-29 23:10:32 +02:00
Pau Freixes
32acd9d5fd
[Aio] Stream Unary client interceptor
...
Add support for Stream Unary client interceptor
2020-04-29 22:55:50 +02:00
Taras Galkovskyi
486e27e2de
fix formatting issues
2020-04-29 19:43:45 +00:00
Lidi Zheng
3a6d73f808
Revert "Remove circular dependency"
...
This reverts commit dc2b02aad15c66c52e07abe5fdc85be92e13b867.
2020-04-29 11:43:06 -07:00
Lidi Zheng
ca6e62998c
Remove circular dependency
2020-04-29 11:43:06 -07:00
Lidi Zheng
025ebf7d07
Revert "Revert "[Aio] Add AsyncIO support to grpcio-status""
2020-04-29 11:43:03 -07:00
Taras Galkovskyi
4413d412e2
fix referencing variable out of scope that broke tests
2020-04-29 18:26:20 +00:00
Taras Galkovskyi
2cf920ba0b
Merge branch 'master' of git://github.com/grpc/grpc
2020-04-29 14:37:35 +00:00
Lidi Zheng
ac48ab4771
Merge pull request #22739 from lidizheng/roll-forward-grpcio-reflection
...
Revert "Revert "[Aio] Add AsyncIO support to grpcio-reflection""
2020-04-27 14:25:30 -07:00
Mark D. Roth
d74548e611
Remove StringViewToCString() and src/core/lib/gprpp/string_view.h
2020-04-27 12:28:28 -07:00
Lidi Zheng
cf6c640339
Merge branch 'master' into roll-forward-grpcio-reflection
2020-04-24 10:27:24 -07:00
Lidi Zheng
da5022de6a
Merge pull request #22745 from lidizheng/doc-channel-args
...
Explain how to find channel arguments in our doc
2020-04-23 16:18:59 -07:00
Lidi Zheng
f8f425bcc9
Merge pull request #22758 from lidizheng/aio-cq-shutdown
...
[Aio] Make completion queue shutdown stricter
2020-04-23 16:02:27 -07:00
Lidi Zheng
77811ef323
Make completion queue shutdown stricter
2020-04-23 13:51:22 -07:00
Lidi Zheng
82c586bb3c
Revert "[Aio] Add AsyncIO support to grpcio-status"
2020-04-23 13:06:11 -07:00
Lidi Zheng
d3805e1b6c
Explain how to find channel arguments in our doc
2020-04-22 16:19:42 -07:00
Lidi Zheng
372d990f4a
Merge pull request #22738 from lidizheng/doc-wtr
...
Document wait_for_ready mechanism in Python's glossary
2020-04-22 16:03:37 -07:00
Lidi Zheng
02ec5f9126
Merge branch 'master' into roll-forward-grpcio-reflection
2020-04-22 13:48:24 -07:00
Lidi Zheng
4e7f3376d8
Merge pull request #22688 from lidizheng/aio-status
...
[Aio] Add AsyncIO support to grpcio-status
2020-04-22 13:47:45 -07:00
Lidi Zheng
c1df38f2b9
Document wait_for_ready mechanism in Python's glossary
2020-04-22 13:38:22 -07:00
Pau Freixes
11e41537a5
Merge pull request #22713 from Skyscanner/client_unary_stream_interceptor
...
[Aio] Implement the Unary Stream client interceptor
2020-04-21 22:25:22 +02:00
Pau Freixes
6d4f3ce244
Fix pytype issue raised only with Python 3.7
2020-04-21 20:54:34 +02:00
Pau Freixes
6000747f83
Fix some werid pytype complaning
2020-04-21 20:46:53 +02:00
Pau Freixes
20898aa2f2
Fix type issue
2020-04-21 16:45:33 +02:00
Pau Freixes
7dbed97594
Fix add done callback test
2020-04-21 11:49:17 +02:00
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
314e105f70
Apply review feedback
2020-04-20 23:39:53 +02: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
Lidi Zheng
3ecfe27448
Remove the unused import so copybara don't panic
2020-04-20 12:45:07 -07:00
Lidi Zheng
0ff25bb1b3
Revert "Revert "[Aio] Add AsyncIO support to grpcio-reflection""
2020-04-20 12:38:21 -07:00
Lidi Zheng
ec0daeb9ad
Merge branch 'aio-status' of github.com:lidizheng/grpc into aio-status
2020-04-20 11:26:28 -07:00
Lidi Zheng
7f693a07bb
Make pylint happy
2020-04-20 11:16:51 -07: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
Lidi Zheng
1c728b3aea
Reduce maintenance burden
2020-04-17 13:12:08 -07:00
donnadionne
baa442e6e4
Merge pull request #22280 from donnadionne/route_response
...
Xds Routing LB Policy
2020-04-17 12:45:39 -07:00
Muxi Yan
5e2c40ab58
Merge pull request #22690 from grpc/revert-22662-aio-reflection
...
Revert "[Aio] Add AsyncIO support to grpcio-reflection"
2020-04-16 16:20:22 -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
99c5b647bf
Revert "[Aio] Add AsyncIO support to grpcio-reflection"
2020-04-16 15:09:53 -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
b6a7d5505c
Merge pull request #22662 from lidizheng/aio-reflection
...
[Aio] Add AsyncIO support to grpcio-reflection
2020-04-16 10:21:27 -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
37755c482b
Avoid docstring duplication
2020-04-15 13:39:27 -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
e819e03a83
Restore 27 compatibility
2020-04-14 16:44:20 -07:00
Lidi Zheng
3e187feca0
Fix the inaccurate cancel injection
2020-04-14 16:42:35 -07:00
Lidi Zheng
b8691f9669
Fix the import for aio gRPC
2020-04-14 16:06:52 -07:00
Lidi Zheng
faf946931d
Add the new test case to tests.json
2020-04-14 16:06:39 -07:00
Lidi Zheng
3e85a129b4
Add test case for set_code with no return value
2020-04-14 15:53:48 -07:00
Lidi Zheng
9b4070a380
Fix the None return case
2020-04-14 15:42:52 -07:00
Lidi Zheng
eb9728f25f
Add AsyncIO support to grpcio-reflection
2020-04-14 13:42:12 -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
Taras Galkovskyi
ed04792ac5
unify interop alts credentials use
2020-04-09 22:36:58 +00:00
Taras Galkovskyi
309c8e65f4
declare alts support for python interop client/server
2020-04-09 21:39:08 +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
2bbf0a79f6
Make pytype happy
2020-04-06 16:09: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
c1953880f7
Modify tests accordingly
2020-04-02 10:23:26 -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
dc1d1e165d
Add two more metadata tests
2020-04-01 13:38:39 -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
a8ad4db3af
[issue21953] Fix import in test
...
Import metadata from the canonical place.
2020-03-25 18:20:11 +01: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
bc0aabc093
Merge pull request #22453 from lidizheng/aio-default-poller
...
[Aio] Change the default IO engine to POLLER
2020-03-23 12:38:43 -07:00
Lidi Zheng
5cd773731d
Assert with public API instead of private API
2020-03-23 10:21:50 -07:00
Lidi Zheng
b73b389dd1
Change the default IO engine to poller
2020-03-23 10:21:33 -07:00
Jan Tattermusch
d439048b9c
Merge pull request #22390 from jiangtaoli2016/update_test_creds
...
Update test credentials to use 2048-bit RSA keys
2020-03-23 15:50:12 +01:00
jiangtaoli2016
951abee174
Revert "Append old ca.pem"
...
This reverts commit 13c6b6c612 .
2020-03-20 16:49:15 -07:00
jiangtaoli2016
13c6b6c612
Append old ca.pem
2020-03-20 14:48:02 -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
jiangtaoli2016
2620763fdd
Update test creds for php, python, ruby
2020-03-18 16:48:22 -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
Richard Belleville
a82f8f3dd7
Ensure unit tests don't pick up interop client
2020-03-18 17:15:09 +00:00
Lidi Zheng
46bb3769a9
Override the auth plugin behavior
2020-03-18 10:13:05 -07:00
Lidi Zheng
621a281a0c
Merge pull request #22259 from lidizheng/aio-cq-2
...
[Aio] Use socket to synchronize between Cpp and Python
2020-03-17 18:25:56 -07:00
Lidi Zheng
d6bd3c37b2
Use mutex to protect queue operations
2020-03-17 15:32:38 -07:00
Richard Belleville
7fd0c8fc1a
Clean up client
2020-03-17 20:34:25 +00: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
Richard Belleville
24e03778ea
Revert "Merge pull request #22373 from gnossen/creds_threads_and_breads"
...
This reverts commit 61a0212539 , reversing
changes made to 19d8e2c551 .
2020-03-17 12:36:22 -07:00
Richard Belleville
34e320a439
Working client
2020-03-17 19:13:10 +00: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
Richard Belleville
61a0212539
Merge pull request #22373 from gnossen/creds_threads_and_breads
...
Stop Leak of one thread per call in case of reference cycle
2020-03-17 10:21:04 -07:00
Lidi Zheng
19d8e2c551
Merge pull request #22165 from lidizheng/aio-benchmark
...
Integrate existing gRPC Python stack benchmarks with Bazel
2020-03-17 10:18:46 -07:00
Lidi Zheng
7be8cef10a
Merge pull request #22369 from lidizheng/health-default
...
[Health Checking] Make the empty service default to SERVING state
2020-03-17 00:17:31 -07:00
Richard Belleville
59b040d3c4
Stop leaking threads
2020-03-16 16:14:03 -07:00
Lidi Zheng
3779b12203
Enable skipped tests
2020-03-16 16:09:36 -07:00
Mariano Anaya
da698286e4
Fix tests.json
...
Remove tests from the old branch (conflict resolution leftover issue).
2020-03-16 16:09:36 -07:00
Mariano Anaya
963429864e
Skip failing tests due to a regression
...
Reported at https://github.com/grpc/grpc/issues/22302
2020-03-16 16:09:36 -07:00
Mariano Anaya
bd4679439c
Add 'resources' to bazel build file
2020-03-16 16:09:36 -07:00
Mariano Anaya
a8f7dfe4c5
Update exception used in test
2020-03-16 16:09:36 -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
4d492d28a7
Add test for full-duplex call
2020-03-16 16:09:36 -07:00
Mariano Anaya
8165cc2d97
Extend with more tests
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
a3459d371d
Code cleanup
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
4ec09a0a26
[WIP] test call credentials
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
d43ac68bf3
Make the empty service default to SERVING state
2020-03-16 15:48:08 -07:00
Lidi Zheng
c82f28d428
Use socket to synchronize cq and asyncio
2020-03-16 15:42:31 -07:00
Lidi Zheng
562f3ca5f5
Add port needs a FQN
2020-03-16 11:21:07 -07:00
Lidi Zheng
5d1651ff65
Don't graceful shutdown cq to avoid the deadlock
2020-03-16 11:10:07 -07:00
Richard Belleville
f26f80d532
Log TID
2020-03-14 02:33:52 +00: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
Richard Belleville
7a129dac1c
Don't let threads die over timed out RPCs
2020-03-13 20:29:08 +00:00
Lidi Zheng
7a51ca3330
Plumb through loop object & pass daemon=Ture in constructor
2020-03-13 11:59:35 -07:00
Lidi Zheng
d725a7dae8
Make buildifier happy
2020-03-13 11:47:31 -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
086297b1e9
Merge pull request #22290 from lidizheng/fix-time-remaining
...
[Aio] Fix the test_time_remaining test
2020-03-10 15:57:59 -07:00
Lidi Zheng
2c783d7905
Fix the test_time_remaining test
2020-03-10 13:46:06 -07: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
57fa6ce33c
Make pylint 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
Richard Belleville
c0b9694e4f
Fix windows
2020-03-06 16:22:51 -08: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
Zhanghui Mao
09168c534f
fix type annotation
2020-03-04 23:50:08 +08:00
Richard Belleville
db27226b3f
Don't run under gevent
2020-03-03 16:23:25 -08:00
Richard Belleville
c9d90e5c1b
Use wait_for_ready in tests
2020-03-03 15:18:04 -08:00
Richard Belleville
6b42bcc03d
Sanity tests make me lose my sanity
2020-03-03 14:30:28 -08:00
Richard Belleville
f921f01262
Format
2020-03-03 13:50:13 -08:00
Richard Belleville
b5d69d2cd1
Clean up test
2020-03-03 12:24:13 -08:00
Richard Belleville
0fe463b2d3
Don't run on Python 2
2020-03-03 11:51:29 -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
Lidi Zheng
05fa7c9255
Remove logging from qps_worker.py
2020-02-27 13:39:34 -08:00
Lidi Zheng
18a5fbeb93
Make Buildifier happy
2020-02-27 13:38:31 -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
Lidi Zheng
d657d73565
Integrate existing gRPC Python stack benchmarks with Bazel
2020-02-26 16:56:12 -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
bbcaca2d83
Add uvloop argument
2020-02-19 13:09:46 -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
Lidi Zheng
c0e1dbc445
Update method naming & use os.path.join
2020-02-18 18:04:17 -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
c22b161d4e
Improve benchmark automations:
...
1. Use monotonic time;
2. Improve readabilities;
3. Add two more fields for number of processes.
2020-02-18 16:28:18 -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
f89448a9d5
Adding more comments
2020-02-18 16:27:29 -08:00
Lidi Zheng
72514e9bf4
Adding more comments & fix the outstanding channel count
2020-02-18 16:27:29 -08:00
Lidi Zheng
4819d8ba6e
Improve scenario configs & plumb through channel arguments
2020-02-18 16:27:29 -08:00
Lidi Zheng
68be8a7742
Improve log readability & polish scenario parameters
2020-02-18 16:27:29 -08:00
Lidi Zheng
03e1bf1071
Fix already cancelled RPC
2020-02-18 16:27:29 -08:00
Lidi Zheng
efe29d6945
Use the correct asyncio API
2020-02-18 16:27:29 -08:00
Lidi Zheng
f97ad240da
Remove pdb trace point
2020-02-18 16:27:29 -08:00
Lidi Zheng
50840080fb
Make YAPF happy
2020-02-18 16:27:29 -08:00
Lidi Zheng
a345803331
Fix the channel_ready usage
2020-02-18 16:27:29 -08:00
Lidi Zheng
7cb055b035
Make server parallel-able
2020-02-18 16:27:29 -08:00
Lidi Zheng
94525e5831
Parallelize sub worker creation
2020-02-18 16:27:29 -08:00
Lidi Zheng
8a70e757fa
Re-enable all scenarios
2020-02-18 16:27:29 -08:00
Lidi Zheng
ef853425cc
Use picked port instead of assigned port
2020-02-18 16:27:29 -08:00
Lidi Zheng
5e2114d92f
Fix the sub worker
2020-02-18 16:27:29 -08:00
Lidi Zheng
2d81bd203f
Introduce sub workers
2020-02-18 16:27:28 -08:00
Lidi Zheng
7cdef95c4f
Make buildifier happy
2020-02-18 16:26:41 -08:00
Lidi Zheng
6f343fc758
Make sanity tests happy
2020-02-18 16:26:41 -08:00
Lidi Zheng
49980a6db1
Make benchmark worker work
2020-02-18 16:26:41 -08:00
Lidi Zheng
2916c351d5
Use bytes instead of str
2020-02-18 16:26:41 -08:00
Lidi Zheng
c2a9f15079
One more fix for the benchmark_client.py
2020-02-18 16:26:41 -08:00
Lidi Zheng
ae44213482
Fix typos in worker_servicer.py
2020-02-18 16:26:41 -08:00
Lidi Zheng
afb080787e
Clean up self references
2020-02-18 16:26:41 -08:00
Lidi Zheng
1ee45615e2
Add benchmark client, server, and worker
2020-02-18 16:26:41 -08:00
Lidi Zheng
c65bad469b
Merge pull request #22026 from lidizheng/defects-test
...
Improve invocation_defects_tests with assertions and comments
2020-02-18 16:25:33 -08:00
Lidi Zheng
4c14e507cb
Merge pull request #22028 from lidizheng/aio-health-checking-2
...
[Aio] Implement health checking servicer in AsyncIO
2020-02-18 16:18:58 -08:00
Lidi Zheng
2294b847a2
Add OVERALL_HEALTH
2020-02-18 14:30:10 -08:00
Lidi Zheng
b62eca8558
Update the wording in comments
2020-02-18 13:58:29 -08:00
Lidi Zheng
4c602d4ad6
Add type annotations
2020-02-18 12:45:00 -08:00
Lidi Zheng
7917bd3074
Fix a typo
2020-02-18 12:26:39 -08:00
Lidi Zheng
750b602118
Filter out duplicated status
2020-02-18 12:25:11 -08:00
Lidi Zheng
a729bd1828
Revert "Report every health state change"
...
This reverts commit b2d8509f78 .
2020-02-18 11:42:59 -08:00
Lidi Zheng
b2d8509f78
Report every health state change
2020-02-18 11:23:23 -08:00
Lidi Zheng
fe4eba490c
Further simplify the loop
2020-02-18 10:39:06 -08:00
Lidi Zheng
545f312050
Simplify the logic and improve readability
2020-02-18 10:36:56 -08:00
Zhanghui Mao
6fef56573e
Implement server interceptor for unary unary call
2020-02-15 23:39:34 +08:00
Mehrdad Afshari
9a929c1546
Do not validate details when status code is OK
2020-02-14 21:25:47 -08:00
Lidi Zheng
5622e9e78c
Make sanity tests happy
2020-02-14 12:56:14 -08:00
Lidi Zheng
37055f923f
Make pylint happy
2020-02-14 12:44:19 -08:00
Lidi Zheng
908a8489f0
Make the version check more strict
2020-02-14 12:30:24 -08:00
Lidi Zheng
43788ac44e
Update the copyright
2020-02-14 12:29:26 -08:00
Lidi Zheng
7b4d0b28c6
Implement health checking servicer in AsyncIO
2020-02-14 12:27:42 -08:00
Lidi Zheng
e6278b5333
Make the test intent more obvious
2020-02-14 12:08:53 -08:00
Lidi Zheng
909ce6fee2
Point out it is testing client-side behavior
2020-02-14 11:19:35 -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
3cdd83bdac
Improve invocation_defects_tests with assertions and comments
2020-02-14 10:56:40 -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
Richard Belleville
c01b39e55b
Pull Python 3 only tests out to a separate repo
2020-02-13 16:06:32 -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
Richard Belleville
a859b9a98a
Whoops
2020-02-12 10:46:59 -08:00
Lidi Zheng
2789f83f85
Make pytype happy
2020-02-12 10:46:56 -08:00
Lidi Zheng
d2832e4bc6
Update tests.json
2020-02-12 10:44:15 -08:00
Richard Belleville
e99cdfa754
Copybara makes me wish I were dead
2020-02-11 18:13:13 -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
Richard Belleville
485e87cadf
Move tests into single directory because Blaze is the worst
2020-02-11 17:41:09 -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
753ab16ebb
Remove unused return value
2020-02-10 13:43:22 -08:00
Richard Belleville
5474a76044
Pull out constant
2020-02-10 13:41:22 -08:00
Richard Belleville
0668c73cd2
Add copyright header
2020-02-10 13:40:21 -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
70837b3351
Don't attempt to run under setuptools
2020-02-10 12:44:08 -08:00
Richard Belleville
270880f440
Yapf
2020-02-10 11:56:38 -08:00
Lidi Zheng
dc0509186c
Merge pull request #21921 from lidizheng/aio-fix-close-2
...
[Aio] Another fix for close mechanism on Windows
2020-02-10 11:46:59 -08:00
Richard Belleville
94efe57fb0
Buildifier
2020-02-10 11:37:55 -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
36aa768290
Correct tests.json
2020-02-07 18:03:26 -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
Richard Belleville
a2e4a23fc0
Merge pull request #20783 from Yannic/proto_incompat
...
[bazel] Add fixes for --incompatible_load_proto_rules_from_bzl
2020-02-07 15:46:38 -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
5cf41f3424
Revert the changes in _channel.py
2020-02-06 15:31:30 -08:00
Lidi Zheng
33014035eb
Skip the test_invalid_metadata on Windows for now
2020-02-06 15:26:52 -08:00
Lidi Zheng
c7095d6854
Make a proper shallow copy of onging calls set
2020-02-06 14:40:32 -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
Richard Belleville
20f85c1d60
Don't run test under Python 2
2020-02-06 14:12:38 -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
Yannic Bonenberger
06ecc87290
[bazel] Add fixes for --incompatible_load_proto_rules_from_bzl
2020-02-05 19:58:30 +01: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
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
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