SataQiu
bca4a6db2c
fix some spellings mistakes
2019-04-21 11:07:21 +08:00
Muxi Yan
9e593f721f
build system fix for default CFStream
2019-04-19 14:14:48 -07:00
murgatroid99
41871bf7de
Add cares glue for libuv event loop
2019-04-18 17:08:51 -07:00
Lidi Zheng
362d022972
Merge pull request #18783 from lidizheng/fix-ctrl-c
...
Propagate KeyboardInterrupt above completion queue
2019-04-17 11:53:52 -07:00
Lidi Zheng
09d18aa659
Propagate KeyboardInterrupt above completion queue
2019-04-16 15:30:48 -07:00
Lidi Zheng
123fd943f1
Revert "Revert "Merge pull request #18547 from lidizheng/fix-gevent""
...
This reverts commit a922bd7a03 .
2019-04-16 14:13:04 -07:00
Mark D. Roth
62d9be1533
Merge pull request #18631 from markdroth/pare_down_channel_args_api
...
Move functions for individual args out of channel_args.{h,cc}.
2019-04-16 07:11:33 -07:00
Richard Belleville
a922bd7a03
Revert "Merge pull request #18547 from lidizheng/fix-gevent"
...
This reverts commit 09d1011663 , reversing
changes made to e076a30f16 .
2019-04-15 12:47:50 -07:00
Richard Belleville
55bbf1cc1c
Merge pull request #18732 from grpc/compression_reversion_reversion
...
Unrevert Python Compression
2019-04-15 10:20:08 -07:00
Lidi Zheng
5721c518d9
Add DNS resolver test & Disable C-Ares for custom iomgr
2019-04-12 14:44:37 -07:00
Richard Belleville
392ffea8d5
Fix tests for internal runs
2019-04-11 14:31:58 -07:00
Richard Belleville
f900eec41d
Revert "Merge pull request #18727 from grpc/revert_compression"
...
This reverts commit 8054a731d1 , reversing
changes made to c3d3cf8053 .
2019-04-11 13:04:54 -07:00
Richard Belleville
167540efd4
Revert "Merge pull request #18564 from grpc/compression"
...
This reverts commit 9dfeb14be0 , reversing
changes made to 7009f2df58 .
2019-04-11 10:10:29 -07:00
Richard Belleville
5afd77398e
Implement compression API within gRPC Python.
2019-04-09 15:14:03 -07:00
Mark D. Roth
eccfecd6a6
Move functions for individual args out of channel_args.{h,cc}.
2019-04-03 13:15:40 -07:00
Lidi Zheng
0231bf3b01
Regenerate projects
2019-03-29 16:24:50 -07:00
Lidi Zheng
56605cd55d
Merge pull request #18488 from lidizheng/example-errors
...
Add Python example for error handling
2019-03-28 14:47:30 -07:00
Mark D. Roth
934e31d7d1
Merge pull request #18357 from markdroth/address_list_not_in_channel_args
...
Restructure how addresses and service config are passed from resolver to LB policy
2019-03-27 11:40:44 -07:00
Lidi Zheng
478fec7d50
Merge pull request #18300 from lidizheng/disable-flaky-windows-gevent-test
...
Disable two flaky gevent tests
2019-03-27 11:40:04 -07:00
Lidi Zheng
c9b4d8347b
Merge pull request #18522 from lidizheng/fix-cython-int
...
Attempt to not depend on stdint.h
2019-03-26 16:24:25 -07:00
Lidi Zheng
04697287b7
Attempt to not depend on stdint.h
2019-03-26 13:48:39 -07:00
Fabian Holler
8c49802f75
add strsplit.c, strsplit.h files to build and test files
...
The files are new in the updated cares release.
2019-03-26 13:13:49 -07:00
Mark D. Roth
206592ce9c
Restructure how addresses and service config are passed from resolver to LB policy.
2019-03-26 11:57:21 -07:00
Lidi Zheng
f527cfbbac
Adopt review's advice
...
* Add a unit test
* Integrate with Bazel
* Polish README.md
2019-03-25 12:24:11 -07:00
Jared Hance
3de283c665
Make gil handling in completion queue more robust
...
It turns out that the code generation for "with gil" is a bit more
complicated than the logic for re-obtaining the gil at the end of
"with nogil." This is because PyGILState_Ensure seems to, during
interpreter finalization, think it needs to call a new thread
(resulting in a call to cpython new_threadstate) which then segfaults.
Because "with nogil" knows that, prior to executing, it already had
the gil, it doesn't need to set up as much state, and thus the segfault
does not occur.
To avoid this, we just only use "with nogil" within the infinite loop,
and then end the "nogil" block before we check signals. This avoids
needing any "with gil" call at all.
I was able to reliably reproduce the segfault within a few minutes
before the patch by running a binary in a loop (with py3) while
maxing out my machines cpu usage. After the patch, I have not
been able to reproduce the segfault after two hours.
Note that this race can only occur when the user does not properly
clean up all their channels, and is relying on garbage collection to
do so (which isn't guaranteed). However, we want to avoid a segfault
on failure to close because this isn't a good user error and makes it
hard to debug.
2019-03-20 12:01:11 -07:00
Lidi Zheng
0c70b0f008
Merge pull request #18414 from evanj/utf8-encodable
...
python docs: details are UTF-8 encodable, not just ASCII.
2019-03-19 12:59:22 -07:00
Evan Jones
86991f633d
python docs: details are UTF-8 encodable, not just ASCII.
...
Context detail messages are Unicode strings in both the implementation and
specification. Fix the documentation to make this clearer. The
specification for the Status-Message response field says "Status-Message is
[...] a Unicode string [...] encoded as UTF-8" [1]. The implementation
seems to call _common.encode(), so anything that is UTF-8 encodable works.
For example:
context.set_code(grpc.StatusCode.ABORTED)
context.set_details('emoji error: \U0001F600')
Correctly returns a smiley face emoji to the client.
2019-03-18 10:59:18 -04:00
Lidi Zheng
4c3b577650
Add expectation to negative timeout test case
2019-03-15 17:42:50 -07:00
Lidi Zheng
dfb5a2dbc6
Disable negative deadline test in gevent
2019-03-15 13:01:28 -07:00
Lidi Zheng
c3ecc61867
Use C-Core API to perform time conversion
2019-03-15 11:48:10 -07:00
Lidi Zheng
585582c4a7
Merge pull request #18383 from lidizheng/fix-ctypedef
...
Use correct C integer types in Cython
2019-03-15 11:31:06 -07:00
Lidi Zheng
ec78d0f569
Use correct C integer types in Cython
2019-03-14 19:51:41 -07:00
Yihua Zhang
b017c801b6
Add SPIFFE security stack to gRPC core
2019-03-14 15:24:48 -07:00
Richard Belleville
749c52de56
Refcount vtables
2019-03-08 15:31:37 -08:00
Lidi Zheng
4966adaeae
Disable two flaky gevent tests
2019-03-07 15:19:16 -08:00
Yash Tibrewal
abcd5861eb
Nuking the poll-cv polling engine
2019-03-07 14:49:24 -08:00
Lidi Zheng
c73c724778
Merge pull request #18277 from lidizheng/nogil-unref
...
Remove GIL for grpc_call_unref
2019-03-06 13:32:22 -08:00
Lidi Zheng
8326ac64e4
Remove GIL for grpc_call_unref
2019-03-06 09:57:30 -08:00
Richard Belleville
efa1f8b993
Remove debug prints
2019-03-05 16:11:05 -08:00
Richard Belleville
07bfbec8f9
Fix hanging build
2019-03-05 16:09:31 -08:00
Lidi Zheng
f28286b526
Merge pull request #18218 from lidizheng/simplify-batch
...
Simplify batch operations event interpretation
2019-03-04 12:23:08 -08:00
Lidi Zheng
ef42aff699
Simplify batch operations event interpretation
2019-03-01 10:00:04 -08:00
Richard Belleville
1112d52f03
Revert "Merge pull request #18206 from grpc/revert-18182-enable-deadline-propagation"
...
This reverts commit 63ef07ebb5 , reversing
changes made to 046e3e4ab5 .
2019-02-28 15:50:20 -08:00
Vijay Pai
4f86edeb23
Revert "Enable deadline propagation"
2019-02-28 10:27:07 -08:00
Nicolas Noble
0fc01a302f
Merge pull request #18171 from huynq0911/fix_duplicated_word
...
Fix some typos
2019-02-27 19:15:53 -08:00
Yang Gao
40241c5236
Merge pull request #18157 from yang-g/rollbackrollback
...
Roll-forward PR17308
2019-02-27 17:04:19 -08:00
Richard Belleville
b558519d99
Merge pull request #18190 from grpc/new-pylint-errors
...
Fix new pylint errors
2019-02-27 11:35:46 -08:00
Lidi Zheng
ee26faee27
Merge pull request #18133 from mehrdada/cleanup-c_creds
...
Remove unused ChannelCredentials.c_credentials
2019-02-27 10:36:19 -08:00
Richard Belleville
33be6cd732
Switch pattern for marking unused argument
2019-02-27 10:29:53 -08:00
Richard Belleville
1c05218497
Fix new pylint errors.
2019-02-27 09:43:39 -08:00
Richard Belleville
3c3eb36b36
Yapf
2019-02-26 17:00:23 -08:00
Richard Belleville
795efaa108
Appease the pylint gods
2019-02-26 16:35:19 -08:00
Richard Belleville
8665767aa5
Fix bad merge
2019-02-26 13:12:53 -08:00
Richard Belleville
2286fcd63e
Merge branch 'master' into enable-deadline-propagation
2019-02-26 12:35:38 -08:00
Richard Belleville
969f698cf2
Enable deadline propagation
2019-02-26 12:33:53 -08:00
Nguyen Quang Huy
c9acd8380f
Fix some typos
...
Correct some words spelling for reading more easily.
2019-02-26 15:46:13 +07:00
Eric Gribkoff
1c2303c635
use isinstance for internal api to not catch mocks
2019-02-25 21:44:26 -08:00
Lidi Zheng
07b2b54f07
Merge pull request #18116 from lifanov/cstd
...
generalize macOS workaround for -std=c++11 passed in C mode
2019-02-25 11:09:19 -08:00
yang-g
456f748b2f
Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
...
This reverts commit 9079e98dfc , reversing
changes made to 76a38bfcc2 .
2019-02-25 10:11:06 -08:00
Yang Gao
4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread"
2019-02-22 16:34:24 -08:00
Nikolai Lifanov
580b720a39
address comments by ericgribkoff@
...
o re-add USE_PREBUILT_GRPC_CORE option that was erroneously removed
o fix typo in comment
2019-02-22 15:55:59 -08:00
Eric Gribkoff
d6e8c4fdb1
Merge pull request #18129 from ericgribkoff/abort_test_test
...
Disable test_abort_does_not_leak_local_vars
2019-02-22 14:04:26 -08:00
Lidi Zheng
75df1eccad
Merge pull request #17881 from lidizheng/bzl-py3-fix
...
[Roll Forward] Enable Python 3 for Bazel to Run Tests
2019-02-22 11:42:42 -08:00
Nikolai Lifanov
a916a53347
use str instead of Text to appease Python 2.7
...
The Python 2.7 Linux test runner doesn't have typing module available.
2019-02-22 11:32:26 -08:00
Mark D. Roth
5f00cfd3bd
Merge pull request #18096 from markdroth/lb_policy_api
...
Second attempt: LB policy picker API
2019-02-22 10:10:43 -08:00
Nikolai Lifanov
9eb1171dfb
be compatible with Python 2 and Python 3
...
In Python 3, cc_err is going to be bytes().
2019-02-21 17:54:27 -08:00
Mehrdad Afshari
0ac7203777
Removed unused ChannelCredentials.c_credentials
2019-02-21 17:21:35 -08:00
Nikolai Lifanov
4fdfdd5d2c
Merge branch 'master' into cstd
2019-02-21 16:18:52 -08:00
Nikolai Lifanov
ad093660ff
format with yapf
...
This was already formatted with yapf, but perhaps I didn't do this
correctly. I copied the diff directly from kokoro build log this
time.
2019-02-21 16:15:33 -08:00
Nikolai Lifanov
c1451e83d5
generalize macOS workaround for -std=c++11 passed in C mode
...
GCC allows this, but notably clang does not. Other systems,
like FreeBSD and some Linux distros ship with clang as default
compiler. While here, switch the approach to filtering out std
flag since the make workaround relies on GNU make syntax and
'make' binary could be bmake and/or gmake could be absent.
The idea to filter the flags was taken from an answer to this
Stack Overflow question:
https://stackoverflow.com/questions/15527611/how-do-i-specify-different-compiler-flags-in-distutils-for-just-one-python-c-ext
2019-02-21 15:49:04 -08:00
Lidi Zheng
9a548969ed
Merge branch 'master' into bzl-py3-fix
2019-02-21 14:14:23 -08:00
Eric Gribkoff
8ba4d3a801
Disable test_abort_does_not_leak_local_vars
...
This test relies on gc timing and has been flaky
(https://github.com/grpc/grpc/issues/17927 ).
2019-02-21 14:02:06 -08:00
Eric Gribkoff
deb1081536
Disable flaky health service test
2019-02-21 12:09:36 -08:00
Eric Gribkoff
af3d32214c
increase timeout
2019-02-20 19:44:13 -08:00
Eric Gribkoff
93ef0db86b
use else in right spot
2019-02-20 17:11:42 -08:00
Eric Gribkoff
ab5b28538f
use else:
2019-02-20 16:20:32 -08:00
Eric Gribkoff
fbc4ea7d8e
mark as experimental
2019-02-20 16:00:11 -08:00
Eric Gribkoff
a2495502df
add enter_graceful_shutdown() to health service
2019-02-20 15:55:19 -08:00
Yang Gao
b03e014ad8
Merge pull request #17308 from yang-g/shutdown
...
Move grpc_shutdown internals to a detached thread
2019-02-20 15:37:18 -08:00
Lidi Zheng
cb3966b881
Use `tuple` instead of `list`/`map` combination
2019-02-20 14:07:34 -08:00
Lidi Zheng
61bea3891b
Another attempt to fix this problem cleanly
2019-02-20 14:07:34 -08:00
Lidi Zheng
e9c67f23f3
Add a new environment variable GRPC_BAZEL_BUILD
2019-02-20 14:07:34 -08:00
Lidi Zheng
48ccc2477c
Prevent the Bazel hack from affecting environment other than Bazel
2019-02-20 14:07:34 -08:00
Lidi Zheng
d209deb14b
Revert "Revert "Merge pull request #17644 from lidizheng/bzl-py3""
...
This reverts commit 7da0aacef2 .
2019-02-20 14:07:34 -08:00
Eric Gribkoff
ae44187910
Merge branch 'master' into non_blocking_stream
2019-02-20 11:22:25 -08:00
Eric Gribkoff
bf7107b9dc
comments
2019-02-20 11:00:04 -08:00
Richard Belleville
f6cba4b2fb
Merge pull request #18108 from grpc/enable-load-reporting
...
Enable Load Reporting
2019-02-20 10:58:55 -08:00
Eric Gribkoff
2ba9a5aaa8
bazel dep
2019-02-20 10:33:02 -08:00
Richard Belleville
4f299d84ed
Add private _finalize_state method to ServicerContext
2019-02-20 09:44:41 -08:00
Kim Bao Long
0203bf74f5
Remove the redundant words in comments
...
Although it is spelling mistakes, it might make an affects while reading docs.
Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com>
Signed-off-by: Kim Bao Long <longkb@vn.fujitsu.com>
2019-02-20 16:21:59 +07:00
yang-g
fe3555f0fd
Merge with head and resolve conflict
2019-02-19 20:46:51 -08:00
Eric Gribkoff
da1f8d7c66
rpc test fix
2019-02-19 15:46:49 -08:00
Eric Gribkoff
003212648f
fixup
2019-02-19 15:08:42 -08:00
Eric Gribkoff
77f325a9af
bazel target
2019-02-19 14:54:02 -08:00
Eric Gribkoff
a5c96cf765
fix test
2019-02-19 14:38:11 -08:00
Eric Gribkoff
0346ec2f45
stream_observer->on_next_callback
2019-02-19 14:18:00 -08:00
Eric Gribkoff
830d7d1e61
order
2019-02-19 14:02:29 -08:00
Eric Gribkoff
00f85c28c9
update tests.json
2019-02-19 13:46:52 -08:00
Eric Gribkoff
9345eac211
non-blocking server streaming for health service
2019-02-19 13:24:31 -08:00
Mark D. Roth
aa149fedbb
Revert "Merge pull request #18093 from grpc/revert-17770-lb_policy_picker_api"
...
This reverts commit f327b83706 , reversing
changes made to b3b5d63423 .
2019-02-19 13:19:24 -08:00
hcaseyal
275296c594
Revert "LB policy picker API"
2019-02-19 11:05:52 -08:00
yang-g
0df63d3c98
Merge branch 'master' into shutdown
2019-02-15 21:51:03 -08:00
Eric Gribkoff
b7947776f8
Merge pull request #16513 from ericgribkoff/python_unit_fork_tests
...
Add fork tests as Python unit tests
2019-02-15 18:31:45 -08:00
Eric Gribkoff
ff0d2195cf
address comments
2019-02-15 17:00:21 -08:00
yang-g
3c61849461
python changes
2019-02-15 15:48:52 -08:00
Eric Gribkoff
2ea6d3ef0b
Add fork tests as Python unit tests
2019-02-15 09:50:46 -08:00
Srini Polavarapu
f7f6861720
Merge pull request #18033 from srini100/master
...
Bump master to v1.20.x and pick "godric" for that release
2019-02-13 12:17:12 -08:00
Mark D. Roth
bab8123763
LB policy picker API
2019-02-13 08:30:04 -08:00
Srini Polavarapu
b0efc103e3
Regenerate projects
2019-02-12 21:07:42 -08:00
Arjun Roy
195a30bb8b
Grpc: Change grpc_handshake and grpc_handshake_mgr to use CPP implementations.
...
grpc_handshake is renamed to GrpcHandshake, using C++ class definitions
instead of C-style vtable classes. Update callers to use new interfaces.
We use RefCountedPtr to simplify reference tracking.
2019-02-11 11:35:08 -08:00
Eric Gribkoff
5a20b60cda
fix flake in test_abort_does_not_leak_local_vars
2019-02-05 09:21:02 -08:00
Eric Gribkoff
28252eb0dd
force gc in test
2019-02-01 15:32:34 -08:00
Eric Gribkoff
c5255e9a5e
python: do not store raised exception in _Context.abort()
...
Python 3 exceptions include a `__traceback__` attribute that includes
refs to all local variables. Saving the exception results in leaking
references to the, among other things, the Cython grpc_call wrapper and
prevents garbage collection and release of core resources, even after
the server is shutdown.
See
https://www.python.org/dev/peps/pep-3134/#open-issue-garbage-collection
2019-02-01 09:32:39 -08:00
Eric Gribkoff
7da0aacef2
Revert "Merge pull request #17644 from lidizheng/bzl-py3"
...
This reverts commit a25828ad78 , reversing
changes made to 5176fd80fc .
2019-01-29 13:50:16 -08:00
yihuaz
6d3580421d
Merge pull request #17549 from yihuazhang/SPIFFE-API-CHANGE
...
Add a new TLS credential surface API
2019-01-29 12:56:34 -08:00
Vijay Pai
8fb2f4abea
Fix a common typo
2019-01-29 10:04:43 -08:00
Yihua Zhang
a3d997cbdc
Add a TLS credential surface API (experimental)
2019-01-29 10:04:28 -08:00
Lidi Zheng
5198ccd89c
Revert "Add basic benchmark test for Python"
2019-01-29 00:40:01 -08:00
Lidi Zheng
a25828ad78
Merge pull request #17644 from lidizheng/bzl-py3
...
[gRPC] Enable Python 3 for Bazel to Run Tests
2019-01-28 16:23:33 -08:00
Lidi Zheng
fcbb126baf
Point the hack of proto message comparison to new issue
2019-01-28 14:56:52 -08:00
Lidi Zheng
ec7d66940b
Merge pull request #17839 from lidizheng/issue-17831
...
Fix for macOS build
2019-01-28 13:53:16 -08:00
Lidi Zheng
91fde06b12
Remove the dependency of 'six'
2019-01-28 12:12:06 -08:00
Lidi Zheng
1a688982a4
Cast the str type if it is unicode
2019-01-28 11:33:19 -08:00
Lidi Zheng
16b8279ebe
Merge pull request #17793 from lidizheng/py-bm
...
Add basic benchmark test for Python
2019-01-28 11:00:37 -08:00
Lidi Zheng
7e90dad675
Adopt reviewer's advices
2019-01-28 10:55:19 -08:00
Lidi Zheng
8a7a75e2c8
Merge pull request #17811 from lidizheng/enable-channelz-test
...
Revert "Remove the fake package dependency && temporarily skip the Channelz tests"
2019-01-25 16:06:03 -08:00
Lidi Zheng
f817d49e47
Update the README.md
2019-01-25 14:03:37 -08:00
Eric Gribkoff
196889cdad
Merge pull request #17724 from ericgribkoff/rename_context_hooks
...
rename census context hooks
2019-01-24 13:45:08 -08:00
Lidi Zheng
141e42f9b9
Revert "Remove the fake package dependency && temporarily skip the Channelz tests"
...
This reverts commit 08a90f03d4 .
2019-01-24 13:45:07 -08:00
Richard Belleville
dbad0522c3
Revert "Merge pull request #17752 from grpc/license-symlinks"
...
This reverts commit 3f8e15e2a4 , reversing
changes made to a8662121c7 .
2019-01-24 10:10:22 -08:00
Lidi Zheng
b60c5cdc82
Adopte reviewer's suggestion
2019-01-23 12:27:43 -08:00
Lidi Zheng
95d4120f46
Add copyright to BUILD file
2019-01-22 18:34:17 -08:00
Lidi Zheng
4f451c78a4
Add basic benchmark test for Python
2019-01-22 16:50:47 -08:00
Richard Belleville
3f8e15e2a4
Merge pull request #17752 from grpc/license-symlinks
...
Stop copying LICENSE files
2019-01-22 10:23:07 -08:00
Lidi Zheng
0aa05958c2
Merge pull request #17543 from lidizheng/remove-foundation-dep
...
Remove dependency of grpc.framework.foundation.callable_util
2019-01-18 11:19:12 -08:00
Richard Belleville
8609f42e15
Stop copying LICENSE files
2019-01-17 15:16:37 -08:00
Lidi Zheng
17fa4b0caf
Use monkey patch function to solve namespace package issue
2019-01-16 11:22:57 -08:00
Juanli Shen
bbe2587c39
Enable per-channel subchannel pool
2019-01-15 14:15:18 -08:00
Eric Gribkoff
30a95d354c
rename census context hooks
2019-01-15 13:04:34 -08:00
Yang Gao
75b8b1e2c6
Merge pull request #17697 from rmstar/remote_network_status_test
...
Remove network_status_tracker
2019-01-14 10:20:16 -08:00
Lidi Zheng
222db62721
Revert the compare of protobuf message to comparing encoded result
2019-01-11 17:03:51 -08:00
Eric Gribkoff
4d391b64e1
avoid AttributeError when object init fails
2019-01-11 13:35:02 -08:00
Prashant Jaikumar
95965f71d3
Remove network_status_tracker
...
Remove network_status_tracker and its unit test as it does nothing. We
can add tests for network status change in another commit.
2019-01-11 12:15:37 -08:00
Lidi Zheng
7df3475a9f
Enable Bazel Python 3 for every PR
...
* Reverted hack in _reflection_servicer_test.py
* To see if Kokoro is happy about it
2019-01-09 14:36:23 -08:00
Eric Gribkoff
8d9190c0dd
Merge pull request #17675 from ericgribkoff/really_dealloc
...
correctly name __dealloc__ method
2019-01-09 12:01:10 -08:00
Eric Gribkoff
025cb9b1e7
correctly name __dealloc__ method
2019-01-09 10:33:48 -08:00
Richard Belleville
ca5c0a8366
Switch to absolute import
2019-01-09 09:43:14 -08:00
apolcyn
26dddbb10d
Merge pull request #16187 from apolcyn/ipv6_resolver_scope_ids
...
Support named scope id's in grpc_parse_ipv6 on posix platforms
2019-01-08 14:36:20 -08:00
Lidi Zheng
0d931d9c8f
Make Python 3 pass all unit tests
2019-01-07 13:41:02 -08:00
Lidi Zheng
814c858f3f
Enable Python 3
2019-01-04 18:45:01 -08:00
Eric Gribkoff
b542cc8917
Merge pull request #17642 from ericgribkoff/restore_fork_support_flag
...
restore cython flag value to default after test
2019-01-04 15:20:10 -08:00
Eric Gribkoff
9685299cd3
Merge pull request #17641 from ericgribkoff/logging_test_fix
...
Do not reload grpc in unit tests
2019-01-04 15:19:41 -08:00
Eric Gribkoff
4b2086eecd
restore cython flag value to default after test
2019-01-04 14:12:11 -08:00
Eric Gribkoff
d79d2f1ca7
Do not reload grpc in unit tests
...
This can break subsequently run tests, including any which have already
stored references to gRPC enums (such as grpc.StatusCode.OK). The
subsequent tests will compare now be comparing the old enums to the
reloaded enums, and they will not match. This causes errors in
_metadata_code_details_test and a hang in _metadata_flags_test, when run
in sequence locally after _logging_test.
It's unclear why this has been working on Kokoro, but it is reproducible
locally and is behavior that should be avoided.
2019-01-04 14:03:31 -08:00
Sanjay Pujare
94d5587643
Regenerate projects
2019-01-03 15:35:20 -08:00
Richard Belleville
a76465c65c
Merge pull request #17600 from grpc/memory-leak
...
Free grpc_channel_args after creation
2018-12-27 16:42:43 -08:00
Richard Belleville
87e45f384c
Merge pull request #17580 from grpc/expose-version
...
Expose version
2018-12-27 16:20:11 -08:00
Richard Belleville
0daa420417
Free grpc_channel_args after creation
2018-12-27 15:21:12 -08:00
Richard Belleville
dd4830eae8
Make gRPC version string available as grpc.__version__
2018-12-27 13:50:30 -08:00
Eric Gribkoff
4e3e46df22
fix test
2018-12-27 11:53:54 -08:00
Eric Gribkoff
e678187996
use test constants, fix formatting
2018-12-27 09:39:53 -08:00
Eric Gribkoff
b74af8c70b
skip test with gevent
2018-12-26 15:04:38 -08:00
Eric Gribkoff
71e7e6ddc7
Add Watch method to health check service
2018-12-26 12:39:58 -08:00
Alexander Polcyn
00763bc3ea
Support named scope id's with ipv6 resolver on posix
2018-12-26 11:03:43 -08:00
Eric Gribkoff
b6b745f22d
disable broken gevent test
2018-12-21 15:04:42 -08:00
Eric Gribkoff
2f029bade0
Clean up server and channel objects in tests
2018-12-21 15:04:42 -08:00
Jan Tattermusch
95511c0cfd
Merge pull request #17407 from jtattermusch/interop_csharp_sni_fix
...
better testing of SNI for C-based languages
2018-12-21 11:12:46 +01:00
Lidi Zheng
102d5d88a6
Merge pull request #17570 from lidizheng/fix-complain
...
Fix Complain of Higher Version Pylint
2018-12-20 14:21:14 -08:00
Mark D. Roth
db9be19f5d
Merge pull request #16008 from markdroth/client_channel_refactor
...
Refactor request routing code out of client_channel
2018-12-20 13:42:51 -08:00
Lidi Zheng
1ac4a01a0e
Fix Complain of Higher Version Pylint
2018-12-20 12:13:08 -08:00
Lidi Zheng
97453a3d81
Merge pull request #17303 from lidizheng/sanity-python-3
...
Run pylint test in Python 3
2018-12-20 11:22:37 -08:00
Mark D. Roth
09f57c17ee
Refactor request routing code out of client_channel.
2018-12-20 10:10:19 -08:00
Jan Tattermusch
4f261a071e
do not use server override in python interop client by default
2018-12-20 14:49:54 +01:00
Eric Gribkoff
6211f4589b
removed unused traceback import
2018-12-19 08:34:13 -08:00
Lidi Zheng
71094e25c5
Remove dependency of grpc.framework.foundation.callable_util
...
* Used in _channel.py, _server.py, and _utilities.py
* This API can trace back to 4 years ago
* The code change ensures the logging info is exactly the same
2018-12-18 11:43:53 -08:00
Eric Gribkoff
1af10acdac
Merge pull request #17444 from ericgribkoff/server_dealloc
...
Refactor server deallocation
2018-12-18 10:59:04 -08:00
Lidi Zheng
cb408e70fb
Merge pull request #17535 from lidizheng/remove-fake-channelz-dependency
...
Remove the fake package dependency
2018-12-18 10:36:29 -08:00
Eric Gribkoff
3c49252d47
bazel docker image does not support ipv6
2018-12-17 21:05:13 -08:00
Eric Gribkoff
8183fe1299
fix BUILD.bazel
2018-12-17 18:29:25 -08:00
Lidi Zheng
08a90f03d4
Remove the fake package dependency && temporarily skip the Channelz tests
2018-12-17 15:11:44 -08:00
Eric Gribkoff
05d3ab2852
Address comments, improve tests
2018-12-17 15:09:46 -08:00
Eric Gribkoff
7bd03aeb0d
Revert "Revert "re-enable ExitTest""
...
This reverts commit 1bd231605a .
2018-12-17 14:24:35 -08:00
Juanli Shen
1bd231605a
Revert "re-enable ExitTest"
2018-12-17 11:21:15 -08:00
Eric Gribkoff
718084c6b4
disable fork test on windows
2018-12-17 08:53:09 -08:00
Eric Gribkoff
468ae0f486
add tracking issue
2018-12-17 08:53:09 -08:00
Eric Gribkoff
a76d72e0a6
add tests
2018-12-17 08:53:09 -08:00
Eric Gribkoff
082b63e095
Refactor server deallocation
2018-12-17 08:53:09 -08:00
Lidi Zheng
d64fd75dd8
Merge pull request #17490 from lidizheng/py-status-3
...
Add grpcio-status extension package
2018-12-14 13:03:31 -08:00
Lidi Zheng
8621bd47ad
Assign noop to build_package_protos for backward compatibility
2018-12-14 11:23:18 -08:00
Lidi Zheng
40b8ca97a1
Update docstring to make it more clear
...
* Mark API as experimental
* Rephrase the raise condition
* Add more detail to the returned object
2018-12-14 10:28:48 -08:00
Eric Gribkoff
eb65dbb030
Merge pull request #17466 from ericgribkoff/exit_tests
...
re-enable ExitTest
2018-12-14 09:06:01 -08:00
Lidi Zheng
b9cb2459ea
Include LICENSE in artifact
2018-12-13 18:07:52 -08:00
Lidi Zheng
0e2f4061f5
Fix typo && remove unecessary except
2018-12-13 17:05:39 -08:00
Lidi Zheng
45b3230ef2
Add grpcio-status extension package
...
* The new package has 2 API `from_call` and `to_status`
* Utilize the experimental API `abort_with_status`
* Add 5 unit test cases
2018-12-13 10:18:44 -08:00
Eric Gribkoff
e1c78993be
re-enable unit._exit_test.ExitTest
2018-12-12 20:15:53 -08:00
Lidi Zheng
e9cae6bba3
Merge pull request #17481 from lidizheng/py-status-2
...
New abort with grpc.Status API
2018-12-12 16:38:14 -08:00
Richard Belleville
bd142d6c46
Actually build CensusContext
2018-12-12 14:59:50 -08:00
Lidi Zheng
087d48a8bd
Update the documentation about the status code constraint
2018-12-12 14:31:52 -08:00
Lidi Zheng
fd74fcf2a0
New abort with grpc.Status API
...
* Add `abort_with_status` method in ServicerContext
* Add `Status` interface similar to the design of Details in interceptor
* Add 3 unit test cases for abort mechanism
2018-12-12 13:48:39 -08:00
Richard Belleville
e829a81118
Merge pull request #17460 from grpc/enable-census
...
Add hooks for census context propagation
2018-12-11 14:49:19 -08:00