Commit Graph

55120 Commits

Author SHA1 Message Date
chenw 6edb547c99 Enable streaming test case for gRPC client in GCE.
Change on 2015/01/08 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83549959
2015-01-09 17:50:09 -08:00
temiola 4dee1577fb Updates the math and interop samples to use the fully-qualified method name.
This bring the ruby GRPC up-to-date with the changes in []
TESTED: math client access math server OK, similarly the passing interop tests continue to pass
	Change on 2015/01/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83527704
2015-01-09 17:44:43 -08:00
temiola d6fd84aff8 Updates the generated ruby code to specify the service name.
Change on 2015/01/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83527066
2015-01-09 17:43:12 -08:00
temiola 583fe99706 Updates service.rb to ensure that the DSL specified service name is not overridden
Change on 2015/01/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83525675
2015-01-09 17:40:38 -08:00
temiola 0f0a6bc4f0 Switches to using protobuf-ruby.
- Adds a dependency to protobuf-ruby in the gemfile
- Updates math.proto to proto3
- Updates math server and client to use protoc protos
- Updates interop server and client to use protoc protos

Also
- Fixes/Updates the noproto samples

TESTED: math_server and math_client can communicate locally.
	Change on 2015/01/07 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83483448
2015-01-09 17:35:24 -08:00
ctiller c008ae5e50 Fix opensource build.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83469328
2015-01-09 17:30:09 -08:00
ctiller d9962df7a5 Don't log on EINTR.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83469190
2015-01-09 17:28:50 -08:00
ctiller 58393c20bc Remove libevent.
Fixed any exposed bugs across the stack.

Add a poll() based implementation. Heavily leverages pollset infrastructure to allow small polls to be the norm. Exposes a mechanism to plug in epoll/kqueue for platforms where we have them.

Simplify iomgr callbacks to return one bit of success or failure (instead of the multi valued result that was mostly unused previously). This will ease the burden on new implementations, and the previous system provided no real value anyway.

Removed timeouts on endpoint read/write routines. This simplifies porting burden by providing a more orthogonal interface, and the functionality can always be replicated when desired by using an alarm combined with endpoint_shutdown. I'm fairly certain we ended up with this interface because it was convenient to do from libevent.

