Commit Graph

1863 Commits

Author SHA1 Message Date
Craig Tiller dd96654721 Merge github.com:grpc/grpc into grpc_millis 2017-09-19 12:31:18 -07:00
Ken Payson 2746bd5998 Fix cython definition to match c definition
This is required to compile with Cython options that
are more strict about const correctness.
2017-09-19 12:24:40 -07:00
Muxi Yan 3f583b7829 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-transport-duplicate 2017-09-19 10:12:25 -07:00
David G. Quintas 35d31c3641 Merge pull request #12622 from dgquintas/1.6.x-master-upmerge
1.6.x master upmerge
2017-09-18 20:10:24 -07:00
Nathaniel Manista 769ec3a8fa Merge pull request #12609 from nathanielmanistaatgoogle/grpc_1_0_flag
Use grpc_1_0 flag in beta_python_plugin_test.
2017-09-18 16:55:34 -07:00
Craig Tiller 50448beab3 Merge github.com:grpc/grpc into grpc_millis 2017-09-18 13:56:51 -07:00
David Garcia Quintas b352be025f Upmerge from v1.6.x branch to master 2017-09-18 11:55:52 -07:00
Nathaniel Manista 086e95ae65 Use grpc_1_0 flag in beta_python_plugin_test
Beta code elements are not generated at all in _pb2_grpc.py files.

This duplicates a lot of the in-test code generation done in
_split_definitions_test. In a future clean-up we may want to
deduplicate the common behavior, put it in a module available to all
other tests, and do all of our testing of generated code with in-test
code generation.
2017-09-18 18:01:21 +00:00
Nathaniel Manista e963820cfd Merge pull request #12615 from nathanielmanistaatgoogle/fix_with_metaclass_usage
Fix a six.with_metaclass usage mistake.
2017-09-18 09:32:28 -07:00
Nathaniel Manista 86eb4ec0ef Fix a six.with_metaclass usage mistake
I made this mistake in 2010985ab2 but
only with yesterday's release of six 1.11.0 has it started failing
("TypeError: metaclass conflict: the metaclassof a derived class must
be a (non-strict) subclass of the metaclasses of all its bases").
2017-09-18 14:22:16 +00:00
Nathaniel Manista c8cbddae0b Merge pull request #12602 from nathanielmanistaatgoogle/grpc_1_0_flag
Overhaul protoc_plugins._split_definitions_test.
2017-09-17 08:40:00 -07:00
Nathaniel Manista 719ade3cdc Overhaul protoc_plugins._split_definitions_test
We were mistaken before when we were testing _pb2.py files being
generated in one directory and _pb2_grpc.py files being generated in
another directory. Sure, that was a thing our code generator could do,
but because of the way paths and packages work in Python it wasn't a
realistic use case for actual users.

This test now tests _pb2.py files and _pb2_grpc.py files being
generated either together or independently of one another, and if
independently, in either order. Looking forward to an eventual
py_grpc_library Bazel rule, that's what actually matters.
2017-09-16 23:42:06 +00:00
Nathaniel Manista c4add66ebd Merge pull request #12603 from nathanielmanistaatgoogle/python_sanity_test
Tweak Python sanity test.
2017-09-16 14:02:28 -07:00
Nathaniel Manista 44038eb9b6 Tweak Python sanity test
- Move it out of the "unit" package, as it's not itself a unit test.

 - Suffix the test class with "Test" as we do with every other subclass
   of unittest.TestCase.

 - Add a larger-than-we'll-need-any-time-soon maxDiff so that failures
   are fully described.

 - Relax the assertion from assertListEqual to assertSequenceEqual
   since we don't actually care whether or not the sequences being
   compared are list instances.

 - Change the order of the assertions arguments to match the
   "<expected>, <actual>" convention used in our assert*Equal calls
   elsewhere throughout the test corpus.

 - Internal implementation simplifications.
2017-09-16 18:55:53 +00:00
Nathaniel Manista 6628282499 Merge pull request #12592 from nathanielmanistaatgoogle/grpc_1_0_flag
Clean up a few more uses of gRPC code elements in _pb2.py files.
2017-09-15 14:18:56 -07:00
Nathaniel Manista 8d3cc5ff0c Clean up a few more uses of gRPC in _pb2.py files
Were this not done these would break when the default behavior of gRPC
Python Protoc Plug-In is changed to be the put-gRPC-code-elements-only-
in-_pb2_grpc.py-files behavior that currently happens only when the
grpc_2_0 flag is passed.
2017-09-15 16:57:29 +00:00
Muxi Yan 3cdc6fb17e Merge remote-tracking branch 'upstream/master' into fix-stream-compression-transport-duplicate 2017-09-14 09:46:45 -07:00
Nathaniel Manista 09a02ec040 Kill (grpcio_tests/)commands.BuildProtoModules
In 1ff429da2a it appears to have been
copied out of src/python/grpcio/commands.py and not used, and it seems
to have remained without use since.
2017-09-13 20:11:30 +00:00
Craig Tiller 50e11005a1 Merge github.com:grpc/grpc into grpc_millis 2017-09-12 15:18:54 -07:00
Jan Tattermusch a5b571e22d Merge pull request #12504 from jtattermusch/bump_1_6_1
Bump version to 1.6.1
2017-09-12 22:30:35 +02:00
Jan Tattermusch ea7807876c regenerate 2017-09-12 16:56:05 +02:00
Jan Tattermusch 4fa3364975 bump version to 1.6.1 2017-09-12 12:56:45 +02:00
Nathaniel Manista c75ae78b08 Add more Cython-layer tests
I wrote these in the course of a bug hunt. I haven't yet caught and
fixed the bug, but that's no reason not to check in perfectly good
tests. :-)
2017-09-11 19:21:34 +00:00
Mark D. Roth 09fe5de45c Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-11 11:27:58 -07:00
Muxi Yan adf6c8145e Merge remote-tracking branch 'upstream/master' into fix-stream-compression-transport-duplicate 2017-09-11 10:04:57 -07:00
Nathaniel Manista eda5a4db1e Fix metadata memory leak
The gRPC Core has two styles for passing metadata: as an integer count
along with a grpc_metadata* pointer, which is used for passing metadata
into the core, and as a grpc_metadata_array, which is used for passing
metadata out of the core. The Cython layer of gRPC Python was using a
single data structure wrapping grpc_metadata_array for both purposes,
but this was complex because the core manages the slices contained in
grpc_metadata_array objects (at least those of which it is aware), so
the Cython layer had to keep track of whether or not the core was aware
of the slices it was using (and it was also defective, leaking slices).

