Richard Belleville
24c562dbaa
Revert "Merge pull request #20097 from gnossen/dual_version_python_tests"
...
This reverts commit c9c847f334 , reversing
changes made to 07ba4de392 .
2019-08-29 10:47:44 -07:00
Richard Belleville
1b69538d58
Switch all tests to py2and3_test
2019-08-27 17:51:45 -07:00
Richard Belleville
426450cd82
Implement dual testing
2019-08-27 17:22:45 -07:00
Lidi Zheng
a2990a053c
Revert changes in src/python/grpcio_tests/commands.py
2019-08-26 15:57:02 -07:00
Lidi Zheng
630e6ab221
Use the correct machanism to ignore test in Windows
2019-08-26 15:55:42 -07:00
Lidi Zheng
8f403431a1
Try to disable it again
2019-08-26 13:57:20 -07:00
Lidi Zheng
750a8ab6ca
Fix import
2019-08-26 12:05:21 -07:00
Lidi Zheng
d9c0d498f2
Stop the failing tests
2019-08-26 11:33:44 -07:00
Lidi Zheng
e25e7c921d
Merge pull request #19971 from lidizheng/local
...
Expose local credentials on Python layer
2019-08-23 10:05:42 -07:00
Lidi Zheng
2c9cff30a1
Fix typo in the ignore list...
2019-08-20 14:52:20 -07:00
Richard Belleville
662919cf90
Simplify with itertools
2019-08-20 14:49:57 -07:00
Richard Belleville
d273fdf41d
Remove line of dead code
2019-08-20 14:26:22 -07:00
Richard Belleville
09a270d6ad
Gracefully handle errors from callbacks.
...
In https://github.com/grpc/grpc/issues/19910 , it was pointed out that
raising an exception from a Future callback would cause the channel spin
thread to terminate. If there are outstanding events on the channel,
this will cause calls to Channel.close() to block indefinitely.
This commit ensures that the channel spin thread does not die. Instead,
exceptions will be logged at ERROR level.
2019-08-20 14:17:38 -07:00
Lidi Zheng
853a6318b4
Correct the disable pattern
2019-08-20 08:43:32 -07:00
Richard Belleville
e0d04c9a9e
Yapf.
2019-08-19 18:09:19 -07:00
Lidi Zheng
5d7766153f
Disable local tcp test for gevent
2019-08-19 17:37:55 -07:00
Richard Belleville
f03ae6d493
Fix streaming test case
2019-08-19 16:58:56 -07:00
Richard Belleville
3d56c83a5f
Correct out-of-date docstrings
2019-08-19 14:24:45 -07:00
Richard Belleville
235b27257c
Re-add unittest.main.
2019-08-19 14:05:54 -07:00
Richard Belleville
84855a18a9
Yapf
2019-08-19 13:44:32 -07:00
Richard Belleville
b4eaccf754
Make tests deterministic
2019-08-19 13:22:58 -07:00
Richard Belleville
2a9998bc13
Properly handle exceptions in signal handlers for in-flight outgoing RPCs
2019-08-19 13:19:04 -07:00
Lidi Zheng
227a7cb47b
Adopt reviewer's suggestion
2019-08-16 15:43:06 -07:00
Lidi Zheng
5a4d46d19b
Add wait_for_ready attempt to fix gevent issue
2019-08-16 15:16:29 -07:00
Lidi Zheng
64dd532732
Make _api_test.py happy
2019-08-16 14:55:48 -07:00
Lidi Zheng
0d203d39b8
Adopt reviewers' advice
2019-08-16 11:17:35 -07:00
Lidi Zheng
5db1ae34b4
Expose local credentials on Python layer
2019-08-15 20:13:39 -07:00
Richard Belleville
d932d2368e
Merge pull request #19852 from gnossen/server_termination
...
Quit waiting for a day
2019-08-08 09:53:10 -07:00
Richard Belleville
835786a476
Merge pull request #19822 from gnossen/py_proto_library
...
Separate py_grpc_library and py_proto_library.
2019-08-07 16:33:31 -07:00
Richard Belleville
3db8828876
Add TODOs for prefix stripping
2019-08-06 15:24:09 -07:00
Richard Belleville
0aa30c6f23
Remove unintentional dependencies
2019-08-05 16:34:47 -07:00
Richard Belleville
e32980fba2
Quit waiting for a day
2019-08-05 16:19:49 -07:00
Richard Belleville
e1980a7a5a
Merge remote-tracking branch 'origin/master' into py_proto_library
2019-08-02 15:02:31 -07:00
Lidi Zheng
42e8bd21b4
Add a workaround for CPython issue 35935
2019-08-02 14:56:58 -07:00
Lidi Zheng
518b55a433
Simplify implementation
2019-08-02 14:56:58 -07:00
Lidi Zheng
59555d5b0c
Add timeout argument to wait_for_termination
2019-08-02 14:56:58 -07:00
Lidi Zheng
c4b7831f20
Make sanity test happy
2019-08-02 14:56:58 -07:00
Lidi Zheng
7257508294
Add a unit test for wait_for_termination
2019-08-02 14:56:57 -07:00
Karthik Ravi Shankar
fcb43f9dee
Regenerate projects
2019-08-01 17:34:02 -07:00
Lidi Zheng
7631e410cf
Merge pull request #19586 from gnossen/revert_revert_signal_handling
...
Revert "Merge pull request #19583 from gnossen/revert_signal_handling"
2019-08-01 17:08:31 -07:00
Richard Belleville
9ac75a6d16
Merge remote-tracking branch 'origin/master' into py_proto_library
2019-08-01 15:25:16 -07:00
Richard Belleville
7b2c8c27b0
Separate py_grpc_library and py_proto_library.
...
By popular demand, we'll now be offering separate py_grpc_library and
py_proto_library targets sharing the same interface as within google3.
This change necessitated some modifications to how we pull in our own
Python-level dependencies and how we make those available to those
pulling in our project via Bazel.
There is now a grpc_python_deps() Bazel workspace rule that pulls in the
appropriate dependencies, which should be called from the client
project's WORKSPACE file. A test has been added to the bazel/test/
directory to verify that this behavior works as intended.
It's worth noting that the protobuf repository's usage of Starlark
bind() caused a great deal of trouble in ensuring that we could also
pull in six.
This change also required a change in the way generated proto code is
imported in the channelz and health-check modules, as well as in their
associated tests. We were importing them two different ways, each
relative. This resulted in two different module objects being imported
into the process, which were incompatible. I am not sure exactly what
caused this behavior to begin, as this should have been possible before
this PR. As a workaround, I am simply trying two different absolute
imports and using the one that works. This should function both inside
and outside of Bazel environments.
2019-08-01 15:16:22 -07:00
Lidi Zheng
dbec6006a6
Fix the entry condition of Bazel hack
2019-07-16 14:15:13 -07:00
Richard Belleville
d6e3d04cf8
Capitalize comment
2019-07-09 15:57:19 -07:00
Richard Belleville
674de80123
Function in an internal environment
2019-07-09 14:12:27 -07:00
Richard Belleville
e30dcefeab
Revert "Merge pull request #19583 from gnossen/revert_signal_handling"
...
This reverts commit 1e7ec75eff , reversing
changes made to 6d62eb1b70 .
2019-07-08 14:50:49 -07:00
Richard Belleville
2014a519fc
Revert "Merge pull request #19481 from gnossen/main_thread_starvation"
...
This reverts commit 8f044f741f , reversing
changes made to 5ae9afdc55 .
2019-07-08 12:50:13 -07:00
Richard Belleville
af986fa3d5
Revert "Merge pull request #19581 from lidizheng/rf-signal"
...
This reverts commit 6d62eb1b70 , reversing
changes made to 70dd0b9b3b .
2019-07-08 12:50:03 -07:00
Lidi Zheng
06d8d07a98
Remove the unused import
2019-07-08 11:12:10 -07:00
Richard Belleville
8f044f741f
Merge pull request #19481 from gnossen/main_thread_starvation
...
Enforce a finite bound on the time gap between signal receipt and signal handler execution.
2019-07-03 16:21:02 -07:00