Commit Graph

1661 Commits

Author SHA1 Message Date
apolcyn 3d4d992470
Merge pull request #23619 from apolcyn/fix_ruby_call_cred_timeout_test
Remove an invalid assumption from ruby call creds timeout test
2020-07-27 15:04:35 -07:00
Alexander Polcyn cba97021a9 Remove an invalid assumption from ruby call creds timeout test 2020-07-27 10:42:13 -07:00
Alexander Polcyn 59da17dd7d Fix parent/child process synchronization in two ruby tests 2020-07-26 23:10:18 -07:00
Jan Tattermusch aa0193db42
Merge pull request #23576 from jtattermusch/bump_master_1_32
update master version to 1.32.0-dev
2020-07-23 07:48:24 +02:00
Richard Belleville 089d90933a
Merge pull request #23203 from gnossen/python_google_default_creds
Implement compute_engine_channel_credentials in Python
2020-07-22 13:14:54 -07:00
Jan Tattermusch 80daba44d9 regenerate projects 2020-07-22 17:38:48 +02:00
Alexander Polcyn d88b77aaab Add logs to a flakey ruby test that can help to diagnose issue 2020-07-21 12:11:35 -07:00
Stanley Cheung 0f34ccbfa8 Fix ruby protoc plugin when message is in another package 2020-07-16 14:02:05 -07:00
Richard Belleville 0ef84e4306 Regenerate projects 2020-07-13 19:36:54 +00:00
Richard Belleville 56ed8f3be4 Merge remote-tracking branch 'origin/master' into python_google_default_creds 2020-07-10 01:09:58 +00:00
miyucy f9111b2a82
Fix ruby 2.7 keyword arguments deprecation
Similar to https://github.com/grpc/grpc/pull/22915
2020-07-08 15:06:51 +09:00
Richard Belleville c8a8a6aea4 Get new core API design building 2020-07-07 00:18:42 +00:00
apolcyn 4cacc60651
Merge pull request #23333 from apolcyn/bad_md_drops_call_creds_thread
Make sure call creds user callbacks can't kill the ruby call credentials thread
2020-07-05 23:22:54 -07:00
Esun Kim 34027f60fc Refactored AR in makefile 2020-06-29 22:51:31 -07:00
Alexander Polcyn 9e8f671cee Update license date; fix format and typo 2020-06-26 23:00:31 -07:00
Alexander Polcyn 95387716dc Make sure call creds user callbacks can't kill the ruby call credentials thread 2020-06-26 18:29:22 -07:00
apolcyn 56c04ddaed
Merge pull request #19756 from apolcyn/fix_ruby_md
Fix auth plugin context use-after-free in ruby
2020-06-26 17:54:50 -07:00
Alexander Polcyn b88c0a22c7 Fix use-after-free in ruby call creds 2020-06-26 13:26:54 -07:00
Alexander Polcyn 1df2cb3760 Dump details around ruby call creds user callback invocation when debug logs are enabled 2020-06-26 11:26:55 -07:00
Richard Belleville 4de06d0e22 Regenerate projects 2020-06-26 02:18:16 +00:00
Richard Belleville 1aae547e2c Regenerate projects 2020-06-25 04:48:28 +00:00
Patrice Chalin 4c4933e056 Docs: fix links to quick start pages 2020-06-16 08:40:59 -04:00
Srini Polavarapu 057091fe1f Regenerate projects 2020-06-05 13:54:32 -07:00
Stanley Cheung 88be358e0d Set timeout on PHP/Ruby xDS test 2020-06-05 01:52:51 +00:00
Stanley Cheung 503e2f8766 Fix format 2020-06-04 20:44:17 +00:00
Stanley Cheung bd061ecf47 Add debug info to xds test 2020-06-04 13:14:25 -07:00
Stanley Cheung 5b5c5f4478 Ruby xDS interop client 2020-05-19 11:19:02 -07:00
apolcyn fed09cbe2c
Merge pull request #20417 from casperisfine/ruby-27-frozen-strings
Fix Ruby 2.7 compatibility in GenericService.underscore
2020-05-14 16:32:28 -07:00
Alexander Polcyn 90f13f08f0 plumb recv_stats_op error_string field up to the ruby surface 2020-05-12 18:23:22 -07:00
apolcyn 6640651bcf
Merge pull request #20867 from yoshimaru46/fix-to-use-immutable-string-literal
Fix to use immutable string literal
2020-05-12 13:24:17 -07:00
apolcyn e63fa5fdf0
Merge pull request #22734 from south37/fix-yard-annotation-of-client-interceptor
Fix YARD annotation of GRPC::ClientInterceptor
2020-05-12 11:44:47 -07:00
Jason Meller 3e17411774
Covert hash to keyword arguments for ruby 2.7
Ruby 2.7 deprecated passing a hash as the last argument for a method that takes keyword params. This commit coverts the hash explicitly to keyword args using the double splat.