This is solved by realigning with the Cython layer’s intended design of
mirroring as closely as possible in Python the gRPC Core API: we use
one structure for passing metadata into the core (what is now called
cygrpc.Metadata) and second, different structure for receiving metadata
out of the core (what was called cygrpc.Metadata but is now
cygrpc.MetadataArray, reflecting that it wraps the core’s
grpc_metadata_array).

All bug fixes should contain added tests preventing regression but this
doesn't because I don't know at this time how to write a does-not-leak
test for Python that fits well into our existing body of tests. Phooey.

Thanks to Dominik Janků (djanku@email.cz) for investigation and an
earlier draft of a solution.
2017-09-09 21:42:38 +00:00
Craig Tiller fabb513fe4 Merge 2017-09-08 11:45:11 -07:00
Mark D. Roth 0aee498525 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-08 08:01:29 -07:00
David Garcia Quintas 1faa48ead3 Merge branch 'master' of github.com:grpc/grpc into rename_lr_to_plugin 2017-09-07 15:29:03 -07:00
Craig Tiller da8a169928 Merge github.com:grpc/grpc into grpc_millis 2017-09-07 14:47:26 -07:00
Mark D. Roth 8941f607d6 Merge pull request #12369 from markdroth/call_combiner
Second attempt at call combiner PR
2017-09-07 14:43:47 -07:00
Ken Payson 4fe48e6579 Build fixes 2017-09-07 12:27:34 -07:00
Craig Tiller 24f30f7ac0 Garbage collect experimental pollers 2017-09-07 10:16:53 -07:00
David Garcia Quintas 0822d331df s/load_reporting/server_load_reporting 2017-09-06 18:18:48 -07:00
Muxi Yan bf5484e785 build_project 2017-09-05 13:46:18 -07:00
Nathaniel Manista 21b71b41b6 Merge pull request #11583 from nathanielmanistaatgoogle/grpc_testing
gRPC Python test infrastructure.
2017-09-05 11:23:38 -07:00
Nathaniel Manista 7c85caeaa8 gRPC Python test infrastructure
(The server-related third part of it.)
2017-09-05 01:01:20 +00:00
Ken Payson d27504f09a Changes 2017-09-01 15:06:30 -07:00
Mark D. Roth 2caf021772 Change plugin credentials API to support both sync and async modes. 2017-09-01 15:04:13 -07:00
Craig Tiller ee090ec975 Merge github.com:grpc/grpc into wc 2017-09-01 10:30:11 -07:00
Mark D. Roth 764cf04a13 Revert "Revert "Implement call combiner""
This reverts commit bf19961d0a.
2017-09-01 09:00:06 -07:00
Craig Tiller ccad38227f Merge github.com:grpc/grpc into stats 2017-08-31 12:23:53 -07:00
Mark D. Roth bf19961d0a Revert "Implement call combiner" 2017-08-29 16:59:07 -07:00
Craig Tiller 03c908fc9e Merge github.com:grpc/grpc into stats 2017-08-29 12:34:10 -07:00
Craig Tiller d9b82bdecb Merge github.com:grpc/grpc into grpc_millis 2017-08-29 12:16:56 -07:00
David Garcia Quintas dfde288148 1.6.0-pre1 -> 1.6.0 2017-08-29 11:31:50 -07:00
Mark D. Roth 76e264b8df Implement call combiner. 2017-08-25 09:03:33 -07:00
David Garcia Quintas 3499960070 Renamed load_reporting.{c,h} to load_reporting_plugin.{c,h} 2017-08-24 14:09:47 -07:00
Ken Payson f5f5ed0305 Fix syntax error on classifiers 2017-08-24 11:46:03 -07:00
Mehrdad Afshari 58c61b5520 Unskip reflection unit test since proto is fixed 2017-08-22 00:58:07 +00:00
David Garcia Quintas 1775ef91d2 Version bump to 1.6 2017-08-16 21:01:30 -07:00
David Garcia Quintas 713597f1cd Master version bump to 1.7.x 2017-08-16 20:59:05 -07:00
jiangtaoli2016 25d6fd82d1 split tsi library into two 2017-08-09 11:15:04 -07:00
jiangtaoli2016 32f66e8a81 Update build rule 2017-08-07 13:33:37 -07:00
Jiangtao Li 0211cfb277 Revert "Revert "Add TSI zero-copy frame protector"" 2017-08-07 11:24:07 -07:00
Jiangtao Li f5504a3e43 Revert "Add TSI zero-copy frame protector" 2017-08-07 10:48:46 -07:00
jiangtaoli2016 72eeb3c6dd split tsi into two libraries: tsi_interface and tsi 2017-08-04 14:40:51 -07:00
jiangtaoli2016 f3f7d3ba6c Merge branch 'master' into tsi_grpc 2017-08-04 13:45:38 -07:00
Nathaniel Manista 06b3f4dd5e Merge pull request #11964 from nathanielmanistaatgoogle/grpc_testing
gRPC Python test infrastructure.
2017-08-04 08:13:50 -07:00
Nathaniel Manista 2010985ab2 gRPC Python test infrastructure
(The channel-related second part of it.)
2017-08-03 22:38:40 +00:00
Mark D. Roth f9bf428489 Add support for service configs to c-ares resolver. 2017-08-03 14:47:23 -07:00
jiangtaoli2016 3aaa5ea028 minor fix 2017-08-02 13:36:50 -07:00
jiangtaoli2016 7001bc279b Add TSI zero-copy frame protector 2017-07-28 18:26:21 -07:00
ncteisen fb193a1e2f Merge branch 'master' of https://github.com/grpc/grpc into flow-control-v3 2017-07-28 15:47:32 -07:00
Nathaniel Manista b414268580 Merge pull request #11901 from nathanielmanistaatgoogle/grpc_testing
gRPC Python test infrastructure.
2017-07-25 19:29:32 -07:00
Ken Payson 9c420447fa Add classifiers to package details 2017-07-25 12:06:46 -07:00
Nathaniel Manista 69b7231776 gRPC Python test infrastructure
(The time-related first part of it, anyway.)
2017-07-25 18:19:35 +00:00
Craig Tiller 2014a37a5c Fix projects 2017-07-21 15:36:11 -07:00
Craig Tiller 4deeb65805 Merge github.com:grpc/grpc into grpc_millis 2017-07-20 09:50:25 -07:00
Craig Tiller b89304652b Build simplification 2017-07-19 16:24:19 -07:00
ncteisen 268a82398c Pull flow control into one module 2017-07-18 17:06:57 -07:00
Craig Tiller 280866817f Add a simple stats framework to gRPC C core 2017-07-18 14:22:19 -07:00
Mark D. Roth ea8f591b9d Merge pull request #11607 from yihuazhang/tsi_init
Add GTS plugin
2017-07-18 07:38:30 -07:00
Nathaniel Manista be803dc687 Merge pull request #11859 from nathanielmanistaatgoogle/gitignore
Narrow src/python/.gitignore to only what it needs to ignore.
2017-07-17 17:15:27 -07:00
Craig Tiller c0df1c0f9a Compiling again 2017-07-17 16:12:33 -07:00
Nathaniel Manista 1c0b20dda7 Narrow .gitignore to only what it needs to ignore
"proto" and "*.egg-info/" are no longer generated, "src/" can be
narrowed to "/src/", and "*_pb2.py" and "*_pb2_grpc.py" are covered by
.gitignore files in parent directories.
2017-07-17 20:30:32 +00:00
Yihua Zhang 1435bfc718 Add GTS plugin 2017-07-17 11:20:51 -07:00
Muxi Yan 0086d02161 Merge pull request #11189 from muxi/stream_compression
Implement stream compression lib module
2017-07-17 11:10:41 -07:00
Craig Tiller d996379030 Reset OWNERS state 2017-07-17 10:54:07 -07:00
Vijay Pai fd82a6cb4f Merge pull request #11145 from vjpai/inproc3
In-process transport
2017-07-15 20:05:26 -07:00
Vijay Pai 3d7d5f4ed2 Create inproc transport, add relevant tests, exclude irrelevant tests 2017-07-14 16:23:54 -07:00
Nicolas "Pixel" Noble 46569f238c Adding a few owners for /src/python/grpcio/grpc_core_dependencies.py 2017-07-14 17:41:47 +02:00
Mehrdad Afshari 76a316cb1f Add `set noparent` to Python OWNER files 2017-07-13 16:19:17 -07:00
Mehrdad Afshari b03e5cbb0f Add @mehrdada to python OWNERS 2017-07-13 16:09:22 -07:00
Nicolas Noble 9877189e45 Merge pull request #11310 from nicolasnoble/import
Import mutations.
2017-07-13 13:39:58 -07:00
Craig Tiller e476f7d33f Strawman OWNERS --> CODEOWNERS script 2017-07-13 08:52:00 -07:00
Mehrdad Afshari 2ca8282846 Merge pull request #11738 from mehrdada/canonica-urls
Use https://grpc.io consistently as the canonical URL
2017-07-11 11:41:14 -07:00
Ken Payson a4710a090d Revert "Remove lockfree-stack implementation that is no longer used"
This reverts commit 3d04e025bc.
2017-07-10 16:49:59 -07:00
Mehrdad Afshari bb3d95b643 Use https://grpc.io consistently as the canonical URL 2017-07-10 22:24:28 +00:00
Mehrdad Afshari 976eb7c4b4 Fetch grpc.io/release over https 2017-07-10 15:07:33 -07:00
Robert Bradshaw b0d6f115dc Remove declaration of missing field. 2017-07-10 10:33:23 -07:00
Muxi Yan e87a7e1a47 Move stream_compression to src/core/lib/compression 2017-07-05 10:09:03 -07:00
Muxi Yan c1f837ce79 Make stream compression module 2017-07-05 10:08:58 -07:00
Nicolas "Pixel" Noble 5d80dc4985 Merge branch 'master' of https://github.com/grpc/grpc into import 2017-06-26 22:01:11 +02:00
Nathaniel Manista 6613f60166 Enable wrong-import-order lint 2017-06-24 21:13:24 +00:00
Nathaniel Manista 37c83ffbed Enable redefined-variable-type lint 2017-06-24 21:03:21 +00:00
kpayson64 9cd18311a0 Merge pull request #11412 from kpayson64/upgrade_boringssl
Upgrade boringssl
2017-06-20 12:09:21 -07:00
Vijay Pai 3d04e025bc Remove lockfree-stack implementation that is no longer used 2017-06-19 15:32:44 -07:00
Ken Payson f8d6fb7a94 Update boringssl 2017-06-15 17:35:58 -07:00
Mehrdad Afshari 8fd84cfa07 Update python reflection tests to cover the higher level API 2017-06-13 14:14:07 -07:00
Craig Tiller dc16855649 Merge pull request #11336 from ctiller/ALL-the-things
Roll-up of threading changes
2017-06-08 16:03:36 -07:00
Yuchen Zeng 8f3d02106b Merge pull request #11237 from y-zeng/srv_record
Support grpclb address in the c-ares resolver
2017-06-08 13:17:02 -07:00
Craig Tiller b3899fd18b Merge github.com:grpc/grpc into ALL-the-things 2017-06-08 07:54:10 -07:00
Jan Tattermusch 4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Craig Tiller 1c8a90473d Merge github.com:grpc/grpc into ALL-the-things 2017-06-07 13:00:06 -07:00
David Garcia Quintas 87d5a3130d Implement LB policy updates 2017-06-06 19:45:58 -07:00
Yuchen Zeng b89b5011ec Merge remote-tracking branch 'upstream/master' into srv_record 2017-06-06 13:26:36 -07:00
Yuchen Zeng 4ebace71b0 Fix windows build, no_logging tests, dns_resolver_test 2017-06-05 20:47:02 -07:00
Craig Tiller 71005b169a Merge branch 'selectivity' into ALL-the-things 2017-06-02 14:36:41 -07:00
Mehrdad Afshari 5bc11d55d4 Expand pylint to grpc_health and grpc_reflection 2017-06-01 14:26:12 -07:00
David Garcia Quintas aebcdbd732 master bumped to 1.5.x 2017-05-30 14:14:27 -07:00
Michael Lumish 9baf4b19f0 Merge pull request #11309 from murgatroid99/master_1.3.x_upmerge
Master 1.3.x upmerge
2017-05-30 13:53:40 -07:00
Craig Tiller 7ebf31bcb2 Merge branch 'thread_pool' into ALL-the-things 2017-05-30 12:50:51 -07:00
Nicolas "Pixel" Noble 7bc55fdaa3 Merge remote-tracking branch 'ctiller/build-wtf' into import 2017-05-26 00:32:47 +02:00
murgatroid99 c18b9069cd Merge remote-tracking branch 'upstream/v1.3.x' into master_1.3.x_upmerge 2017-05-25 15:13:27 -07:00
kpayson64 0bd14cc89d Merge pull request #11306 from kpayson64/python_reflection
Fix Python reflection arguments
2017-05-25 13:15:42 -07:00
Ken Payson f3bb34935d Fix Python reflection arguments 2017-05-25 12:12:13 -07:00
Vizerai d74dbd3889 Merge branch 'master' of https://github.com/Vizerai/grpc into intrusive_hash_map 2017-05-23 14:10:10 -07:00
Jan Tattermusch bbfdbb19c0 bump version to 1.3.6 2017-05-23 22:48:45 +02:00
kpayson64 866190fab7 Merge pull request #11154 from kpayson64/hack_for_disconnects
Reconnect disconnected channels automatically
2017-05-22 11:07:51 -07:00
Ken Payson 8f7bc54ff2 Reconnect disconnected channels automatically 2017-05-22 10:07:25 -07:00
Ken Payson c0ce2cdf00 Update version to 1.3.5 2017-05-19 17:47:49 -07:00
Alexander Polcyn 92eb7fbc05 Bump to version 1.3.4 2017-05-18 11:49:15 -07:00
Craig Tiller 3085aa468e Merge github.com:grpc/grpc into thread_pool 2017-05-17 13:04:07 -07:00
Jan Tattermusch 90224ba893 Merge pull request #11113 from jtattermusch/python_artifact_polling_trace
Try fixing python artifact build on Windows
2017-05-17 09:05:57 +02:00
Craig Tiller 321b7d8fb0 Merge github.com:grpc/grpc into thread_pool 2017-05-16 13:42:07 -07:00
Muxi Yan a57d3c8120 Merge pull request #11138 from grpc/revert-11121-revert-10849-backward-compat
Revert "Revert "Implement Server Backward Compatibility""
2017-05-16 09:58:22 -07:00
Jan Tattermusch de030a35a2 regenerate projects 2017-05-16 18:20:26 +02:00
Ken Payson 16f76d2092 Bump to version 1.3.3 2017-05-16 08:54:22 -07:00
kpayson64 6b7f893b58 Merge pull request #11087 from kpayson64/update_python_auth
Update Python interop tests to use google-auth package
2017-05-15 23:34:47 -07:00
Craig Tiller a3eac51e1e Const correctness? for cython 2017-05-15 14:24:00 -07:00
Muxi Yan 29ff4665a8 Revert "Revert "Implement Server Backward Compatibility"" 2017-05-15 10:27:55 -07:00
Nicolas Noble 7edcce2147 Revert "Implement Server Backward Compatibility" 2017-05-12 15:35:20 -07:00
Muxi Yan a2d9d48a88 Merge pull request #10849 from muxi/backward-compat
Implement Server Backward Compatibility
2017-05-12 12:17:36 -07:00
Ken Payson 937d96d051 Update Python interop tests to use google-auth package
The oauth2client test dependency is still needed as it used by
the beta API unit tests.
2017-05-12 11:11:21 -07:00
Craig Tiller ee4b145213 Remove workqueue, covered_by_poller as concepts, get Mac build up 2017-05-12 10:56:03 -07:00
kpayson64 45b89fb11c Merge pull request #10993 from kpayson64/auth_context_python
Auth context python
2017-05-11 11:02:40 -07:00
Ken Payson 3ca8134514 Expose Auth Context in Python 2017-05-11 11:01:57 -07:00
Stanley Cheung 448a11d616 Bump to version 1.3.2 2017-05-10 15:23:29 -07:00
Craig Tiller a7785ba22e Merge github.com:grpc/grpc into uberpoll 2017-05-10 13:36:20 -07:00
kpayson64 449bf017e1 Merge pull request #11048 from kpayson64/fix_py_artifact
Fix python artifact build
2017-05-10 10:25:28 -07:00
Craig Tiller 6e86c463aa Merge github.com:grpc/grpc into uberpoll 2017-05-10 07:24:57 -07:00
Stanley Cheung 0afa9abb79 Bump to 1.3.2-pre1 2017-05-09 19:08:26 -07:00
Ken Payson b91c5fb8ba Fix python artifact build 2017-05-09 13:28:32 -07:00
kpayson64 a02b66a6cd Merge pull request #10995 from kpayson64/upgrade_protobuf
Upgrade protobuf to 3.3.0
2017-05-09 12:56:27 -07:00
Craig Tiller 581c0e479a Merge github.com:grpc/grpc into uberpoll 2017-05-09 08:19:13 -07:00
ncteisen fe9da0b80a Regain sanity 2017-05-08 18:13:20 -07:00
Ken Payson 029090628d Upgrade protobuf to 3.3.0 2017-05-08 12:18:12 -07:00
Craig Tiller d868a07d7c Merge github.com:grpc/grpc into uberpoll 2017-05-07 20:02:30 -07:00