Commit Graph

4032 Commits

Author SHA1 Message Date
Jan Tattermusch 451127740d
Revert "Replace in-house rand with absl::Random for backoff (#26463)" (#26476)
This reverts commit b5191d0930.
2021-06-14 21:56:35 -07:00
Esun Kim b5191d0930
Replace in-house rand with absl::Random for backoff (#26463)
* Replace in-house rand with absl::Random for backoff

* Run sanity

* Added bscrypt dependency
2021-06-11 16:29:45 -07:00
ZhenLian 5a91a513fd
Allow to specify user provided audience in google default credentials and JWT credentials (#26456)
* support user provided audience in gdc and jwt
2021-06-11 09:44:46 -07:00
Lidi Zheng a3ae8e00a2
Revert "Allow to specify user provided audience in google default credentials and JWT credentials (#26392)" (#26440)
This reverts commit 304262e135.
2021-06-07 15:24:54 -07:00
Ashitha Santhosh b9a643a817
Static policy provider implementation. (#26134) 2021-06-03 23:18:08 -07:00
yihuaz 304262e135
Allow to specify user provided audience in google default credentials and JWT credentials (#26392)
* support user provided audience in gdc and jwt

* fix 1st round of comments

* fix ruby and php to use new GDC API

* fix python clang issue

* address 2nd round of comments

* fix string_view issue

* remove length param in string_view constructor
2021-06-03 16:02:19 -07:00
Lidi Zheng 66b86cec32
Disable two aio tests for aarch64 for strange platform behavior (#26409)
* Disable two aio tests for aarch64 for strange platform behavior

* Make sanity test happy
2021-06-02 14:54:07 +02:00
Richard Belleville 1ca87cd2d3
Address Synchronization Comment from #26405 (#26410)
* Fix metadata plugin for concurrent invocations

* Disable broad-except lint error

* Use WaitGroup instead of threading.Event

* Fix typo

* Use only a single channel

* Yapf
2021-06-01 17:21:53 -07:00
Richard Belleville 67f0330c10
Fix metadata plugin for concurrent invocations (#26405)
* Fix metadata plugin for concurrent invocations

* Disable broad-except lint error
2021-06-01 15:25:56 -07:00
Richard Belleville 05aa736840
Fix bazel copyright notices (#26353)
* Add copyright to Bazel files

* Add check for copyright in Bazel files

* Remove unintentional file
2021-05-25 12:15:30 -07:00
Isabel Andrade aaa7f13b17
Handle gevent exception in gevent poller (#26058)
* Handle gevent exception in gevent poller

Currently the gevent poller ignores exceptions raised by
`gevent.wait()`, which causes greenlets to be unkilable while waiting.

This change handles exceptions raised while waiting in the gevent
poller, cancels the gRPC call and propagates the error back to the
application.

Co-authored-by: Kostis Lolos <klolos@arrikto.com>

* Fix imports in header files

* Lint gevent tests

* Set grpc event type to GRPC_QUEUE_SHUTDOWN upon cancel error

To prevent `grpc_completion_queue_next()` to be called indefinitely when
the queue is shut down.

* Remove unnecessary `except *`

* Improve gevent tests

* Format code

* Remove unnecessary import

Co-authored-by: Kostis Lolos <klolos@arrikto.com>
2021-05-24 15:03:29 -07:00
Richard Belleville c0f346423c
Fixes #26322 (#26340)
* Fixes #26322

* Support runtimes without contextvars

* Hoist member declaration higher
2021-05-21 17:12:36 -07:00
Richard Belleville cc22375572
Fix Python xDS k8s Interop (#26158)
* Increase core logging verbosity

* Make repo URL injectable

* Apparently that's not allowed

* Use ipv4 in interop server

* Add CSDS to Python interop client

* Revert CI script change

* Scale back logging

* Move env variable to dockerfile

* And Python too
2021-05-20 17:58:29 -07:00
Yash Tibrewal a989179ace
Bump master to v1.39.0 (#26207)
* Bump version to v1.39.0

* Regenerate projects

* Buildifier format
2021-05-11 06:49:10 -07:00
Lidi Zheng 25f5399b41
Add grpcio-admin Python package (#26166)
* Add grpcio-admin Python package

* Polish package content

* Make Linux artifact build happy

* Improve documentation
2021-05-05 13:20:50 -07:00
Lidi Zheng dc63d6a53e
Add CSDS API to Python (#26114)
* Add grpcio-csds pacakge

* Remove unused file

* Fix the proto import path issue

* Update the CSDS package and xds-protos for PY2

* Make tests happy

* Fix Bazel proto dependency

* Add Python2 tests for CSDS
2021-05-03 11:54:34 -07:00
Lidi Zheng ff79a925ed
Revert "Revert "Expose code and details from context on the server side (#25457)" (#26112)" (#26143)
This reverts commit ff9ece1588.
2021-05-03 10:36:36 -07:00
Mark D. Roth 4c40ee3f78
move parse_address and sockaddr_utils out of iomgr directory (#26077)
* move parse_address and sockaddr_utils out of iomgr directory

* clang-format

* fix python

* fix for import

* fix build file for import
2021-04-30 08:21:58 -07:00
Yash Tibrewal fe56d1a39a
Update boringssl submodule (#26101)
* update submodule boringssl-with-bazel with origin/master-with-bazel

* Update boringssl dependency to master-with-bazel commit SHA

* Generate projects

* Updated boringssl sha256

* Generate boringssl prefix headers

* Increment podspec version
2021-04-29 11:10:00 -07:00
Alisha Nanda ff9ece1588
Revert "Expose code and details from context on the server side (#25457)" (#26112)
This reverts commit 506db80475.
2021-04-28 15:11:25 -07:00
Chris St. Pierre 506db80475
Expose code and details from context on the server side (#25457)
* Expose code and details from context on the server side

This makes them accessible to server-side interceptors.

* Complete synchronous implementation

* Add experimental API notes

* Complete async implementation

* Revert bogus copyright change

* Fix metadata tests for py2.7

* Add new test to tests.json

* Check error codes in tests

* Bump autogenerated Python version
2021-04-28 10:15:11 -07:00
Yash Tibrewal 4768210ec8
s/OnServingStatusChange/OnServingStatusUpdate (#26010)
* s/OnServingStatusChange/OnServingStatusUpdate

* Update python files
2021-04-26 15:36:35 -07:00
Richard Belleville 3732ee0317
ADD Python xDS security interop test CI scripts (#26073) 2021-04-23 18:09:07 -04:00
Richard Belleville 53c72c5936
Python PSM Security Interop Client+Server (#25991)
* Add channelz to security client

* Make client changes. Some config needs to be reverted

* Add missing security field to channelz Socket

* Add test

* Fix test

* Remove whitespaces for windows

* Remove local_certificate check from PSM security tests

* Byte pack Python channelz IPs

* Move address packing to Core

* WIP

* Unbork security tests

* Python interop server

* Turn up server logging

* Clean up PR

* Clean up some more

* Yapf

* Fix up docker images

* Swap fillllllles!

* Add more robust boolean arg parsing

* Use bool_arg parsing in server as well

* Add copyright

Co-authored-by: Yash Tibrewal <yashkt@google.com>
2021-04-23 08:42:34 -07:00
Esun Kim ca945a58e9
Introduced grpc_error_handle (#25902)
- Define grpc_error_handle
- Replace grpc_error* with grpc_error_handle
2021-04-22 12:00:28 -07:00
Esun Kim 2d8936b097
Added status_helper (#25901)
Added status_util
2021-04-22 11:54:19 -07:00
Mark D. Roth feff79abc7
add test-only channel arg to set per-channel xDS bootstrap config (#25936)
* pass XdsClient to LB policies via channel args

* add channel arg for overriding bootstrap config on a per-channel basis

* change tests to use new channel arg approach -- currently failing for server-side tests

* use the same channel args approach on the server side

* clang-format

* fix CircuitBreakingMultipleChannelsShareCallCounter test

* fix XdsEnabledServerTest test

* add TODO

* clang-format

* generate_projects

* fix clang-tidy

* fix build

* attempt to fix python
2021-04-21 10:16:33 -07:00
Lidi Zheng 082da35e38
Add a list of banned macOS gevent tests (#26027) 2021-04-20 13:09:47 -07:00
Richard Belleville da2cf25592
Fix potential deadlock on the GIL (#26009) 2021-04-20 10:02:53 -07:00
AJ Heller 4c59b17d40
Remove eventmanager_libuv code (#25811)
Reintroduces this code removal after a failed import. This needed special handling via cherry pick.
2021-04-08 13:32:53 -07:00
Lidi Zheng 05ae3c5a87
Remove -std=gnu99 CFlag when compiling C++ with clang (#25778)
* Remove -std=gnu99 CFlag when compiling C++ with clang

* Use endswith instead of hard-coded slices

* Fix a typo
2021-04-06 06:50:40 -07:00
Lidi Zheng 09f17db9ca
[Aio] Gracefully handle RPCs ends pre-maturely (#25884)
* Gracefully handle RPCs ends pre-maturely

* Fix a typo
2021-04-05 16:59:23 -07:00
AJ Heller 4d4ee609c1
gRPC EventEngine Interface (#25795) 2021-04-05 09:26:16 -07:00
Mark D. Roth 3f19333ced
Move retry code into its own filter in the DynamicFilter stack (#25820)
* rename ChannelData to ClientChannel

* make ClientChannel class definition public

* move retry code to its own filter

* move LB call factory method to ClientChannel class

* move dynamic termination filter out of ClientChannel class

* update comments

* remove retry parsing from client channel service config parser

* fix clang-tidy

* fix service_config_test

* clang-format
2021-03-31 15:39:14 -07:00
Richard Belleville 9964ae875b
Bump master version to 1.38 (#25838)
* Bump version to 1.38

* Regenerate projects
2021-03-30 13:57:13 -07:00
Esun Kim 37eecd3ce3
Updated Abseil to LTS 20210324.0 (#25835)
* Updated abseil-cpp to 20210324.0
* UBSAN with -fsanitize-link-c++-runtime
2021-03-30 09:22:05 -07:00
Yash Tibrewal 5c49bf4209
Remove old grpc_string_to_sockaddr and rename grpc_string_to_sockaddr_new to grpc_string_to_sockaddr (#25831) 2021-03-29 16:04:10 -07:00
Lidi Zheng cccafaf10f
Remove async mark for set_trailing_metadata interface (#25814) 2021-03-25 11:09:24 -07:00
AJ Heller 1694984846
Revert "Remove unused eventmanager_libuv code (#25796)" (#25807)
This caused problems internally. The interface deletion needs a cherrypick, but I will do an overnight test first, before I reintroduce. CC @nicolasnoble
2021-03-24 17:17:42 -07:00
AJ Heller 077f627aef
Remove unused eventmanager_libuv code (#25796) 2021-03-24 11:21:05 -07:00
Richard Belleville 5030f28ff5
Decrease Python xDS interop client verbosity. (#25661) 2021-03-22 16:21:15 -07:00
Lidi Zheng 1040fbdb9f
Re-introduce "CSDS Implementation" (#25762)
* Revert "Revert "CSDS Implementation (#25038)" (#25745)"

This reverts commit 98fd4e1e36.

* Add xDS special Bazel build rules

* Add 2 todos to remove the added rules
2021-03-22 13:14:19 -07:00
Lidi Zheng 98fd4e1e36
Revert "CSDS Implementation (#25038)" (#25745)
This reverts commit 27de24a38e.
2021-03-17 13:38:47 -07:00
donnadionne 26fd0ce3c9
Generating hash for ring_hash policy (#25415) 2021-03-16 18:24:35 -07:00
Lidi Zheng 27de24a38e
CSDS Implementation (#25038)
* Implement the xDS Config Dump as CSDS in Core

* Revemp the logic of caching and constructing the CSDS response
* Unref created error
* Fix the clang tidy complains
* Resolve comments about symbol preload and Json ctor
* Improve readability
* Merge with new ADS logic && support latest CSDS
  * Refactor the version/client_status logic
  * Add support for error_state
  * Add support for does_not_exist
  * Add node information
* Fix the ProtoBuf segfault
* More test cases
* Refactor to use bytes as cache instead of JSON

* Apply clang_tidy's suggestion

* Resolve reviewer's requests

* Tiny stylish fixes && make sanity test happy

* WIP: still working on the matchers

* Update a bunch of matchers

* Improve readability a bit

* Resolve reviewer's suggestions

* Resolve reviewer's comments

* Make Unpack fail fast
2021-03-16 18:17:37 -07:00
Lidi Zheng 633b695af4
Mark Python interceptors as stable (#25739) 2021-03-16 16:47:43 -07:00
Yash Tibrewal 7021b72d1f
Revert Revert Xds Status Notifier (#25718)
* Revert "Revert "xDS status notifier (#25321)" (#25702)"

This reverts commit 3c9f3972e3.

* Remove connection from map when OnClose is not registered

* Reviewer comments
2021-03-15 14:29:06 -07:00
Lidi Zheng 83b19b2efe
[Aio] Add time_remaining method to ServicerContext (#25719)
* [Aio] Add time_remaining method to ServicerContext

* Fix comments

* Resolve reviewer's requests
2021-03-15 14:07:47 -07:00
Yash Tibrewal 3c9f3972e3
Revert "xDS status notifier (#25321)" (#25702)
This reverts commit 81e90432e1.
2021-03-12 08:54:34 -08:00
Lidi Zheng 3b067c9f3f
Implement xDS client-side fault injection filter (#24354)
* Refactored with dynamic filters
* Error-tolerance tuned
* Fix leak of grpc_error and data race of canceller
* Adopt the latest xDS HTTP filter framework
* Fix fault injection tests' conflict with router filter
* Test alternative setup (override, no-override) without copy
* Refactor file strcutures of fault injection filter
* Rewrite the Json parsing/assembling logic again
* Added logic for aborting streaming RPC && resolve comments
2021-03-09 13:14:21 -08:00
Yash Tibrewal 81e90432e1
xDS status notifier (#25321)
* Serving status notification for xds enabled servers
2021-03-08 21:47:13 -08:00
Richard Belleville d9903aa44e
Format Channelz Address.TcpIpAddress.address as packed bytes (#25629)
* Move address packing to Core

* Format

* Use absl::Base64Escape

* Update src/core/lib/channel/channelz.cc

Co-authored-by: Yash Tibrewal <yashkt@google.com>

Co-authored-by: Yash Tibrewal <yashkt@google.com>
2021-03-08 17:11:58 -08:00
Ashitha Santhosh bd86187f19
SDK authorization policy translator. (#25361)
* SDK authorization policy translator.
2021-03-05 09:05:11 -08:00
Jan Tattermusch fcd43e9030
Crosscompile python aarch64 wheels with dockcross (#25418)
* build aarch64 python wheels via crosscompilation

* yapf format code

* fix shellcheck complaints

* fix python37 aarch64 wheel build

* build python wheels on linux aarch64 with static libstdc++

* yapf format code
2021-03-02 07:32:28 +01:00
Mark D. Roth 49601b0334
Second attempt: xDS HTTP filter support for gRPC client (#25558)
* Revert "Revert "xDS HTTP filter support for gRPC client" (#25555)"

This reverts commit 785a128a83.

* xds_end2end_test: avoid flakes from lingering shutdown from previous test
2021-02-26 07:39:27 -08:00
donnadionne 785a128a83
Revert "xDS HTTP filter support for gRPC client" (#25555)
This reverts commit b2164837a8.
2021-02-25 07:18:43 -08:00
Richard Belleville ac34f559bb
Fix Signal Safety Issue (#25394)
* Decrease flake rate

* Spruce up comments
2021-02-20 16:12:35 -08:00
Richard Belleville ee915d8a15
Merge pull request #25410 from gnossen/unrevert_xds_creds
Reintroduce xDS Creds
2021-02-12 10:25:27 -08:00
Mark D. Roth b2164837a8 xDS HTTP filter support for gRPC client 2021-02-11 13:17:15 -08:00
Richard Belleville e76d75f520 Revert "Revert "Merge pull request #25365 from gnossen/python_xds_creds""
This reverts commit 7bbefc8365.
2021-02-10 15:53:49 -08:00
Richard Belleville 47ea5518b1 Merge remote-tracking branch 'origin/master' into unrevert_xds_creds 2021-02-10 15:53:42 -08:00
Richard Belleville b120008ea3 Fix API 2021-02-10 15:31:03 -08:00
Yash Tibrewal 7c8defd5c9
Merge pull request #25377 from yashykt/removedisrespecfulterm2
Replace disrespectful term
2021-02-10 15:20:27 -08:00
Richard Belleville 9c40041050
Merge pull request #25407 from gnossen/revert_xds_creds
Revert "Merge pull request #25365 from gnossen/python_xds_creds"
2021-02-10 11:22:38 -08:00
Richard Belleville 8d484bd49e
Merge pull request #25383 from gnossen/fix_grpc_future_docs
Clarify Guarantees about grpc.Future Interface
2021-02-10 11:12:50 -08:00
Richard Belleville 7bbefc8365 Revert "Merge pull request #25365 from gnossen/python_xds_creds"
This reverts commit b80d374b93, reversing
changes made to df062598c0.
2021-02-10 11:06:02 -08:00
Lidi Zheng a72c72f6e3
Merge pull request #25388 from lidizheng/master
Bump version of HEAD to v1.37.0-dev
2021-02-09 15:11:35 -08:00
Richard Belleville 762a29cddf Integrate additional guarantee into existing statement 2021-02-09 12:52:29 -08:00
Yash Tibrewal 15779f7b91
Merge pull request #25380 from yashykt/removedisrespecfulterm3
Replace disrespectful words
2021-02-09 12:07:25 -08:00
Lidi Zheng 51659eb06e Regenerate projects 2021-02-09 11:45:06 -08:00
Richard Belleville b80d374b93
Merge pull request #25365 from gnossen/python_xds_creds
Implement Python Client and Server xDS Creds
2021-02-09 09:57:00 -08:00
Richard Belleville 5f759fcd1f
Merge pull request #25384 from gnossen/fix_interop_typo
Fix Interop Client Typo
2021-02-08 21:46:27 -08:00
Richard Belleville 0136c65a70 Fix typo 2021-02-09 00:58:16 +00:00
Richard Belleville 8b5663fb91 Unref fallback credentials 2021-02-08 16:46:05 -08:00
Richard Belleville 459ceb026d Clarify the Future interface 2021-02-08 15:49:05 -08:00
Yash Tibrewal f4e55b85bc Replace disrespectful term 2021-02-08 15:29:53 -08:00
Yash Tibrewal 7a5288d2a0 Replace disrespectful words 2021-02-08 14:29:18 -08:00
Richard Belleville 8d805b9b43 Figure out what year it is 2021-02-08 13:50:22 -08:00
Richard Belleville 5e23b2dcb7 Pull out context manager 2021-02-08 13:49:46 -08:00
Lidi Zheng 542e7cb409
Merge pull request #25357 from lidizheng/update-envoy
Update xDS protos
2021-02-08 13:15:54 -08:00
Richard Belleville c8c80fd998
Merge pull request #25366 from gnossen/python_xds_timeout_test
Python xDS Timeout Test Client
2021-02-08 11:10:41 -08:00
Richard Belleville d1efd2af6e Remove inadvertent addition 2021-02-08 10:54:43 -08:00
Richard Belleville 859269e511 Yapf 2021-02-08 10:37:10 -08:00
Richard Belleville accaddc098 Fix call sites 2021-02-05 18:02:16 -08:00
Richard Belleville 95b06a7bd4 Avoid dancing diff 2021-02-06 01:20:27 +00:00
Richard Belleville 6017b08300 Fix up cygrpc.Server call sites 2021-02-05 16:42:10 -08:00
Richard Belleville 3cf0266843 And back to enums again 2021-02-06 00:15:22 +00:00
Richard Belleville b47279d923 Clean up 2021-02-05 20:31:56 +00:00
Richard Belleville 2c35187473 Fix aio server 2021-02-05 12:27:18 -08:00
Richard Belleville 8960ddea24 Yapf 2021-02-05 20:07:47 +00:00
Richard Belleville a07674de5c Conform to updated test spec 2021-02-05 20:01:29 +00:00
Richard Belleville 2c2dd5c047 Merge remote-tracking branch 'origin/master' into python_xds_timeout_test 2021-02-05 19:55:28 +00:00
Richard Belleville 23f6d4c75f Merge remote-tracking branch 'origin/master' into python_xds_creds 2021-02-05 11:47:10 -08:00
Richard Belleville a905065a98 Yapf 2021-02-05 11:43:48 -08:00
Richard Belleville 8988646903 Clean up 2021-02-05 11:42:22 -08:00
Richard Belleville e803bdb578 Add API to initialize xDS server 2021-02-05 11:36:08 -08:00
Lidi Zheng 0b04a92aba Regenerate project 2021-02-05 10:22:24 -08:00
Lidi Zheng c78c6ae20d regenerate files 2021-02-04 17:16:22 -08:00
Lidi Zheng 50f2fdd3cf Update the BUILD chain for the moved protos 2021-02-04 17:08:16 -08:00
Esun Kim 0cf94e3fdd Add time-util 2021-02-01 17:31:46 -08:00
Richard Belleville 791626a28f Accept programmatic configuration of RPC timeout 2021-01-28 02:48:48 +00:00
Richard Belleville be1bdc7707 Report RPC statuses 2021-01-28 02:20:33 +00:00
Richard Belleville 20be83e886 Use the new insecure channel credential object 2021-01-27 16:19:49 -08:00
Mark D. Roth 0a0aae8ee8
Merge pull request #25215 from markdroth/c2p_resolver
Implement google-c2p resolver.
2021-01-26 15:03:26 -08:00
Richard Belleville 293d7c46fe Implement xds_channel_credentials and xds_server_credentials 2021-01-22 12:08:01 -08:00
Donna Dionne 19b1f8f64a Cds Watchers changes to support aggregate Cds and Logical DNS Cds. 2021-01-21 14:25:50 -08:00
Mark D. Roth 80ede5992a Implement google-c2p resolver. 2021-01-20 14:37:21 -08:00
Jan Tattermusch 0b1798412b
Revert "Wrap strerror into a thread-safe implementation" 2021-01-20 16:33:27 +01:00
Ashitha Santhosh 4ca878799b Refactor [String/Header/Path]matchers in xds_api. 2021-01-15 12:32:54 -08:00
Jan Tattermusch e2b170278c yapf format code 2021-01-14 11:14:11 +01:00
Richard Belleville 333fb32667 Merge pull request #25142 from gnossen/cb_interop_python
Python Circuit Breaking Interop Test Client Additions
2021-01-14 00:08:29 +00:00
Richard Belleville 4ea16b6a30
Merge pull request #25142 from gnossen/cb_interop_python
Python Circuit Breaking Interop Test Client Additions
2021-01-13 14:05:47 -08:00
Yang Gao 25c0d5974e
Merge pull request #25140 from yang-g/strerror
Wrap strerror into a thread-safe implementation
2021-01-13 13:35:25 -08:00
Sergii Tkachenko 88af4277c6 Python style: disambiguate list expand style for yapf 2021-01-13 14:25:44 -05:00
Richard Belleville b12ff43ba6 Yapf 2021-01-13 19:24:04 +00:00
Richard Belleville 244488928a Logger style 2021-01-13 19:05:50 +00:00
Richard Belleville 5080f4adb5 Add more return types 2021-01-13 19:03:59 +00:00
Sergii Tkachenko 8db79e2e71 Python style: reformat code using updated yapf 0.30.0 2021-01-13 14:00:12 -05:00
yang-g cf26f0133a Wrap strerror into a thread-safe implementation 2021-01-13 08:54:51 -08:00
Richard Belleville 56ee26ee6c Yapf 2021-01-13 01:03:17 +00:00
Richard Belleville 0be354eb51 Fix up client changes 2021-01-13 01:00:24 +00:00
Richard Belleville c4d3fc749f WIP. Implement CB interop test 2021-01-12 18:00:14 +00:00
Stanley Cheung fe2e96f9f3 Regenerate projects 2021-01-06 19:52:32 -08:00
Stanley Cheung 5564ac0cce Regenerate projects 2021-01-06 19:40:00 -08:00
Alexander Polcyn 8215b21dc1 move grpc_ares_ev_driver and fd_node definitions into grpc_ares_wrapper.cc 2020-12-28 11:51:16 -08:00
Alexander Polcyn ef52044862 remove unnecessary grpc_ares_wrapper_fallback.cc 2020-12-23 11:20:43 -08:00
Mark D. Roth 8439ed152e
Merge pull request #24920 from markdroth/client_channel_split4
Add dynamic filters between name resolution and load balancing.
2020-12-22 13:18:57 -08:00
Esun Kim d1bef160e5 Added upb/json 2020-12-21 19:16:52 -08:00
Esun Kim d24a66af72 Regen project files 2020-12-21 11:35:07 -08:00
Mark D. Roth 7d46e37251 Add dynamic filters between name resolution and load balancing. 2020-12-21 09:27:14 -08:00
Yash Tibrewal 4105d2ce20 XdsServerBuilder, config fetching per resolved address and delaying bind/listen till fetch is complete 2020-12-16 12:15:52 -08:00
Richard Belleville 9e58d0645b
Merge pull request #24993 from gnossen/lazy_import_grpc_tools
Lazily import grpc_tools when using runtime stub/message generation
2020-12-15 16:43:58 -08:00
Richard Belleville 416f8f6d5c Factor out error functions 2020-12-15 13:22:08 -08:00
Richard Belleville 3da0a9a68d Remove trailing whitespace 2020-12-14 18:04:38 -08:00
Richard Belleville faa4ea2863 Docstring. Formatting 2020-12-14 17:38:34 -08:00
Richard Belleville 6b06bf4938 Lazily import grpc_tools 2020-12-14 17:27:24 -08:00
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