```
grpc-1.28.0-universal-darwin/src/ruby/lib/grpc/generic/service.rb:170: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
```
2020-05-10 17:15:30 -04:00
apolcyn 4046ee6367
Merge pull request #22594 from Oshiumi/fix-nested-message-output-generation
Fix generating method output with nested resource
2020-05-08 13:34:30 -07:00
Nicolas "Pixel" Noble 791729d09f Bumping version. 2020-04-30 08:12:29 +02:00
Jean Boussier d6bebcd248 Fix Ruby 2.7 compatibility in GenericService.underscore 2020-04-27 12:38:46 +02:00
Nao Minami c76ad73712 Fix yard annotation of ClientInterceptor 2020-04-22 18:50:48 +09:00
Jan Tattermusch 6ffa02a389 do not eat errors when generating protos 2020-04-18 18:43:55 +02:00
Jan Tattermusch 0432f7f6ca use bazel-built protoc and plugin for generate_proto_*.sh scripts
modify scripts
2020-04-17 13:13:36 +02:00
Jan Tattermusch 555804bb94 regenerate ruby protos 2020-04-17 13:13:36 +02:00
Oshiumi fc70267f0e Fix generating output with nested resource 2020-04-07 01:51:59 +09:00
jiangtaoli2016 951abee174 Revert "Append old ca.pem"
This reverts commit 13c6b6c612.
2020-03-20 16:49:15 -07:00
jiangtaoli2016 13c6b6c612 Append old ca.pem 2020-03-20 14:48:02 -07:00
jiangtaoli2016 2620763fdd Update test creds for php, python, ruby 2020-03-18 16:48:22 -07:00
Richard Belleville 5ef379870d Regenerate projects 2020-02-26 10:39:34 -08:00
Alexander Polcyn 1197454f5a Regenerate projects 2020-01-17 15:36:25 -08:00
Jan Tattermusch d53663750c regenerate ruby protobufs 2020-01-15 04:43:59 -05:00
Yihua Zhang c8c284ed3a merge with upstream/master 2020-01-07 15:33:26 -08:00
Yihua Zhang e10d90ba27 add security level negotiation between call creds and channel. 2020-01-06 11:40:27 -08:00
Akshay Kumar 3eadaa1aa8 FullChainExperimental-01-200106-rb 2020-01-06 11:19:40 -08:00
Richard Belleville 6feae07504 Regenerate projects 2019-12-03 15:08:50 -08:00
Esun Kim 81df105ac8 Deprecate gpr_get/set_allocation_functions 2019-11-04 19:47:33 -08:00
Yoshihiro Saito 4ba9b6d44e Fix to use immutable string literal 2019-10-30 15:47:38 +09:00
Yash Tibrewal 07ef24344c Regenerate projects 2019-10-24 11:54:20 -07:00
Esun Kim a67213158c Use -static-libstdc++ for ruby.linux 2019-10-04 15:56:47 -07:00
tanjunchen 64cdea5a07 fix some spelling mistakes in document 2019-10-04 09:07:35 +08:00
chentanjun 05b3eeff77 fix-up some spelling mistakes 2019-09-25 23:29:47 +08:00
Esun Kim cf444b9cab Regenerate projects 2019-09-10 14:08:50 -07:00
Esun Kim 49b9fb2b3c Enable C++ standard library 2019-09-03 09:27:54 -07:00
apolcyn 79fc2e5c56
Merge pull request #19939 from blowmage/ruby-struct-status-rb
Define Struct::Status in Ruby
2019-08-15 23:48:21 -07:00
Mike Moore 0f8dced6c4
Define Struct::Status in Ruby
Update error end2end test for loading when calling to_status.
Update error end2end test for loading when calling to_rpc_status.
2019-08-15 17:34:51 -06:00
apolcyn 4a1ef56a54
Merge pull request #19940 from jbolinger/fix-rubyname-gen
Allow Ruby style (::) package names in Ruby codegen
2019-08-15 13:53:25 -07:00
Joe Bolinger f463965084 Allow :: in ruby_package 2019-08-15 09:45:47 -07:00
apolcyn 460ccabf27
Merge pull request #19893 from blowmage/ruby-load-errors-early
Allow loading grpc/errors.rb before grpc.rb
2019-08-13 11:54:18 -07:00
Mike Moore b132c34c61
Allow loading grpc/errors before grpc 2019-08-13 10:36:07 -06:00
Yihua Zhang ae863630d5 Add spiffe client-side credential reload 2019-08-12 14:12:13 -07:00
Esun Kim f88bd06ee5 Go UPB! 2019-08-06 15:27:14 -07:00
Karthik Ravi Shankar fcb43f9dee Regenerate projects 2019-08-01 17:34:02 -07:00
apolcyn 8b71bd082e
Merge pull request #19585 from michaelherold/dont-require-relative-for-absolute-path
Don't require_relative for an absolute path
2019-07-17 09:58:54 -07:00
apolcyn 8cd016f597
Merge pull request #18913 from sat0yu/sat0yu/fix-typo
Fix a typo in the GRPC::RpcServer constructor description
2019-07-15 00:15:43 -07:00
Michael Herold 957fc7bab7
Don't require_relative for an absolute path
Ruby's `require_relative` method currently converts paths to absolute
paths. This idiosyncrasy means that the implementation of the require
for the distributed shared library works, however the semantics do not
mesh with the semantics of `require_relative`.