Things that need attention still:
- adding an fd to a pollset is O(n^2) - but this is probably ok given that we'll not
use this for multipolling once platform specific implementations are added.
- we rely on the backup poller too often - especially for SSL handshakes and for client
connection establishment we should have a better mechanism ([] []
- Linux needs to use epoll for multiple fds, FreeBSD variants (including
Darwin) need to use kqueue. ([] []
- Linux needs to use eventfd for poll kicking. ([]
	Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83461069
2015-01-09 17:27:32 -08:00
ctiller e4b409364e Add a --forever flag, to continuously run tests as things change.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83451760
2015-01-09 17:23:18 -08:00
Craig Tiller 93d970a9ef Fix win32 build error. 2015-01-09 13:35:04 -08:00
Craig Tiller e9a253477d Fix win32 build error. 2015-01-09 13:34:53 -08:00
Craig Tiller a6899be634 Fix a compiler warning. 2015-01-09 12:54:01 -08:00
temiola 8232204a36 Updates the math and interop samples to use the fully-qualified method name.
This bring the ruby GRPC up-to-date with the changes in []
TESTED: math client access math server OK, similarly the passing interop tests continue to pass
	Change on 2015/01/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83527704
2015-01-08 13:57:55 -08:00
temiola 5417edab2a Updates the generated ruby code to specify the service name.
Change on 2015/01/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83527066
2015-01-08 13:53:15 -08:00
temiola 16be8a4a90 Updates service.rb to ensure that the DSL specified service name is not overridden
Change on 2015/01/08 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83525675
2015-01-08 13:44:59 -08:00
temiola 6e48a4258a Switches to using protobuf-ruby.
- Adds a dependency to protobuf-ruby in the gemfile
- Updates math.proto to proto3
- Updates math server and client to use protoc protos
- Updates interop server and client to use protoc protos

Also
- Fixes/Updates the noproto samples

TESTED: math_server and math_client can communicate locally.
	Change on 2015/01/07 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83483448
2015-01-08 13:27:44 -08:00
ctiller 228ad9b853 Fix opensource build.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83469328
2015-01-08 13:10:42 -08:00
ctiller f6db7b2745 Don't log on EINTR.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83469190
2015-01-08 13:06:35 -08:00
ctiller 1a277ecd93 Remove libevent.
Fixed any exposed bugs across the stack.

Add a poll() based implementation. Heavily leverages pollset infrastructure to allow small polls to be the norm. Exposes a mechanism to plug in epoll/kqueue for platforms where we have them.

Simplify iomgr callbacks to return one bit of success or failure (instead of the multi valued result that was mostly unused previously). This will ease the burden on new implementations, and the previous system provided no real value anyway.

Removed timeouts on endpoint read/write routines. This simplifies porting burden by providing a more orthogonal interface, and the functionality can always be replicated when desired by using an alarm combined with endpoint_shutdown. I'm fairly certain we ended up with this interface because it was convenient to do from libevent.

Things that need attention still:
- adding an fd to a pollset is O(n^2) - but this is probably ok given that we'll not
use this for multipolling once platform specific implementations are added.
- we rely on the backup poller too often - especially for SSL handshakes and for client
connection establishment we should have a better mechanism ([] []
- Linux needs to use epoll for multiple fds, FreeBSD variants (including
Darwin) need to use kqueue. ([] []
- Linux needs to use eventfd for poll kicking. ([]
	Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83461069
2015-01-08 13:01:56 -08:00
ctiller 3040cb7c43 Add a --forever flag, to continuously run tests as things change.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83451760
2015-01-08 12:48:26 -08:00
temiola e5206aace9 Updates the ruby generator so that it does not create files for empty protos.
Previously, this alway generated a service file with a header.

However, this does not work well, it means whenver the ruby service plugin is
used, every proto file ends up with a service file.
	Change on 2015/01/07 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83448951
2015-01-08 12:44:01 -08:00
yangg 03df7f653a Fix hostname for streaming.
Change on 2015/01/07 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83448769
2015-01-08 12:39:44 -08:00
nnoble 9f312b49e8 Fixing include paths for cmdline. 2015-01-07 01:29:22 -08:00
temiola 3d726cfcd2 bugfix: correct service include in ruby compiler
Change on 2015/01/06 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83393999
2015-01-07 01:16:47 -08:00
temiola f8b66eab6a Updates extconf.rb to use grpc from the make install locations
Change on 2015/01/06 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83391947
2015-01-06 18:17:57 -08:00
temiola 5453555255 bugfix: ruby code-gen capitalization
Change on 2015/01/06 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83391912
2015-01-06 18:17:10 -08:00
Nicolas Noble ddef24620a Adding the tools directory to the git export. 2015-01-06 18:08:25 -08:00
Nicolas Noble 9f2b09e112 Merge github.com:google/grpc 2015-01-06 17:57:56 -08:00
yangg 102e4feb8e Use CONFIG after defining it. Define CONFIG before using it.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83383325
2015-01-06 17:52:04 -08:00
ctiller 8cfebb91ca Add msan, tsan, asan targets for Makefile.
Expand test runner to be compatible.
	Change on 2015/01/06 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83378004
2015-01-06 17:50:47 -08:00
ctiller cab52e76e5 Allow specifying CONFIG as a string, instead of DEBUG=1.
This will open the way for CONFIG=tsan, for instance.
	Change on 2015/01/06 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83368093
2015-01-06 17:48:15 -08:00
yangg 5bcea0d0d5 Add package name to the method string.
Changes:
C++ code generator
Go code generator and generated file
java code generator and test golden file
java server side Handler registry code
java shm channel (strips the package name from the method name)
ESF registering code
Tested:
[] test net/grpc/testing/interop:all
global presubmit:
[]
	Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83353207
2015-01-06 17:47:01 -08:00
yangg ed5e7e006b Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83351442
2015-01-06 17:45:46 -08:00
nnoble c87b1c533f Adding plugins to the mako rendering system.
Change on 2015/01/05 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83302581
2015-01-06 17:40:30 -08:00
Craig Tiller 71b9472c9f Merge github.com:google/grpc 2015-01-05 17:44:16 -08:00
ctiller b3e3317ae8 Seed random numbers in each process based on pid.
This causes get_unused_port_or_die to try different port numbers in each
concurrently running tests, and consequently enables some parallelism of test
processes.
	Change on 2015/01/05 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83289374
2015-01-05 17:43:10 -08:00
mlumish 156e67d417 Added PSR-4 compatible autoloader as defined at http://www.php-fig.org/psr/psr-4/.
SurfaceActiveCall.php was split into four files. Each file must contain exactly one PHP class because of the following line in the spec:

> The terminating class name corresponds to a file name ending in .php. The file name MUST match the case of the terminating class name.

Other changes were made to correctly import the library using the autoloader.
	Change on 2015/01/02 by mlumish <mlumish@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83150065
2015-01-05 17:43:10 -08:00
mlumish 8f91163795 Switched call errors to exceptions instead of return values
Change on 2015/01/02 by mlumish <mlumish@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83146107
2015-01-05 17:43:09 -08:00
mlumish 34cd1f0eec Switched events to use native objects instead of wrappers
Change on 2015/01/02 by mlumish <mlumish@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83146045
2015-01-05 17:43:09 -08:00
mlumish dba878978d Replaced calls to grpc_call_accept with newer functions
Change on 2015/01/02 by mlumish <mlumish@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83145830
2015-01-05 17:43:09 -08:00
Tim Emiola ec585684d5 Updated protobuf: it now includes the official ruby-protobuf 2015-01-05 15:40:12 -08:00
Tim Emiola fa37163f5c Updated protobuf: it now includes the official ruby-protobuf 2015-01-05 15:39:23 -08:00
klempner cd45aadc10 Fix the socket pair fixtures to include the http filters.
Without this these tests start failing if the server starts checking that it
received the necessary headers.
	Change on 2014/12/23 by klempner <klempner@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82748741
2014-12-29 17:29:30 -08:00
klempner 55af9b60cc Have grpc_iomgr_work() adjust its poll deadline to account for the next alarm.
This fixes _low_test.py, once we reverse CL 82686562 accidentally reducing poll
timeouts to 1 us.
	Change on 2014/12/23 by klempner <klempner@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82741776
2014-12-29 17:28:15 -08:00
ctiller d94ad10cf1 Provide a port of cpu related code to posix, and linux.
Properly set this up in our build environment.
	Change on 2014/12/23 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82725899
2014-12-29 17:26:55 -08:00
nnoble 7e012cf4e0 Solving chicken-and-egg issue while detecting OpenSSL capabilities.
Change on 2014/12/22 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82690228
2014-12-29 17:25:33 -08:00
klempner 615e4ac752 Fix poll kicking, unflaking _low_test.py
Change on 2014/12/22 by klempner <klempner@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82686562
2014-12-29 17:23:04 -08:00
chenw a49839f0ff fix MOE compliling error.
Change on 2014/12/22 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82682265
2014-12-29 17:21:43 -08:00
chenw ebb4e6dcc6 Add Flags to override host and enable prod ssl root.
Change on 2014/12/22 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82679415
2014-12-29 17:19:19 -08:00
yangg 7cebec7ccd Use overriden host name when creating a call.
Change on 2014/12/22 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82672321
2014-12-29 17:13:16 -08:00