Commit Graph

356 Commits

Author SHA1 Message Date
Craig Tiller da179ce598 Rollback gpr deletion 2016-02-09 12:01:53 -08:00
Nathaniel Manista fa6cad701c grpc_set_ssl_roots_override_callback for Python 2016-02-09 19:02:56 +00:00
David Garcia Quintas 7e46618897 Merge branch 'master' of github.com:grpc/grpc into grpclb_api 2016-02-08 20:07:19 -08:00
Nicolas "Pixel" Noble 1935c3655c Flagging master as 0.14.0-dev. 2016-02-09 01:54:56 +01:00
Nicolas "Pixel" Noble cda4bad582 Flagging 0.13 as pre1. 2016-02-09 00:44:23 +01:00
Nicolas Noble 824a0903a5 Merge pull request #5129 from ctiller/version_number
build.yaml centric versioning
2016-02-08 15:12:47 -08:00
Nathaniel Manista 757c157d86 Merge pull request #5134 from soltanmm/cleaners
Clean-up Python linux-binary installation.
2016-02-08 14:57:59 -08:00
Masood Malekghassemi 35afe4afaf Fall back to building if GCS cannot be reached 2016-02-08 14:51:31 -08:00
Masood Malekghassemi 6598ce16db Move os.environ to module-level 2016-02-08 14:51:04 -08:00
Alistair Veitch e28e426af5 Merge branch 'master' into base_log 2016-02-08 13:08:24 -08:00
Craig Tiller f008f067f8 build.yaml centric versioning 2016-02-08 12:48:03 -08:00
Masood Malekghassemi 064d37d380 Fix GCS URL for Python 2016-02-08 12:19:24 -08:00
Craig Tiller 55e813f946 Merge pull request #5088 from murgatroid99/core_long_int64_t
Replace 'long' with 'int64_t' in public core headers
2016-02-08 10:22:42 -08:00
Nicolas "Pixel" Noble 1be92658ef Versionning Ruby from build.yaml, and regenerating broken files after census merge. 2016-02-06 09:30:19 +01:00
Craig Tiller 5c04760d46 Change default on Python install option 2016-02-05 14:25:56 -08:00
Alistair Veitch ba6065f016 merge 2016-02-05 13:27:42 -08:00
murgatroid99 7a55684a13 Clang format and fix copyrights 2016-02-05 11:33:30 -08:00
murgatroid99 309830f6b8 Replace 'long' with 'int64_t' in public core headers 2016-02-05 11:30:00 -08:00
Masood Malekghassemi a7a50785be Don't die on missing win32 resources on non-win32 2016-02-04 14:21:09 -08:00
Masood Malekghassemi f751b0b549 Use envvar for binary repository 2016-02-04 14:21:09 -08:00
Bogdan Drutu e4fdcd9242 Merge pull request #5013 from a-veitch/tag_set_to_context
Change all instances of census_tag_set to census_context
2016-02-04 12:42:35 -08:00
Craig Tiller 411da52f1d Merge pull request #5064 from nicolasnoble/win32-python
Win32 python
2016-02-04 10:39:38 -08:00
Masood Malekghassemi 5260670e00 Merge pull request #4944 from soltanmm/patch
Clean up custom gRPC Python binaries for Linux
2016-02-04 10:30:24 -08:00
Masood Malekghassemi 10509a28c7 Fix Python Windows build 2016-02-04 17:18:18 +01:00
Masood Malekghassemi ab7055a0e7 Format a line 2016-02-04 17:18:18 +01:00
Nicolas "Pixel" Noble 7dc4b7099a Dirty hack to get 32 bits loading in the cython core. 2016-02-04 17:18:17 +01:00
Nicolas "Pixel" Noble e018f9f2e8 Almost there. 2016-02-04 17:18:17 +01:00
Masood Malekghassemi c9c53eeba5 Sundry fixes 2016-02-04 17:18:17 +01:00
Masood Malekghassemi df1e07e5c1 Add shim for Python's gRPC core on Windows 2016-02-04 17:18:11 +01:00
Alistair Veitch 6f2b8993fd merge 2016-02-03 09:02:46 -08:00
Alistair Veitch 85afe71d4c initial commit 2016-02-02 17:58:15 -08:00
Nicolas "Pixel" Noble 89d8ed1b91 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable
Conflicts:
	BUILD
	Makefile
	binding.gyp
	build.yaml
	gRPC.podspec
	grpc.gemspec
	package.json
	src/python/grpcio/grpc_core_dependencies.py
	templates/Makefile.template
	tools/doxygen/Doxyfile.core.internal
	tools/run_tests/sources_and_headers.json
	vsprojects/vcxproj/gpr/gpr.vcxproj
	vsprojects/vcxproj/gpr/gpr.vcxproj.filters