This is an issue when you redefine `require_relative` and follow the
semantics of the method, as [derailed_benchmarks does][1]. This means
that any project that uses `grpc` also cannot use that project (which
I will also be patching).

In the event that a new version of Ruby follows the semantics of the
method (whether or not that is likely), this will break as well.

By switching to `require` here instead of `require_relative`, we
maintain the functionality but do not use a semantically incompatible
method to do so.

[1]: 1b0c425720/lib/derailed_benchmarks/core_ext/kernel_require.rb (L24-L27)
2019-07-08 16:15:27 -05:00
Julien Boeuf 189c2c8c30 Adding support for STS Token Exchange Creds in core:
- IETF specification is available here:
https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16
2019-06-26 12:48:05 -07:00
Esun Kim cd27a36924 Regenerate projects 2019-06-18 15:40:50 -07:00
Yihua Zhang a887f35a9b add a new struct - grpc_ssl_verify_peer_options and an API - grpc_ssl_credentials_create_ex. 2019-05-30 16:00:50 -07:00
Vijay Pai 64528cdf4d
Merge pull request #18915 from MrMage/patch-1
Add `void` arguments to two function declarations.
2019-05-13 22:49:39 -07:00
Srini Polavarapu 6bc2ff1b5f Regenerate projects 2019-05-10 10:38:59 -07:00
Vijay Pai cb8c4afdea Resolve consistency checks 2019-05-09 15:21:42 +02:00
Alex Polcyn b0db0f3fb4 Lazily load protobuf from the grpc ruby errors module 2019-05-06 20:57:28 +00:00
Yusuke Sato 7d55a8a904 Fix a typo in the GRPC::RpcServer constructor description 2019-04-30 15:25:05 +09:00
apolcyn cdbab7bd72
Merge pull request #18752 from blowmage/bad_status-to_rpc_status
[Ruby]  Add BadStatus#to_rpc_status
2019-04-26 18:16:33 -07:00
Mike Moore 5f30da6dd1
Update variable names in spec 2019-04-22 16:35:07 -06:00
Mike Moore abcdf2d183
Party like its 2015 2019-04-22 16:32:26 -06:00
Mike Moore b47f2048b8
Log ParseError raised in BadStatus#to_rpc_status 2019-04-18 22:26:39 -06:00
Mike Moore 0fa7cf9194
Update Add BadStatus#to_status documentation 2019-04-18 03:02:31 -06:00
Mike Moore 71db662452
Add tests for error methods 2019-04-18 03:01:28 -06:00
Mike Moore 7afc6dbae3
Update BadStatus#to_rpc_status
Change the implementation to no longer raise when the rpc_status
protobuf value cannot be properly decoded.
Update the documentation.
2019-04-18 03:00:37 -06:00
Mike Moore f370542dd6
Add BadStatus#to_rpc_status 2019-04-13 14:36:36 -06:00
SataQiu 44f92cdd17 clean up repeated words 2019-04-10 16:25:25 +08:00
Lidi Zheng 0231bf3b01 Regenerate projects 2019-03-29 16:24:50 -07:00
Soheil Hassas Yeganeh ad1b3e5094 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()

