Commit Graph

1373 Commits

Author SHA1 Message Date
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
Vijay Pai e5b0a50416
Merge pull request #14015 from vjpai/alarm
Remove alarm from core, implement in C++ layer only
2018-02-02 08:44:20 -08:00
Vijay Pai ae376bf9d9 Privatize host_port.h; was not used in any wrapped language implementation 2018-01-25 23:06:24 -08:00
Vijay Pai 8a99fdb57e Move cmdline and subprocess from public gpr to test/core/util 2018-01-25 20:11:38 -08:00
Muxi Yan fd900e09fb Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2018-01-24 16:16:23 -08:00
Alexander Polcyn 7b87bab832 Refactor ruby server shutdown to fix a race 2018-01-22 23:43:39 -08:00
Alexander Polcyn 443165f88f Fix two ruby memory leaks when exceptions are raised 2018-01-22 19:37:23 -08:00
Mark D. Roth 62569dd978 Fix arena to return aligned memory. 2018-01-22 12:51:03 -08:00
Vijay Pai 2b226adf60 Remove alarm from core, implement in C++ layer only 2018-01-21 21:03:56 -08:00
Mehrdad Afshari 43884047c9 Regenerate projects 2018-01-19 14:25:15 -08:00
Muxi Yan fb061c329a Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2018-01-19 12:20:15 -08:00
Jan Tattermusch e5b7ddd59c
Merge pull request #13363 from grpc/revert-13346-revert-13322-oauth_failure
Revert "Revert "Switching from UNAUTHENTICATED to UNAVAILABLE for auth metadata failure""
2018-01-16 18:21:23 +01:00
apolcyn 8ecabd987b
Merge pull request #13777 from frankyn/patch-1
[Ruby] Specify module init in README
2017-12-18 13:01:24 -08:00
apolcyn 2ebb168ac7
Merge pull request #13774 from apolcyn/disable_soreuseport_in_ruby_tests
Tentatively disable so_reuseport in ruby tests
2017-12-15 10:37:11 -08:00
Frank Natividad 235a2e74b2
[Ruby] Specify module init after cloning repo 2017-12-14 02:48:55 -07:00
Alexander Polcyn b14f1ea602 Disable soreuseport in ruby unit tests 2017-12-13 16:43:00 -08:00
Jan Tattermusch a2044f83c6 metadata plugin update statuses in wrapped langs 2017-12-14 00:17:25 +01:00
Muxi Yan 032e9b32dc Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-13 14:04:45 -08:00
Mehrdad Afshari c5ba665b22 Merge remote-tracking branch 'origin/v1.8.x' 2017-12-11 11:32:11 -08:00
Mehrdad Afshari 0ba96edc41 v1.8.0-pre2 is now v1.8.0 2017-12-12 14:01:25 -08:00
apolcyn 5663eac718
Merge pull request #13696 from apolcyn/update_ruby_for_cpp_core
Move a CFLAG to be a CPPFLAG when building core for ruby
2017-12-08 18:14:25 -08:00
Alexander Polcyn ebcc6b398d Update extconf.rb for c++ conversion, move CFLAGS to CPPFLAGS when
compiling core.
2017-12-08 15:40:24 -08:00
Muxi Yan 99024d6436 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-08 14:02:18 -08:00
Muxi Yan 5c5bafff5a Merge commit '94e676e^2' into fix-stream-compression-config-interface 2017-12-08 10:39:22 -08:00
Yash Tibrewal d6c292f177 Merge master 2017-12-07 19:38:43 -08:00
Muxi Yan 9c02a3cca1 Do not separate message/stream compression levels 2017-12-07 19:02:22 -08:00
Alexander Polcyn f7a869fdbe Unref global backup poller under its lock 2017-12-07 09:59:15 -08:00
Muxi Yan 6043006af1 Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-12-06 22:29:12 -08:00
Muxi Yan fc38142db6 Merge commit 'b0bad8f^' into fix-stream-compression-config-interface 2017-12-06 22:02:08 -08:00
Muxi Yan 38fcd0c6c3 clang-format 2017-12-06 18:55:05 -08:00
Muxi Yan 4a117f0be7 Merge e759d2a^ 2017-12-06 18:47:16 -08:00
Yash Tibrewal 8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed"" 2017-12-06 09:47:54 -08:00
Yash Tibrewal ad4d2dde00
Revert "All instances of exec_ctx being passed around in src/core removed" 2017-12-06 09:05:05 -08:00
Yash Tibrewal a3df36cc25
Merge pull request #13058 from yashykt/execctx
All instances of exec_ctx being passed around in src/core removed
2017-12-05 21:19:52 -08:00
Vijay Pai 770bf078d5 Regen projects and fix more uses of gpr_thd_new 2017-12-05 16:09:20 -06:00
yashkt d9f6407190 Merge master into execctx after removal of assert in tls_gcc 2017-12-04 09:41:12 -08:00
Vijay Pai 195cf1ebfd Move histogram to test/core/util 2017-11-30 15:02:04 -08:00
Yash Tibrewal 10f2790f7f Merge branch 'master' into execctx 2017-11-30 10:54:42 -08:00
Nicolas "Pixel" Noble 7d199c95a2 Merge branch 'master' of https://github.com/grpc/grpc into v1.8.x 2017-11-30 09:08:01 +01:00
Mehrdad Afshari d39d007e8f
Merge pull request #13515 from mehrdada/bump-master-version
Bump 1.8.0-dev to 1.9.0-dev
2017-11-28 13:30:54 -08:00
apolcyn 17f94911f2
Merge pull request #13153 from bmarkons/patch-1
Add health statuses for multiple services at once
2017-11-28 13:22:18 -08:00
apolcyn 1972e5ce74
Merge pull request #12710 from apolcyn/speedup_ruby_end2end_tests
Fix a race in ruby server shutdown and cleanup for ruby tests
2017-11-27 23:27:50 -08:00
Alex Polcyn 81e9581bf3 Remove some sleeps in ruby tests and fix test server shutdown 2017-11-27 20:29:19 -08:00
Mehrdad Afshari 14e96f9ae8 Bump 1.8.0-dev to 1.9.0-dev 2017-11-27 17:14:15 -08:00
Mehrdad Afshari 552a7ca088 Bump 1.8.0-dev to 1.8.0-pre1 2017-11-27 16:51:21 -08:00
Muxi Yan fba967747c generate_projects 2017-11-27 14:39:28 -08:00
Marko Bogdanović 9f4a8eeced Add HealthChecker helpers for setting statuses 2017-11-18 10:59:57 +01:00
Yash Tibrewal 177039b2f8 Merge master 2017-11-16 19:31:28 -08:00
apolcyn 2e8bef1389
Merge pull request #13204 from apolcyn/fix_broken_ruby_20_for_master
Remove required keyword args in ruby, for master branch
2017-11-13 21:34:44 -08:00
Yash Tibrewal 4e9265c828 Merge with master 2017-11-09 17:46:29 -08:00
Yash Tibrewal 40422d5fa6 Merge master 2017-11-06 14:43:31 -08:00
Craig Tiller 44ab6a559c fix 2017-11-03 16:22:34 -07:00
Craig Tiller a64b2b13c1 Merge github.com:grpc/grpc into 50 2017-11-03 15:23:13 -07:00
Craig Tiller b32d72ef90 Sanity fixes 2017-11-03 10:31:53 -07:00
Craig Tiller baa14a975e Update clang-format to 5.0 2017-11-03 09:09:36 -07:00
Yash Tibrewal 2f921a3f97 Remove grpc_slice_buf_cmp and change public_headers_must_be_c89 to print the addresses of public api functions to check if they can be linked to 2017-11-02 16:59:19 -07:00
Alexander Polcyn 99fdda8c8e remove use of keyword args 2017-10-31 16:58:55 -07:00
Yash Tibrewal 888691344e Merge branch 'master' into testc++ize 2017-10-31 11:24:36 -07:00
Jim King 3e0769957e
Merge pull request #13106 from Vizerai/census_update
Cleaning up census code.
2017-10-31 11:10:00 -07:00
Yash Tibrewal 268685bcbd Merge branch 'master' into testc++ize 2017-10-30 16:28:56 -07:00
Justin Burke c1d354d7f2 Support SSL server certificate reloading. 2017-10-27 13:41:44 -07:00
Jim King 52620b698e Merge branch 'master' into census_update 2017-10-26 11:27:03 -07:00
Yash Tibrewal 3318979a5f Merge branch 'master' into testc++ize 2017-10-25 16:26:03 -07:00
Yash Tibrewal 34a57d0346 rename all test core files to cc and a lot of C++ style conversions 2017-10-25 16:23:01 -07:00
kpayson64 1bf7207852 Merge pull request #13084 from kpayson64/cq_lambda
CompletionQueue DoThenAsyncNext
2017-10-25 10:28:02 -07:00
Ken Payson 42bd87e376 Adds gRPC Experimental CQ DoThenAsyncNext lambda API 2017-10-25 09:13:30 -07:00
Feng Li 692bbf942c Merge pull request #12896 from pongad/ruby-php-bin
make ruby proxy worker accept script location
2017-10-23 16:54:40 -07:00
Vizerai bb7d088ed2 Cleaning up census code. 2017-10-23 12:06:29 -07:00
Yash Tibrewal 0ee7574732 Removing instances of exec_ctx being passed around in functions in
src/core. exec_ctx is now a thread_local pointer of type ExecCtx instead of
grpc_exec_ctx which is initialized whenever ExecCtx is instantiated. ExecCtx
also keeps track of the previous exec_ctx so that nesting of exec_ctx is
allowed. This means that there is only one exec_ctx being used at any
time. Also, grpc_exec_ctx_finish is called in the destructor of the
object, and the previous exec_ctx is restored to avoid breaking current
functionality. The code still explicitly calls grpc_exec_ctx_finish
because removing all such instances causes the code to break.
2017-10-18 17:12:19 -07:00
Alexander Polcyn 40d3062a76 Fix call object memory leak in ruby, when call object is closed 2017-10-17 17:39:57 -07:00
Michael Darakananda 410ba6dada format 2017-10-13 11:08:43 +11:00
Frank Groeneveld fbf8128da8 Add OpenBSD support 2017-10-12 13:50:38 -07:00
Alexander Polcyn 55b3617b5a update ruby extension to compression changes 2017-10-11 20:56:27 -07:00
Muxi Yan f7a97e19cf build_project 2017-10-11 16:59:27 -07:00
Muxi Yan 4c7bc85bd8 Revert changes to "identity" "deflate" "gzip" "stream-gzip" compression algorithm names at surface API
This reverts commit 6360274841.
This reverts commit 33d7a7aa5a.
2017-10-11 16:27:51 -07:00
Michael Darakananda 5e33a3b9de Merge branch 'master' into ruby-php-bin 2017-10-09 17:09:41 +11:00
Michael Darakananda bf6185c3b1 make ruby proxy worker accept script location
This is done so that we can test other PHP clients.
2017-10-09 17:04:46 +11:00
Muxi Yan 03fc857a6f Merge remote-tracking branch 'upstream/master' into fix-stream-compression-config-interface 2017-10-06 18:47:09 -07:00
Muxi Yan 6360274841 Make the names of compression algorithms backwards compatible at surface API 2017-10-06 17:25:40 -07:00
ZhouyihaiDing d015389823 exclude uploading stats, add unconstained php benchmark
php7 build once
2017-10-06 15:25:14 -07:00
Alexander Polcyn 8c12d9eae6 Add a test under ruby GC stress mode and fix non-GC-rooted variable bug 2017-10-05 09:31:48 -07:00
apolcyn e2b4e49f39 Merge pull request #12493 from apolcyn/fix_ruby_call_mem_leak
Fix a per-call memory leak in ruby
2017-10-04 18:21:29 -07:00
Muxi Yan 906f69c1df Fix Ruby build 2017-10-04 18:00:20 -07:00
Muxi Yan 74878c7bf5 Another Ruby build fix 2017-10-03 15:49:09 -07:00
Muxi Yan 532af94e78 Fix Ruby build 2017-10-02 18:17:16 -07:00
murgatroid99 9887379158 Update version to 1.8.0-dev, update g word to 'generous' 2017-10-02 17:31:33 -07:00
Zhouyihai Ding f9a39ac7e2 Merge pull request #12718 from ZhouyihaiDing/c_ext_php
PHP benchmark: add running php with protobuf C-extension
2017-10-02 16:17:22 -07:00
Mark D. Roth 6456e494a8 Merge remote-tracking branch 'upstream/master' into plugin_credentials_api_fix 2017-09-28 15:16:14 -07:00
Alexander Polcyn f1b1ab0899 return nil from google rpc status conversion if the grpc-status-details-bin trailer wasnt set 2017-09-26 12:32:29 -07:00