2016-02-03 01:27:46 +01:00
Alistair Veitch 75d5c0f024 post merge 2016-02-02 09:43:02 -08:00
Craig Tiller 841c726140 Merge github.com:grpc/grpc into sceq 2016-02-02 09:23:22 -08:00
Craig Tiller 4bef7cebe6 Use old memcpy for wrappers 2016-02-02 08:38:43 -08:00
Nicolas "Pixel" Noble 8382829f30 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable 2016-02-01 20:18:59 +01:00
Craig Tiller f09fb7e4b0 Merge pull request #4979 from nicolasnoble/win32_subprocess
Adding windows support for gpr subprocesses.
2016-02-01 07:35:10 -08:00
Craig Tiller cbc4629c52 Merge pull request #4978 from nicolasnoble/alarming
Fixing, using and testing alarm code.
2016-01-31 18:11:03 -08:00
Craig Tiller 9734b9c355 Merge pull request #4982 from nicolasnoble/census-placeholders
Creating placeholders for missing census functions.
2016-01-31 18:09:47 -08:00
Nicolas "Pixel" Noble cf37cb9f9e Merge branch 'census-placeholders' into make-ruby-installable
Conflicts:
	package.json
	tools/doxygen/Doxyfile.core.internal
2016-01-31 09:34:46 +01:00
Nicolas "Pixel" Noble fa132c2f56 Actually moving this to the proper place. 2016-01-31 09:31:15 +01:00
Nicolas "Pixel" Noble 78825caeeb Merge branch 'win32_subprocess' into make-ruby-installable
Conflicts:
	BUILD
	Makefile
	binding.gyp
	build.yaml
	gRPC.podspec
	grpc.gemspec
	src/python/grpcio/grpc_core_dependencies.py
	tools/run_tests/sources_and_headers.json
	vsprojects/vcxproj/gpr/gpr.vcxproj
	vsprojects/vcxproj/gpr/gpr.vcxproj.filters
2016-01-31 07:08:20 +01:00
Nicolas "Pixel" Noble 4fba286e4d Adding windows support for gpr subprocesses. 2016-01-31 07:00:53 +01:00
Nicolas "Pixel" Noble bf192eff56 Merge branch 'alarming' into make-ruby-installable
Conflicts:
	tools/run_tests/sources_and_headers.json
2016-01-31 06:25:39 +01:00
Nicolas "Pixel" Noble d5d83aa33f Fixing, using and testing alarm code. 2016-01-31 06:21:49 +01:00
Masood Malekghassemi 5080909b4c Pass undiagnosed errors to the user unadulterated 2016-01-30 14:27:28 -08:00
Masood Malekghassemi 097070fe20 Diagnose missing Cython-generated files 2016-01-30 14:26:49 -08:00
Nicolas "Pixel" Noble 9d476392b7 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable 2016-01-30 21:43:00 +01:00
Nicolas "Pixel" Noble 09121799b0 Removing gpr as a separated library. 2016-01-30 09:34:22 +01:00
Masood Malekghassemi 62cc911188 Fix Python diagnostics dying on bad diagnosis 2016-01-28 14:56:40 -08:00
David Garcia Quintas fb01883859 Merge branch 'master' of github.com:grpc/grpc into grpclb_api 2016-01-28 14:39:54 -08:00
Craig Tiller 8c50db09b9 Merge github.com:grpc/grpc into sceq 2016-01-28 11:38:21 -08:00
Masood Malekghassemi ece40b263d Clean up custom gRPC Python binaries for Linux
Adds doc-string to EggNameMixin, renames the custom install flag to make
it a bit clearer that the mechanism isn't necessarily limited to linux
(though certainly we'd like it to be; but that's a decision to be made
at the level of the build system and what is made available on GCS, not
here).
2016-01-28 11:01:19 -08:00
Masood Malekghassemi 86363e540e Merge pull request #4884 from soltanmm/deal-with-it
Enable binary linux distributions for Python
2016-01-27 15:43:43 -08:00
Masood Malekghassemi 154b0eeaa9 Enable binary linux distributions for Python 2016-01-27 14:42:08 -08:00
Nathaniel Manista c1739ea842 Implement three missing face test methods 2016-01-27 18:50:40 +00:00
Nathaniel Manista 6e1dd9ad06 Fix reporting unexpected abortions in event tests
Writing "<format string containing one directive> % <expression>"
instead of "<format string containing one directive> % (<expression>,)"
is always a problem; the particular problem in this case came from
face.Abortion being a subclass of a class created with
collections.namedtuple.
2016-01-27 18:25:36 +00:00
Nathaniel Manista 8fff90d3a9 Drop use of functools.wrap in logging_pool
functools.wrap is only warranted to work with functions and methods but
logging_pool is warranted to work with callable behaviors, so using
functools.wrap has been wrong all along.