This commit reaplies 509e77a5a3
2019-03-21 06:03:45 -04:00
Stanley Cheung 0a8fbd2a67 Fix broken php7 performance benchmarks build 2019-03-18 15:12:46 -07:00
Jan Tattermusch b667c2f72f regenerate ruby protos 2019-03-12 05:09:46 -04:00
Soheil Hassas Yeganeh c060d55cc7
Revert "Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing." 2019-03-05 14:01:01 -05:00
Soheil Hassas Yeganeh 509e77a5a3 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()
2019-03-04 14:17:46 -05: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
yang-g 0df63d3c98 Merge branch 'master' into shutdown 2019-02-15 21:51:03 -08:00
apolcyn aa207933cb
Merge pull request #16240 from mattolson/fix-default-pool-keep-alive
Ruby: Fix default pool keep alive
2019-02-14 23:22:45 -08:00
yang-g 545c555d31 Rename new public API 2019-02-14 14:22:40 -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
yang-g 233406d450 generate projects 2019-02-13 11:29:40 -08:00
Jan Tattermusch bc19ba1668
Merge pull request #18037 from xichengliudui/fixtypos
Fix various typos in .cc and .md and .py files
2019-02-13 13:24:34 +01:00
Srini Polavarapu b0efc103e3 Regenerate projects 2019-02-12 21:07:42 -08:00
xichengliudui d9b508c896 Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
Alexander Polcyn 5c85f5a1a0 Ruby: refactor init/shutdown logic to avoid using atexit; fix windows 2019-02-10 16:14:19 -08:00
Yihua Zhang a3d997cbdc Add a TLS credential surface API (experimental) 2019-01-29 10:04:28 -08:00
apolcyn 9ed8734efb
Merge pull request #17606 from matoro/master
Ruby tooling: respect user toolchain overrides
2019-01-24 00:06:05 -08:00
matoro 6ca6a06075 Ruby tooling: respect user toolchain overrides
While compilation flag overrides for the Ruby native extension are
currently functional, specifying an alternate compiler is not, as the
Rbconfig values for key toolchain binaries are hardcoded at compile time
of the Ruby interpreter.  This patch allows them to be overrridden on
the command line via standard environment variables, defaulting to the
Rbconfig values only if unspecified by the user.
2019-01-23 16:40:41 +00:00
Jan Tattermusch 5a6c984d3a clang format code 2019-01-08 16:06:38 +01:00
Christopher Warrington 832e5f06c3 Fix typos in comments 2019-01-07 17:36:14 -08:00
Sanjay Pujare 94d5587643 Regenerate projects 2019-01-03 15:35:20 -08:00
apolcyn fc7d0911a3
Merge pull request #17348 from toc007/ruby-sigint
server graceful shutdown for pull request
2018-12-26 13:23:29 -08:00
Tommy Chen 39ac83a49e ruby-sigint ready to be merged! 2018-12-26 11:17:48 -08:00
Jan Tattermusch b904fdaa40 do not use server override in ruby interop client by default 2018-12-20 14:49:54 +01:00
ncteisen 7b1fc0faa2 Add max_results to ServerSockets 2018-12-11 08:24:40 -08:00
apolcyn 63c9e43c2a
Merge pull request #17295 from ganmacs/fix-misc
Fix ruby code style
2018-12-02 21:01:32 -08:00
ganmacs 79f58ec74e Use space 2018-11-26 19:51:07 +09:00
ganmacs b5ee54add3 Remove unused require 2018-11-26 19:50:50 +09:00
ganmacs bd1fdfaabe Return unimplemented
when calling a method which is server_streamer and is not implemented by user
2018-11-25 17:31:53 +09:00
Muxi Yan f3e4ae633e Regenerate projects 2018-11-19 15:24:53 -08:00
ncteisen 693f46841a Add GetServer to core 2018-10-24 17:31:30 -07:00
apolcyn da5d02fb4d
Merge pull request #16921 from apolcyn/move_package_options_test
Move ruby test's package_options.proto file to ruby-specific directory
2018-10-18 17:07:52 -07:00
Alexander Polcyn f6e8417627 Move package_options.proto file for ruby test 2018-10-17 19:44:52 -07:00
Vijay Pai a46ddf4a09 Remove grpc_use_signal which is no longer relevant 2018-10-10 08:38:15 -07:00
Noah Eisen a74885d478
Merge pull request #16760 from ncteisen/channelz-server-sockets
Channelz Part 8: Get Server Sockets
2018-10-09 11:19:49 -07:00
Stanley Cheung e5ce1e36e6 Regenerate projects 2018-10-08 15:50:50 -07:00
apolcyn 3f1c75208e
Merge pull request #16593 from iguchi1124/remove-duplicate-error
Ruby: remove duplicated `Unimplemented` error definition
2018-10-08 10:32:45 -07:00
ncteisen 3545d754d5 Channelz get server sockets support 2018-10-02 09:55:00 -07:00
ganmacs 8722714ae4 change var name to be consistent with others 2018-10-01 17:32:12 +09:00
apolcyn 2947946871
Merge pull request #15378 from ganmacs/fix-option-name
Change option name of client.rb
2018-09-26 21:24:59 -07:00
ncteisen 4fcf871806 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-09-25 13:37:58 -07:00
Muxi Yan b522334d63
Merge pull request #16659 from grpc/security_func_signature
Update function signature in grpc_security
2018-09-21 08:07:34 -07:00
Vijay Pai 3ee2919623
Merge pull request #16646 from vjpai/callback_codegen_client_unary
EXPERIMENTAL: Codegen for callback client unary calls
2018-09-20 16:35:33 -07:00
Muxi Yan d0029bac14 generate_projects.sh 2018-09-20 11:35:57 -07:00
apolcyn 878703d6fa
Merge pull request #16653 from ganmacs/not-to-use-p-in-test
Use logger to suppress output debug output during test
2018-09-20 09:47:17 -07:00
apolcyn dc09ab5b37
Merge pull request #16642 from tenderlove/send-instead-of-method
Switch to `send` instead of `method(...).call`
2018-09-20 00:07:03 -07:00
Vijay Pai 9e6511ae2e Make the core callback interface API so that it can be used in generated code 2018-09-19 23:57:56 -07:00
ncteisen 0a650eae58 regenerate projects 2018-09-19 07:41:59 -07:00
ganmacs 50c31d18e5 Use logger to suppress output debug output during test 2018-09-19 19:06:46 +09:00
apolcyn 8ad90b42a7
Merge pull request #16477 from ganmacs/rescue-grpc-call-error
Rescue `GRPC::Core::CallError`  so that worker threads are not killed
2018-09-18 10:33:29 -07:00
Aaron Patterson d374ee9a4f
Switch to `send` instead of `method(...).call`
This commit switches `method(...).call` to `send`.  The call sites I
changed were all immediately calling `call` on the method object, then
throwing the method object away.  Using `send` should be equivalent and
will not allocate the intermediate `method` object.
2018-09-17 15:32:57 -07:00
apolcyn a07fcbcc27
Merge pull request #16014 from wework/protobuf/ruby_package
support for ruby_package options
2018-09-14 15:19:21 -07:00
Nick Gordon 3fe2c98877 Updates to the ruby generator for protobuf 3.6.0 changes
test for verifying the ruby_package option
added WeWork to the AUTHORS file
2018-09-14 11:28:24 -04:00
Dylan Thacker-Smith 78f3f44efb ruby: Raise instead of hanging if grpc is used before and after fork 2018-09-13 21:18:30 -04:00
ncteisen 6656bc7398 regenerate projects 2018-09-11 14:58:13 -07:00
Shota Iguchi f69d96a320 Remove duplicate `Unimplemented` error definition 2018-09-10 18:22:22 +09:00
ncteisen 6076b1d798 Merge branch 'channelz-subchannels' into channelz-server 2018-08-28 12:55:40 -07:00
ncteisen 4b5b019d56 Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-28 12:53:57 -07:00
ganmacs 005cb34614 Rescue GRPC::Core::CallError not to kill the worker threads 2018-08-28 16:24:36 +09:00
Juanli Shen 8ceb27a324 Regenerate projects 2018-08-27 14:27:55 -07:00
Eric Gribkoff e04ba7568c
Merge pull request #16318 from ericgribkoff/fork_support_v2_check_if_shutdown
Python fork handler checks if gRPC core successfully shutdown
2018-08-22 15:38:21 -07:00
Eric Gribkoff b59d8674d2 Python post-fork handler: exit if grpc shutdown fails 2018-08-22 13:07:22 -07:00
Chris Lamb fba18d8551 Fix a number of spelling errors. 2018-08-22 16:52:46 +01:00
ncteisen 632b58cb82 regenerate projects 2018-08-15 11:13:41 -07:00
Vijay Pai 4b42288905
Merge pull request #16302 from vjpai/callback_cq
EXPERIMENTAL: Infrastructure for callback-based core CQ
2018-08-14 09:37:58 -07:00
ncteisen c850354423 Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-11 21:19:14 -04:00
Vijay Pai e84096bbe5 Experimental infrastructure for callback-based CQ 2018-08-10 14:33:22 -07:00
Sree Kuchibhotla f63b51be86 Merge branch 'master' into rq-threads-2 2018-08-09 12:13:41 -07:00
Matt Olson 82b732313b Fix default pool keep alive
* The default value for the pool_keep_alive param for RpcServer
  references an incorrect constant.
* This means that the default value for the pool keep alive will
  be 30, which is higher than the default value for the server
  poll_period, which is 1.
2018-08-07 11:09:16 -07:00
Mark D. Roth f7e72560b6 Add experimental API for resetting connection backoff. 2018-08-06 14:46:53 -07:00
Sree Kuchibhotla bdd13cb0ae
Revert "Revert "Restrict the number of threads in C++ sync server"" 2018-08-01 11:22:40 -07:00
Nicolas Noble bea98c3c1b
Revert "Restrict the number of threads in C++ sync server" 2018-07-31 21:12:45 -07:00
Sree Kuchibhotla 9b84d7fe21 Merge branch 'master' into rq-threads 2018-07-30 10:09:47 -07:00
ncteisen 864e68e96d Fix channel trace polymorphism 2018-07-27 02:27:58 -07:00
apolcyn 1680f20c35
Merge pull request #16120 from tenderlove/rm-unused-code
Remove unused code
2018-07-25 22:27:20 -07:00
Sree Kuchibhotla 9bc8ee42c2 generate_projects.sh 2018-07-25 10:58:33 -07:00
Misty De Meo fd499c2baf Ruby tooling: fix makefile strip dependency 2018-07-24 14:11:05 -07:00
Aaron Patterson 896ae70b9f
Remove unused code
This just deletes some code that isn't used.
2018-07-24 13:25:56 -07:00
Srini Polavarapu 8c9af7464c Regenerate projects 2018-07-19 09:52:56 -07:00
ncteisen b86a744751 Expose GetChannel and GetTopChannels Core API 2018-07-18 15:03:31 -07:00
yihuaz 252d3f3b46
Merge pull request #15909 from yihuazhang/local_channel_credentials
Implement local channel/server credentials
2018-07-06 05:44:09 -07:00
Yihua Zhang c5f1eda10f implement loca credentials 2018-07-02 13:29:27 -07:00
ncteisen 8db7788d46 Merge branch 'master' of https://github.com/grpc/grpc into serialization 2018-06-28 00:12:02 -07:00
apolcyn 24416c7a19
Merge pull request #15834 from ganmacs/ensure-that-cancelled-server_streamer-call-raise-cancell
GRPC::Cancelled should be occured when calling Enumrable#next on canceled call
2018-06-22 15:27:58 -07:00
ganmacs c1b64e3493 GRPC::Cancelled should be occured when calling Enumrable#next on canceled call 2018-06-23 04:19:28 +09:00
apolcyn 3da62273f7
Merge pull request #15800 from ganmacs/remove-redefine-class
EchoMsg is defined in spec/support/services.rb
2018-06-21 10:14:21 -07:00
apolcyn 9f28775bd1
Merge pull request #15793 from ganmacs/delete-unused-ivar
Delete unused ivar
2018-06-20 16:26:29 -07:00
ncteisen 93a90e6132 Support codegen generic on server side 2018-06-20 07:59:05 -07:00
ncteisen 68d4f50f77 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-06-19 14:00:52 -07:00
Mark D. Roth 9e3e64604d
Merge pull request #15274 from JackOfMostTrades/verify-callback-core
Create verify_peer_options when creating ssl credentials to support a peer verification callback
2018-06-19 10:00:16 -07:00
ganmacs 811a580425 EchoMsg is defined in spec/support/services.rb 2018-06-19 13:04:28 +09:00
apolcyn 34e7515cc6
Merge pull request #15377 from ganmacs/move-script-which-has-pre-req
Move a script which has a pre-requirement to outside of spec
2018-06-18 15:22:48 -07:00
apolcyn 1da7589c84
Merge pull request #15791 from ganmacs/run-spec-by-specifing-file
Be able to execute rspec for each file
2018-06-18 10:34:07 -07:00
ganmacs f15c6f24c1 Delete unused @metadata_tag 2018-06-18 18:59:10 +09:00
ganmacs cb450277a3 All spec files require spec_helper 2018-06-18 12:12:21 +09:00
ganmacs 075a26faff spec_helper requires grpc 2018-06-18 12:04:30 +09:00
ganmacs 0b4fb6a5e2 Move a script which has a pre-requirement to outside of spec
And make it to be execute when using `./tools/run_tests/run_tests.py -l ruby`
2018-06-16 22:38:15 +09:00
ncteisen c14e95fc63 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-06-15 11:13:46 -04:00
apolcyn c65066666f
Merge pull request #15755 from ganmacs/unify-duplicated-method
Unify nearly same methods
2018-06-14 20:12:11 -07:00
ganmacs 277d894d7f Unify nearly same method
`@call` instance variable is same in
ActiveCall#merge_metadata_and_send_if_not_already_sent and
ActiveCall#send_initial_metadata.
2018-06-14 17:59:58 +09:00
ncteisen 19ac7c0baf Fix ruby test by backing off on the concurrency 2018-06-13 15:06:07 -07:00
Ian Haken 68eff58df6 Create verify_peer_options when creating ssl credentials in order to expose a verification callback option.
These options are not yet exposed to languages outside of core.
2018-06-12 12:59:37 -07:00
ncteisen cb5471c2ee Sleep less for ruby test 2018-06-11 20:07:43 -07:00
Srini Polavarapu c79c156307 Regenrate projects 2018-06-08 17:01:18 -07:00
ncteisen 16280c7398 Remove unused API 2018-06-08 09:44:25 -07:00
Noah Eisen 70f7558a18 re generate project 2018-06-07 13:03:32 -07:00
ncteisen ec482847b2 re run generate projects 2018-06-05 16:59:25 -07:00
ncteisen c3c6e064b3 Add basic support for GetChannel 2018-06-05 16:59:25 -07:00
apolcyn 17f682d827
Merge pull request #15356 from ganmacs/grpc-ruby-does-not-depends-on-googleauth
Grpc ruby does not need to depend on googleauth
2018-06-02 12:43:29 -07:00
apolcyn e08972b1a2
Merge pull request #15442 from apolcyn/error_message
Add more details to a resource exhausted ruby error
2018-05-18 17:40:09 -07:00
Alexander Polcyn 747fbca1e8 Add more details to a resource exhausted ruby error 2018-05-18 10:39:44 -07:00
apolcyn bdbf04cde1
Merge pull request #15354 from ganmacs/fix-math_client
Fix math client
2018-05-17 21:07:22 -07:00
ganmacs 520b2a0786 Fix a error message
To match the name with the code in #parse_args method.
2018-05-16 08:47:57 +09:00
ganmacs ad4312aaa9 Fix math-client
* insecure stub needs :this_channel_is_insecure as an argument
* timeout option should be set at initializing stub
* Should be set logger to output
* Remove debug print
2018-05-15 10:21:06 +09:00
ganmacs 61d9a42007 Moved pubsub demo_demo to examples directory of ruby
so that grpc does not depends on googleauth gem.