The particular incompatibility motivating this correction is that
callable objects do not have a "__name__" attribute.
2016-01-26 21:39:24 +00:00
Nathaniel Manista a847f51c94 Move parallel RPC code to correct test method
In 4a9b1c6988 I mistakenly added statements to test
test_constants.PARALLELISM RPCs made in parallel to the
testSequentialInvocations test method rather than the
testParallelInvocations test method. How embarrassing!
2016-01-26 21:20:58 +00:00
Masood Malekghassemi 5fec8b333a Add missing import
I have no idea how this mistake got through.
2016-01-25 16:16:50 -08:00
Masood Malekghassemi caf164ac54 Merge pull request #4821 from soltanmm/install-doctor
Add compiler error diagnostics to Python setup
2016-01-25 13:04:30 -08:00
Craig Tiller 8b052112f2 Merge github.com:grpc/grpc into sceq 2016-01-25 08:09:23 -08:00
Craig Tiller d8e6f8d4f5 Merge github.com:grpc/grpc into sceq 2016-01-22 19:24:23 -08:00
Masood Malekghassemi 0cc27920f8 Integrate zlib into Python distribution 2016-01-22 16:39:24 -08:00
Masood Malekghassemi 58a1dc2bb3 Add compiler error diagnostics to Python setup 2016-01-22 16:11:33 -08:00
Bogdan Drutu fc65bf07e6 Merge pull request #4750 from a-veitch/tag_set
Census Tag Set API and implementation
2016-01-22 15:34:34 -08:00
Nathaniel Manista ac9e1cbe3d Merge pull request #4830 from soltanmm/going-slightly-mad
Fix broken Python package builds.
2016-01-22 11:44:40 -08:00
Masood Malekghassemi 14a0a93c79 Fix broken Python package builds
I'd been incorrectly using indirection against Cython's build_ext
module.
2016-01-21 20:13:24 -08:00
Nathaniel Manista 4a9b1c6988 Fix a defect in RPC Framework Core
On the service-side, an operation isn't successfully completed with
just the conclusion of transmission to the other side; local ingestion
of the status and code must be completed as well before termination
callbacks are called.
2016-01-21 22:26:05 +00:00
David Garcia Quintas 12fc53f21f Merge branch 'master' of github.com:grpc/grpc into grpclb_api 2016-01-20 15:42:17 -08:00
Nathaniel Manista be31d46865 A test of the Cython Channel
This exposes a bug somewhere in how channel connectivity events get
published on completion queues. Investigation remains active.
2016-01-20 00:01:34 +00:00
Craig Tiller b22aeae462 Merge github.com:grpc/grpc into sceq 2016-01-15 21:13:52 -08:00
Craig Tiller 694cf8b0d2 Shared subchannel sketch 2016-01-15 21:13:25 -08:00
Alistair Veitch 0923126cf8 Merge branch 'master' into tag_set 2016-01-15 17:57:56 -08:00
David Garcia Quintas aa9b01c7c0 Merge branch 'master' of github.com:grpc/grpc into grpclb_api 2016-01-15 14:19:17 -08:00
Craig Tiller 21c0ebf6d4 Merge pull request #4653 from murgatroid99/release-0_12_master_merge
Release 0 12 master merge
2016-01-14 12:47:37 -08:00
David Garcia Quintas 88447cbbad Merge branch 'master' of github.com:grpc/grpc into grpclb_api 2016-01-14 11:38:21 -08:00
Masood Malekghassemi 1d17781795 Check compiler versions at Python setup time 2016-01-14 06:55:06 -08:00
Masood Malekghassemi 59994bcc3e Warn on Python proto module build failure 2016-01-14 06:55:06 -08:00
murgatroid99 a97b531d0f Generated projects again 2016-01-13 11:43:01 -08:00
Alistair Veitch 0f690721bd Move encode/decode API into census.h 2016-01-13 09:08:38 -08:00
David Garcia Quintas 23f28a9b2c Merge branch 'master' of github.com:grpc/grpc into grpclb_api 2016-01-12 15:41:59 -08:00
David Garcia Quintas bcc6d0118b Updated grpc_core_dependencies.py 2016-01-12 10:49:43 -08:00
murgatroid99 3466c4b55d Updated copyrights 2016-01-12 10:26:04 -08:00
Nathaniel Manista 4cdb6247a6 Merge pull request #4457 from soltanmm/plate-tectonics
Include core in Python distribution.
2016-01-12 08:26:52 -08:00
Masood Malekghassemi 387e116fd6 Use BoringSSL for Python gRPC 2016-01-11 11:32:42 -08:00
Masood Malekghassemi 6d2ef17f30 Use default gRPC roots.pem if none provided 2016-01-11 11:32:42 -08:00
Hyunjun Kim 34206222f0 Fix docstring typos in python grpc interfaces 2016-01-08 12:21:18 +09:00
Masood Malekghassemi 0467295ee6 Fail test build if protoc can't be found 2016-01-07 09:43:42 -08:00
Masood Malekghassemi 116982ea89 Include core in Python distribution 2016-01-07 09:43:42 -08:00
jboeuf bbb94bd6fc Merge pull request #4562 from ctiller/ints
Switch to using C99 types for fixed size integers
2016-01-06 12:50:53 -08:00
Masood Malekghassemi 8525354f4f Use stdint for Cython code 2016-01-04 15:46:08 -08:00
Nathaniel Manista 27f62432f5 Remove ceiling on required protobuf version
This is possible now that https://github.com/google/protobuf/issues/855
is fixed (or at least appears to be fixed).
2016-01-04 19:17:09 +00:00
Masood Malekghassemi f872c6aa9f Fix Python test timeouts
We've been assuming that the server upon invoking start was started.
This has been false; invoking start means that the server will
eventually be started, and to make this reliably observable requires
passing control to core.
2015-12-21 13:07:39 -08:00
Masood Malekghassemi 6b09780f1a Fix typo in Python test harness 2015-12-16 23:27:01 -08:00
Masood Malekghassemi b5a1806029 Python version bump 2015-12-14 18:42:26 -08:00
Craig Tiller 46ab778aa0 Merge pull request #4397 from jtattermusch/tv_sec_64bit
Make gpr_timespec platform agnostic.
2015-12-11 13:11:52 -08:00
Jan Tattermusch a6b2c4ce46 Get rid of SSL_CERT_FILE env entirely 2015-12-10 17:09:06 -08:00
Jan Tattermusch 88086373db make gpr_timespec platform agnostic 2015-12-10 15:04:59 -08:00
Masood Malekghassemi 0f1bf32387 Add metadata auth plugin API support 2015-12-07 17:10:55 -08:00
Masood Malekghassemi 25ef5c8fad Unskip cygrpc tests 2015-12-07 17:10:55 -08:00
Masood Malekghassemi ae873a60f5 Remove unnecessary adapter files 2015-12-07 17:10:55 -08:00
Masood Malekghassemi f21dc7edfb Migrate to Cython 2015-12-07 17:10:55 -08:00
Masood Malekghassemi aed42a895e Update Cython gRPC code 2015-12-07 17:10:55 -08:00
Masood Malekghassemi 13ee18261a Use value equality for status codes 2015-12-07 17:10:55 -08:00
Masood Malekghassemi eaa7d203b5 Fix interop Python test invocation
The ideal fix would be to have a tox test command for running the
interop server and client.
2015-12-07 15:52:46 -08:00
Masood Malekghassemi 070b91c3f2 Generate coverage HTML reports for Jenkins 2015-12-04 17:26:07 -08:00
Masood Malekghassemi d00241e65c Use tox 2015-12-04 17:26:07 -08:00
Masood Malekghassemi 7566c9a85d Make Python testing predictable again
This reorganizes the Python code, scraps the current testing
infrastructure, and implements a simple test discovery and run script
based on the standard Python unittest library so we can trust that our
tests are running.
2015-12-03 16:59:14 -08:00
Nathaniel Manista 2533365bf4 Fixes to stub and server lifecycle
Context management is implemented.