This project (pubsub demo) is introduced at [this
commit](d5d00d5c8f (diff-c495642bb64c09cae54f3ccff463bd51))
as demo project for grpc with ruby.
This demo is awesome. But the position of this project directory seems
to be not suitable for demo app. This project added unnecessary gem dependency about googleauth to grpc ruby gem.
2018-05-14 18:01:04 +09:00
ganmacs af48e68028 Remove print 2018-05-14 17:14:36 +09:00
Yang Gao e84ea53a13
Merge pull request #15252 from carl-mastrangelo/healthy
Update health.proto to match grpc-proto reference copy
2018-05-04 11:58:12 -07:00
Carl Mastrangelo 95fbb06ca8 regenerate pbs 2018-05-03 12:33:25 -07:00
Mehrdad Afshari 2d43a45ad1 Regenerate projects 2018-05-02 22:49:52 -07:00
Carl Mastrangelo d8306ec142 update ruby 2018-05-02 12:05:49 -07:00
kpayson64 7a20c962df Break out qps services into seperate protos 2018-04-18 22:13:09 -07:00
Yihua Zhang fe2fa0c1c8 Add C++ experimental API extensions for ALTS C stack 2018-04-16 15:11:32 -07:00
Jan Tattermusch 749f923c5b
Merge pull request #14945 from ara-ayvazyan/improve_log_perf
Avoid low severity log message construction
2018-04-12 08:56:40 +02:00
apolcyn 2fe68c8ad3
Merge pull request #15021 from apolcyn/fix_gcov_ruby
Fix a broken gcov test
2018-04-11 13:34:24 -07:00
Alexander Polcyn e8bced7db8 Fix codegen test under gcov config 2018-04-11 10:46:51 -07:00
Alexander Polcyn d3594987df fix race whereby we can call watch_connectivity_state on a destroyed channel 2018-04-05 03:49:53 -07:00
Jan Tattermusch 3095e350ac regenerate projects using tools/buildgen/generate_projects.sh 2018-04-05 09:41:03 +02:00
apolcyn 33b225616c
Merge pull request #14922 from apolcyn/ruby_bidi_error
Don't raise call errors for failed reads or writes of ruby bidi streams
2018-04-04 17:41:28 -07:00
Mehrdad Afshari 90cfc8ed57 Regenerate projects 2018-04-04 14:04:11 -07:00
Alexander Polcyn ae937d34d6 Never throw CallErrors for failed bidi reads or writes 2018-04-03 20:47:24 -07:00
apolcyn a9d16ccb3d
Merge pull request #13634 from hassox/ruby-module-name
Updates the ruby generator RubyTypeOf to correctly account for underscores in packages
2018-03-29 16:13:07 -07:00
everysick bae00e08cc Add test for verifying to get memory usage in client request 2018-03-29 09:13:55 +09:00
Daniel Neighman 8b7007ad7b Updates the ruby generator RubyAsType to correctly account for underscores in packages
Prior to this change, when the ruby generator tried to reference an entity that was not part of the same package
(or a direct parent package) and the package contains underscores,
the result would simply uppercase the first character.
It should however uppercase each letter that proceeds an underscore and remove underscores.