Stub deletion now cancels all RPCs immediately.
2015-12-03 00:55:25 +00:00
Nathaniel Manista e0abeeaa6d Migrate _termination_action into _End
For a termination action to properly mark an _End as having stopped it
must clear the _End's _cycle attribute. To be able to do that the
termination action must hold a reference to the _End instance.
Migrating the _termination_action behavior that creates termination
actions into the scope of the _End instance is the best way to afford
the needed instance reference.
2015-12-03 00:45:56 +00:00
Julien Boeuf 232d625a84 Merge branch 'master' of github.com:grpc/grpc into core_creds_api_change 2015-11-17 20:55:13 -08:00
Jan Tattermusch 7fc77e06ba Merge pull request #4139 from grpc/release-0_11
Merge release-0_11 into master
2015-11-18 00:22:04 +00:00
Julien Boeuf 675b5ce861 Merge branch 'master' of github.com:grpc/grpc into core_creds_api_change 2015-11-17 15:05:45 -08:00
Masood Malekghassemi 7fdfe1afd8 Bandaid over differences in the C API for Python credentials 2015-11-17 13:49:33 -08:00
Masood Malekghassemi 36297accb6 Update Python C wrapping layers to new credentials API 2015-11-04 15:17:31 -08:00
Nathaniel Manista 51741d20e3 Add a useful __str__ method to face exceptions 2015-11-04 21:47:31 +00:00
Masood Malekghassemi d292131093 Remove alpha tests
Warnings will be emitted when trying to import through alpha packages.
2015-10-26 13:51:33 -07:00
Masood Malekghassemi 5a65bcd48c Bring Cython tests back online 2015-10-07 16:19:45 -07:00
Nathaniel Manista d57411e2a5 Merge pull request #3414 from soltanmm/relup
Update Python release number to 0.11.0b1.
2015-09-22 15:24:43 -07:00
Masood Malekghassemi 6ee0bb1e74 Update Python release to 0.11.0b1 2015-09-22 13:54:22 -07:00
Masood Malekghassemi 2449d312ee Merge pull request #3323 from nathanielmanistaatgoogle/dependencies
Further maintenance of Python dependencies
2015-09-22 11:43:46 -07:00
Nathaniel Manista 8c2c44b5c6 Fix erroneous attribute name.
This defect was introduced in 9e4d0610ea. I had thought that
this code was exercised in tests but it is bypassed by the use of
grpc_test.beta.test_utilities.not_really_secure_channel. :-(
2015-09-22 18:19:02 +00:00
Nathaniel Manista a1880228aa Further maintenance of Python dependencies
These changes probably should have been in 3b0fefb246 but
were overlooked.
2015-09-10 22:16:04 +00:00
Masood Malekghassemi 38fc0bb3d5 Fix Python docgen
The old package directory handling was stale in grpcio's setup.py
command support module and docgen had a typo.
2015-09-10 08:57:40 -07:00
Masood Malekghassemi 6c99ad0b76 Python version set to 0.11.0b0 2015-09-10 08:30:51 -07:00
Masood Malekghassemi 46ac611f1d Merge pull request #3279 from nathanielmanistaatgoogle/context-management
Make servers and stubs context managers
2015-09-09 00:18:25 -04:00
Nathaniel Manista 3b0fefb246 Beta maintenance of Python dependencies
(1) Move dependency on protobuf from grpcio to grpcio_test. While the
most-commonly-foreseen use case of grpcio makes use of protobuf,
technically protobuf is not strictly needed and there's no actual
in-code relationship between grpcio and protobuf.

(2) Loosen the dependency on protobuf from ==3.0.0a3 to >=3.0.0a3.

(3) Update all references to 0.10.0* to 0.11.0.

(4) Alphabetize the grpcio_test dependencies.
2015-09-08 19:13:22 +00:00
Nathaniel Manista c824eb4e90 Make servers and stubs context managers
Servers and stubs were context managers in the Alpha API; they may not
need to be in the Beta API but it's easy enough to do, eases migration,
and probably helps some use cases.

For now the stub is given empty __enter__ and __exit__ methods; we can
always come back and implement the actual work of context management in
a later change.
2015-09-08 19:03:18 +00:00
Nathaniel Manista f65d3c1102 Beta API clean-ups
(1) Renamed the "beta" module "implementations" because it hasn't been
monolithic since "interfaces" was factored out of it a few changes
back.

(2) Moved ChannelConnectivity from grpc.beta.beta to
grpc.beta.interfaces since it is constants that don't depend on the
beta implementation.

(3) Moved the Server interface definition from grpc.beta.beta to
grpc.beta.interfaces since it is an interface.

(4) Dropped the "create_" prefix from "create_<...>_channel" functions
to better match the other creation functions throughout the codebase.
2015-09-05 03:55:19 +00:00
Nathaniel Manista 41abb052b8 gRPC protocol objects 2015-09-05 02:46:43 +00:00
Nathaniel Manista 13db8e517d Plumb protocol objects through RPC Framework core 2015-09-04 23:44:27 +00:00
Nathaniel Manista d2aa1cf0ba Initial work on protocol objects 2015-09-03 20:31:16 +00:00
Masood Malekghassemi bfe8719e78 Merge pull request #3205 from nathanielmanistaatgoogle/method-not-found
Respond with UNIMPLEMENTED when a requested method is not found
2015-09-02 19:37:57 -04:00
Nathaniel Manista 1d750d6ca2 UNIMPLEMENTED status for methods not found 2015-09-02 21:10:48 +00:00
Nathaniel Manista 69210e598b Add code and details to base.Outcome
It may seem weird that code and details would travel along two paths
now instead of one but it makes sense after considering that sometimes
the code and details are application data from the remote application
and sometimes they are transport data from the transport between the
local and remote applications.
2015-09-02 21:10:44 +00:00
Masood Malekghassemi d45d55c39b Expose per-call credentials to Python 2015-09-02 09:40:15 -07:00
Nathaniel Manista 2402078be3 Bump Python version to 0.11 and status to Beta 2015-09-01 15:13:59 +00:00
Nathaniel Manista 65ad41f53b Fixes for bugs found during manual use
(1) In _ingestion, it's the "details" attribute of a
NoSuchMethodException that we want. The "message" is inherited from the
base Exception class.

(2) In _transmission, use a proper sum type for representing operation
abortion. Trying to overload the existing _completion value for
status-and-details-when-aborting was trying to be too clever.

(3) In _calls... oof. Just look. Oof. Test coverage for this code path
is added.

(4) In _service, the application-provided
face.MultiMethodImplementation isn't directly callable, but rather
exposes a method named "service".

(5) In crust.implementations, the wrapping that we've put around the
application-provided face.MultiMethodImplementation *is* directly
callable, and *does not* expose a method named "service".

(6) Also in crust.implementations, base.NoSuchMethodError's constructor
takes a code value and a details value.

(7) Again in crust.implementations, the application-provided
face.MultiMethodImplementation may be None, and if it is None, we
shouldn't wrap it with an adaptation function that would only raise a
TypeError at a later time.
2015-08-31 21:29:12 +00:00
Nathaniel Manista 99355ce1cc Metadata plumbing and serialization tweaks
(1) Plumb the metadata transformer given at the Beta API through to the
InvocationLink where it will be used.

(2) In both InvocationLink and ServiceLink, if there isn't a registered
serializer or deserializer, just pass the payload through rather than
ignoring the entire RPC.
2015-08-31 09:26:13 +00:00
Nathaniel Manista 9e4d0610ea The rest of the Python Beta API 2015-08-31 08:54:06 +00:00
Nathaniel Manista 154e762ae8 Fix gRPC links lifecycle tracking 2015-08-30 18:44:56 +00:00
Nathaniel Manista 1d14618a0e Fix grace period bug in _end.accept_ticket
Tickets should not be ignored if the end is in a grace period; rather
they should be ignored if they are for an unrecognized (likely new)
operation and the end is in a grace period.
2015-08-29 19:18:22 +00:00
Yang Gao 036bf58b28 Merge pull request #3075 from jboeuf/credentials_naming_and_cleanup
Credentials naming and cleanup
2015-08-28 15:48:22 -07:00
Nathaniel Manista cf08a881fb Merge pull request #3126 from nathanielmanistaatgoogle/servicelink-shut-down
Made ServiceLink shut-down a two step process.
2015-08-28 14:44:05 -07:00
Julien Boeuf 6c7185d350 Merge branch 'master' of github.com:grpc/grpc into credentials_naming_and_cleanup 2015-08-28 14:33:17 -07:00
Nathaniel Manista 4354f3e680 Make ServiceLink shut-down a two step process 2015-08-28 21:08:25 +00:00
Masood Malekghassemi 42188d21ec Merge pull request #3128 from nathanielmanistaatgoogle/add_port
Accept addresses rather than ports in add_port
2015-08-28 16:24:58 -04:00
Nathaniel Manista 6e6ddbec91 Accept addresses rather than ports in add_port 2015-08-28 16:37:38 +00:00
Nathaniel Manista 4b41ba249d Two fixes in grpc.framework.core._end
(1) Call "cancel" on each future, not on the list of futures.

(2) If and when futures mature their actions should simply abort all
outstanding operations and cancel any other futures. They should not
shut down the _End's internal thread pool; only the termination action
of the last operation to terminate should shut down the pool (in the
case of their having been active operations at the time at which the
_End's stop(grace) method was called).
2015-08-28 15:48:23 +00:00
Nathaniel Manista 0908c23c44 Expand force_client_auth to old ServerCredentials 2015-08-28 03:04:04 +00:00
Julien Boeuf 63720d4ecf Python service account cleanup. 2015-08-27 17:22:16 -07:00
Julien Boeuf fe4bacb641 Merge branch 'credentials_naming_and_cleanup' of github.com:jboeuf/grpc into credentials_naming_and_cleanup 2015-08-27 15:49:27 -07:00
Nathaniel Manista 7dc25d3ca6 Add force_client_auth to _low.ServerCredentials 2015-08-27 20:08:42 +00:00
Craig Tiller 08348334e5 Merge pull request #2947 from jboeuf/grpc_security_abi
First draft at addressing #1799 for grpc_security.
2015-08-27 12:43:25 -07:00
Masood Malekghassemi 41d2b291eb Merge pull request #3093 from nathanielmanistaatgoogle/channel
The Beta API Channel
2015-08-27 12:33:20 -04:00
Masood Malekghassemi 967caaada0 Merge pull request #3052 from nathanielmanistaatgoogle/crust
The RPC Framework crust package
2015-08-27 00:17:05 -04:00
Nathaniel Manista 8e3dc00d93 The Beta API Channel 2015-08-27 03:15:06 +00:00
Masood Malekghassemi f61897df57 Merge pull request #3044 from nathanielmanistaatgoogle/no-such-method-code-and-message
Add code and message to base.NoSuchMethodError
2015-08-26 14:47:48 -04:00
Julien Boeuf 510a920c75 Credentials cleanup:
- Removing service_accounts credentials. These credentials just have
  drawbacks compared to service_account_jwt_access credentials, notably
  in terms for security.
- Renaming Google specific credentials with a Google prefix for C and
  C++. This should be done as well for wrapped languages.
2015-08-25 21:51:07 -07:00
Julien Boeuf c5b570f97e Adding void* at then end of security related method in order to have a stable ABI. 2015-08-25 17:47:55 -07:00
Nathaniel Manista 4c8288ec01 The RPC Framework crust package 2015-08-25 22:17:59 +00:00
Masood Malekghassemi 62597fdf96 Merge pull request #3047 from nathanielmanistaatgoogle/status
Status code conformance in grpc._links
2015-08-25 12:34:52 -04:00
Nathaniel Manista 815604fdcd Add code and message to base.NoSuchMethodError
This is part of support for applications being able to respond to RPCs
with unrecognized names with specific codes and messages.
2015-08-25 05:01:01 +00:00
Masood Malekghassemi e289e52436 Merge pull request #3038 from nathanielmanistaatgoogle/four-fixes
Four small Python bugfixes
2015-08-24 18:50:07 -07:00
Masood Malekghassemi 7c70bc2673 Merge pull request #3045 from nathanielmanistaatgoogle/parameter-reassignment
Fix parameter reassignment defect
2015-08-24 18:45:43 -07:00
Nathaniel Manista 7b92bae20e Status code conformance in grpc._links 2015-08-25 00:56:25 +00:00
Masood Malekghassemi 8c4549aec7 Merge pull request #3039 from nathanielmanistaatgoogle/transport-objects
Add a "transport" field to links.Ticket
2015-08-24 15:07:55 -07:00
Nathaniel Manista c9dc74b2cd Fix parameter reassignment defect
This defect was introduced in 515b0a9352.
2015-08-24 21:59:03 +00:00
Nathaniel Manista e75ee388e1 Merge pull request #2969 from soltanmm/gravity-well
Add cancel_all_calls to Python server.
2015-08-24 13:40:35 -07:00
Nathaniel Manista 2432c224d9 Add a "transport" field to links.Ticket
This will be used for communication of transport-specific values and
objects up to applications.
2015-08-24 18:49:45 +00:00
Nathaniel Manista 9faff0e2b1 Four small bugfixes
(1) In grpc._links.service._Kernel.add_ticket, premetadata() the call
if it has not already been premetadataed for any non-None ticket
termination, not just links.Ticket.Termination.COMPLETION.

(2) In grpc.framework.core._reception, add an entry to
_REMOTE_TICKET_TERMINATION_TO_LOCAL_OUTCOME for REMOTE_FAILURE.
REMOTE_FAILURE on a received ticket indicates the remote side of the
operation blaming the local side for operation abortion.

(3) In grpc.framework.core._reception.ReceptionManager._abort, only
abort the operation's other managers if the operation has not already
terminated, as indicated by the "outcome" attribute of the
TerminationManager.

(4) In grpc.framework.core._reception.ReceptionManager._abort, don't
transmit the outcome to the other side of the operation. Either it came
from the other side in the first place and to send it back would be
telling the other side something it already knows, or it arose from a
network failure and there's no confidence that it would reach the other
side.
2015-08-24 18:10:55 +00:00
Nathaniel Manista 79c9b358d9 The face interface of RPC Framework.
This is the public API of the old face package of RPC Framework
extracted into a first-class interface and adapted to metadata, status,
and flow control.
2015-08-24 16:59:09 +00:00
Masood Malekghassemi 03d281ab1b Merge pull request #2968 from nathanielmanistaatgoogle/nathaniel-core
The RPC Framework core package.
2015-08-23 15:14:36 -07:00
Nathaniel Manista f36e1b74b5 The RPC Framework core package.
This is the second generation of the old base package (framework.base)
and implements the translation between the new links and base
interfaces.
2015-08-21 18:33:02 +00:00
Masood Malekghassemi 41a166f97b Add cancel_all_calls to Python server
Also format _low_test.py to fit within the 80 character fill-limit and
re-style test assertions.
2015-08-20 15:26:09 -07:00
Stanley Cheung dbeb1cd90c update debian install instructions 2015-08-19 14:39:05 -07:00
Yang Gao 4836492061 Merge pull request #2972 from ctiller/get-reserved-things-right
Add some reserved checks that need to be present
2015-08-19 09:59:48 -07:00
Mikołaj Siedlarek c3134bc955 Allow customization of thread pool size in Python. 2015-08-19 15:24:07 +02:00
Craig Tiller 4275899297 Sprinkle reserved = NULL around 2015-08-18 10:34:32 -07:00
Nathaniel Manista 9df83ab9e2 The base interface of RPC Framework
This is the public API of the old base package of RPC Framework
extracted into a first-class interface and adapted to metadata, status,
and flow control.
2015-08-17 19:49:53 +00:00
Nicolas "Pixel" Noble f123443aa5 Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown 2015-08-13 23:40:04 +02:00
Nathaniel Manista 515b0a9352 Service-side read without allowance
This compensates for the abstraction mismatch described in issue 2916.
2015-08-13 17:22:21 +00:00
Nicolas "Pixel" Noble d9745cab08 Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown
Conflicts:
	src/ruby/ext/grpc/rb_channel.c
2015-08-13 02:07:12 +02:00
Nathaniel Manista 52988afdc8 Merge pull request #2878 from soltanmm/expose
Expose new core functionality to Python.
2015-08-12 13:35:57 -07:00
Masood Malekghassemi be55ca770d Expose new core functionality to Python 2015-08-12 11:59:55 -07:00
Nicolas "Pixel" Noble 9b6248fc6d Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown
Conflicts:
	src/node/ext/call.cc
	src/node/ext/channel.cc
2015-08-12 19:53:03 +02:00
Nathaniel Manista 2bd1fe82f9 Merge pull request #2826 from soltanmm/typo-fix
Fix debug annotation typo in Python.
2015-08-12 08:23:52 -07:00
Nicolas "Pixel" Noble b457cd831a Merge remote-tracking branch 'google/master' into the-ultimate-showdown
Conflicts:
	src/csharp/ext/grpc_csharp_ext.c
2015-08-12 01:14:17 +02:00
Nicolas "Pixel" Noble faddd3c3f9 Fixing Python after the merge. 2015-08-08 02:20:43 +02:00
Nicolas "Pixel" Noble 9d72b149a9 Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown
Conflicts:
	include/grpc/grpc.h
	src/core/surface/channel.c
	src/core/surface/channel_create.c
	src/core/surface/completion_queue.c
	src/cpp/client/channel.cc
	src/cpp/client/insecure_credentials.cc
	src/csharp/ext/grpc_csharp_ext.c
	src/node/ext/call.cc
	src/node/ext/channel.cc
	src/php/ext/grpc/call.c
	src/php/ext/grpc/channel.c
	src/python/grpcio/grpc/_adapter/_c/types/channel.c
	src/ruby/ext/grpc/rb_channel.c
	test/core/end2end/dualstack_socket_test.c
	test/core/end2end/fixtures/chttp2_fullstack.c
	test/core/end2end/fixtures/chttp2_fullstack_compression.c
	test/core/end2end/fixtures/chttp2_fullstack_uds_posix.c
	test/core/end2end/fixtures/chttp2_fullstack_with_poll.c
	test/core/end2end/multiple_server_queues_test.c
	test/core/end2end/no_server_test.c
	test/core/end2end/tests/bad_hostname.c
	test/core/end2end/tests/cancel_after_accept.c
	test/core/end2end/tests/cancel_after_accept_and_writes_closed.c
	test/core/end2end/tests/cancel_after_invoke.c
	test/core/end2end/tests/cancel_before_invoke.c
	test/core/end2end/tests/cancel_in_a_vacuum.c
	test/core/end2end/tests/census_simple_request.c
	test/core/end2end/tests/disappearing_server.c
	test/core/end2end/tests/early_server_shutdown_finishes_inflight_calls.c
	test/core/end2end/tests/empty_batch.c
	test/core/end2end/tests/graceful_server_shutdown.c
	test/core/end2end/tests/invoke_large_request.c
	test/core/end2end/tests/max_concurrent_streams.c
	test/core/end2end/tests/max_message_length.c
	test/core/end2end/tests/ping_pong_streaming.c
	test/core/end2end/tests/registered_call.c
	test/core/end2end/tests/request_response_with_binary_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_payload.c
	test/core/end2end/tests/request_response_with_payload_and_call_creds.c
	test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
	test/core/end2end/tests/request_with_compressed_payload.c
	test/core/end2end/tests/request_with_flags.c
	test/core/end2end/tests/request_with_large_metadata.c
	test/core/end2end/tests/request_with_payload.c
	test/core/end2end/tests/server_finishes_request.c
	test/core/end2end/tests/simple_delayed_request.c
	test/core/end2end/tests/simple_request.c
	test/core/end2end/tests/simple_request_with_high_initial_sequence_number.c
	test/core/fling/client.c
	test/core/fling/server.c
	test/core/surface/lame_client_test.c
2015-08-08 01:45:38 +02:00
Masood Malekghassemi 6107bf457a Set Python user-agent string 2015-08-06 13:33:07 -07:00
Masood Malekghassemi 1116b0b4fb Fix debug annotation typo in Python 2015-08-06 12:37:05 -07:00
Yang Gao e5b0459299 Merge pull request #2750 from ctiller/propagate
Core-supported context propagation
2015-08-06 09:39:51 -07:00
Nathaniel Manista 7098b1ba64 Merge pull request #2746 from soltanmm/user-agent
Add project metadata generation to Python.
2015-08-05 17:48:46 -07:00
Masood Malekghassemi 5c147631d3 Add project metadata generation to Python 2015-08-05 16:08:05 -07:00
Craig Tiller a600d58551 Merge github.com:grpc/grpc into propagate 2015-08-05 10:44:45 -07:00
Craig Tiller c5ae3eb8d6 Rename grpc_server_add_http2_port to grpc_server_add_insecure_http2_port 2015-08-03 10:42:22 -07:00
Craig Tiller 6728bef3b1 Merge branch 'propagate' of github.com:ctiller/grpc into propagate
Conflicts:
	src/core/surface/channel.c
2015-08-01 16:12:04 -07:00
Craig Tiller fa44f18516 Merge github.com:grpc/grpc into propagate
Conflicts:
	src/core/surface/channel.c
2015-08-01 16:11:03 -07:00