i.e.

```
package my_package.service;

import "my_package/data.proto";

service MyService {
  rpc Test (data.Request) returns data.Response {}
}
```

Was

```ruby
   # ...
   rpc :Test, My_package::Data::REquest, My_package::Data::Response
   # ...
```

Should be:

```ruby
   # ...
   rpc :Test, MyPackage::Data::REquest, My_package::Data::Response
   # ...
```
2018-03-26 16:00:05 -07:00
everysick dfc95159a6 Use GRPC_RB_MEMSIZE_UNAVAILABLE in grpc_rb_md_ary_data_type 2018-03-25 21:21:15 +09:00
apolcyn 9cb8be661a
Merge pull request #14705 from xambroz/ruby_format_strings
Ruby format strings
2018-03-23 16:02:18 -07:00
Noah Eisen dc93b71e53
Merge pull request #14751 from ncteisen/channel-tracing
[Fix Forward]: Channel Tracing Implementation; Part 1
2018-03-21 16:49:12 -07:00
Ruslan Nigmatullin 99d0cee31b regenerate projects 2018-03-20 09:18:29 -07:00
ncteisen 3b42f83068 Revert "Revert "Channel Tracing Implementation; Part 1""
This reverts commit f2bea3725f.
2018-03-19 13:22:35 -07:00
Noah Eisen f2bea3725f
Revert "Channel Tracing Implementation; Part 1" 2018-03-19 12:05:18 -07:00
ncteisen b93a006d64 Merge branch 'master' of https://github.com/grpc/grpc into channel-tracing 2018-03-15 13:46:28 -10:00
xambroz 831f4ea334
Enable checking for the string format issues
Enable checking for the string format issues because:
1) Fedora and Ubuntu have format checking generating errors as mandatory for the ruby gem builds.
 If "-Wno-format" is hardcoded here it will collide and fail with the in-build option of -Werror=format-security passed to the make.

2) There was one potential format vulnerability found in rb_compression_options.c
2018-03-14 02:30:52 +00:00
xambroz 06a412c2e1
Fix potential format string vulnerability 2018-03-14 02:23:53 +00:00
nownabe fcc4b9b68c Fix ruby document
1. Organize collapsed ruby yard doc.

2. Update contents about ClientStub#bidi_streamer because
bidi#writes_done hasn't existed.

https://github.com/grpc/grpc/pull/14535#discussion_r171452923

3. Fix yardoc warnings.

Warings:

[warn]: Invalid tag format for @return in file `lib/grpc/core/time_consts.rb` near line 36
[warn]: @param tag has duplicate parameter name: set_input_stream_done
    in file `lib/grpc/generic/bidi_call.rb' near line 70
[warn]: Unknown tag @result in file `lib/grpc/generic/rpc_server.rb` near line 287
[warn]: @param tag has unknown parameter name:
    in file `lib/grpc/generic/interceptors.rb' near line 158
[warn]: In file `lib/grpc/generic/rpc_server.rb':217: Cannot resolve link to key: from text:
        ...{key: val, ..}
[warn]: In file `lib/grpc/generic/rpc_server.rb':217:
Cannot resolve link to key: from text:
        ...{key: val, ..}
2018-03-13 14:13:46 +09:00
ncteisen c1284576f8 Fix build and sanity 2018-03-02 16:20:50 -08:00
ncteisen ee013d25b3 Fix build and sanity 2018-03-02 11:38:32 -08:00
Mehrdad Afshari 9073ea03ef Regenerate projects 2018-02-22 22:21:33 -08:00
Vijay Pai c745690caf Internalize gpr_thd except for id and currentid 2018-02-12 11:44:52 -08:00
apolcyn 90dde8f136
Merge pull request #14134 from apolcyn/fix_ruby_shutdown_race
Refactor ruby server shutdown to fix a race in tests
2018-02-09 18:03:30 -08:00
apolcyn f3431e5b21
Merge pull request #14132 from apolcyn/fix_benign_compression_options_mem_leak
Fix two ruby memory leaks when exceptions are raised
2018-02-08 18:56:37 -08:00
Vijay Pai 18b9133f31 Merge branch 'master' into gpr_review 2018-02-08 12:18:09 -08:00
Vijay Pai 239b7d4b0b Merge branch 'master' into gpr_review 2018-02-08 11:08:41 -08:00
Vijay Pai 573717bc8d Merge branch 'master' into gpr_review3 2018-02-08 10:21:11 -08:00
Vijay Pai 32748c1b2a Merge branch 'master' into gpr_review3 2018-02-08 10:06:23 -08:00
Vijay Pai b1ef84a7fd Merge branch 'master' into gpr_review_host_port 2018-02-07 11:12:35 -08:00
Muxi Yan cda058de8e build projects 2018-02-06 18:17:42 -08:00
Muxi Yan 99f1a8f467 Remove compression_ruby 2018-02-06 18:17:42 -08:00
Alexander Polcyn d60ed8f1f8 Guarantee no race between ruby server's shutdown_and_notify and destroy 2018-02-06 11:13:06 -08:00
Shohei Kamimori 35367cc3ed fix typo 2018-02-05 18:46:41 +09:00
Vijay Pai 1acfaca3e6 Merge branch 'master' into gpr_review_host_port 2018-02-02 11:21:07 -08:00
Vijay Pai d4d0a30c6f Privatize useful.h and avl.h 2018-02-02 09:16:44 -08:00
Vijay Pai 4c0640ebd6
Merge branch 'master' into gpr_review3 2018-02-02 09:12:11 -08:00