grpc 1.38.0-x86_64-linux → 1.40.0-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/src/ruby/ext/grpc/extconf.rb +2 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +6 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +10 -1
- data/src/ruby/lib/grpc/2.4/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.5/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.6/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.7/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/3.0/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/test/xds_client.rb +19 -40
- metadata +34 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0597e474b7178df280fb3423f74742d8e97afebcab753b8f77b777b9713fc69a'
|
4
|
+
data.tar.gz: 0570cbaf04bfa4c96bf948bea9cb9c8b770910e2363d8418bce74541b84905b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de0f81a70a74f69a4095a533b49d18bcdf57f8e185a73fe5e05b8521f162a5d7edc3b8397f7779711dc0a39586f96b77a29ef9e594e02c92e63cfc9897fee973
|
7
|
+
data.tar.gz: 5ff4b207d6984c4082a9180b259497e5a78252fff9cfa50c98e4cde90a448c7fe515e67a0026da8de24863eb05a46d2d6978eb4208c6c7b9e79b4654a01909b7
|
@@ -56,6 +56,8 @@ if RUBY_PLATFORM =~ /darwin/
|
|
56
56
|
end
|
57
57
|
|
58
58
|
ENV['CPPFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE'
|
59
|
+
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_NAME_SUFFIX="\"RUBY\"" '
|
60
|
+
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"1.40.0\"" '
|
59
61
|
|
60
62
|
output_dir = File.expand_path(RbConfig::CONFIG['topdir'])
|
61
63
|
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
|
@@ -107,6 +107,7 @@ grpc_channelz_get_server_sockets_type grpc_channelz_get_server_sockets_import;
|
|
107
107
|
grpc_channelz_get_channel_type grpc_channelz_get_channel_import;
|
108
108
|
grpc_channelz_get_subchannel_type grpc_channelz_get_subchannel_import;
|
109
109
|
grpc_channelz_get_socket_type grpc_channelz_get_socket_import;
|
110
|
+
grpc_authorization_policy_provider_arg_vtable_type grpc_authorization_policy_provider_arg_vtable_import;
|
110
111
|
grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_from_fd_import;
|
111
112
|
grpc_server_add_insecure_channel_from_fd_type grpc_server_add_insecure_channel_from_fd_import;
|
112
113
|
grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
|
@@ -182,6 +183,8 @@ grpc_tls_server_authorization_check_config_create_type grpc_tls_server_authoriza
|
|
182
183
|
grpc_tls_server_authorization_check_config_release_type grpc_tls_server_authorization_check_config_release_import;
|
183
184
|
grpc_xds_credentials_create_type grpc_xds_credentials_create_import;
|
184
185
|
grpc_xds_server_credentials_create_type grpc_xds_server_credentials_create_import;
|
186
|
+
grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import;
|
187
|
+
grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
|
185
188
|
grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
|
186
189
|
grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
|
187
190
|
grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import;
|
@@ -392,6 +395,7 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
392
395
|
grpc_channelz_get_channel_import = (grpc_channelz_get_channel_type) GetProcAddress(library, "grpc_channelz_get_channel");
|
393
396
|
grpc_channelz_get_subchannel_import = (grpc_channelz_get_subchannel_type) GetProcAddress(library, "grpc_channelz_get_subchannel");
|
394
397
|
grpc_channelz_get_socket_import = (grpc_channelz_get_socket_type) GetProcAddress(library, "grpc_channelz_get_socket");
|
398
|
+
grpc_authorization_policy_provider_arg_vtable_import = (grpc_authorization_policy_provider_arg_vtable_type) GetProcAddress(library, "grpc_authorization_policy_provider_arg_vtable");
|
395
399
|
grpc_insecure_channel_create_from_fd_import = (grpc_insecure_channel_create_from_fd_type) GetProcAddress(library, "grpc_insecure_channel_create_from_fd");
|
396
400
|
grpc_server_add_insecure_channel_from_fd_import = (grpc_server_add_insecure_channel_from_fd_type) GetProcAddress(library, "grpc_server_add_insecure_channel_from_fd");
|
397
401
|
grpc_auth_property_iterator_next_import = (grpc_auth_property_iterator_next_type) GetProcAddress(library, "grpc_auth_property_iterator_next");
|
@@ -467,6 +471,8 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
467
471
|
grpc_tls_server_authorization_check_config_release_import = (grpc_tls_server_authorization_check_config_release_type) GetProcAddress(library, "grpc_tls_server_authorization_check_config_release");
|
468
472
|
grpc_xds_credentials_create_import = (grpc_xds_credentials_create_type) GetProcAddress(library, "grpc_xds_credentials_create");
|
469
473
|
grpc_xds_server_credentials_create_import = (grpc_xds_server_credentials_create_type) GetProcAddress(library, "grpc_xds_server_credentials_create");
|
474
|
+
grpc_authorization_policy_provider_static_data_create_import = (grpc_authorization_policy_provider_static_data_create_type) GetProcAddress(library, "grpc_authorization_policy_provider_static_data_create");
|
475
|
+
grpc_authorization_policy_provider_release_import = (grpc_authorization_policy_provider_release_type) GetProcAddress(library, "grpc_authorization_policy_provider_release");
|
470
476
|
grpc_raw_byte_buffer_create_import = (grpc_raw_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_byte_buffer_create");
|
471
477
|
grpc_raw_compressed_byte_buffer_create_import = (grpc_raw_compressed_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_compressed_byte_buffer_create");
|
472
478
|
grpc_byte_buffer_copy_import = (grpc_byte_buffer_copy_type) GetProcAddress(library, "grpc_byte_buffer_copy");
|
@@ -110,7 +110,7 @@ extern grpc_completion_queue_create_for_next_type grpc_completion_queue_create_f
|
|
110
110
|
typedef grpc_completion_queue*(*grpc_completion_queue_create_for_pluck_type)(void* reserved);
|
111
111
|
extern grpc_completion_queue_create_for_pluck_type grpc_completion_queue_create_for_pluck_import;
|
112
112
|
#define grpc_completion_queue_create_for_pluck grpc_completion_queue_create_for_pluck_import
|
113
|
-
typedef grpc_completion_queue*(*grpc_completion_queue_create_for_callback_type)(
|
113
|
+
typedef grpc_completion_queue*(*grpc_completion_queue_create_for_callback_type)(grpc_completion_queue_functor* shutdown_callback, void* reserved);
|
114
114
|
extern grpc_completion_queue_create_for_callback_type grpc_completion_queue_create_for_callback_import;
|
115
115
|
#define grpc_completion_queue_create_for_callback grpc_completion_queue_create_for_callback_import
|
116
116
|
typedef grpc_completion_queue*(*grpc_completion_queue_create_type)(const grpc_completion_queue_factory* factory, const grpc_completion_queue_attributes* attributes, void* reserved);
|
@@ -296,6 +296,9 @@ extern grpc_channelz_get_subchannel_type grpc_channelz_get_subchannel_import;
|
|
296
296
|
typedef char*(*grpc_channelz_get_socket_type)(intptr_t socket_id);
|
297
297
|
extern grpc_channelz_get_socket_type grpc_channelz_get_socket_import;
|
298
298
|
#define grpc_channelz_get_socket grpc_channelz_get_socket_import
|
299
|
+
typedef const grpc_arg_pointer_vtable*(*grpc_authorization_policy_provider_arg_vtable_type)(void);
|
300
|
+
extern grpc_authorization_policy_provider_arg_vtable_type grpc_authorization_policy_provider_arg_vtable_import;
|
301
|
+
#define grpc_authorization_policy_provider_arg_vtable grpc_authorization_policy_provider_arg_vtable_import
|
299
302
|
typedef grpc_channel*(*grpc_insecure_channel_create_from_fd_type)(const char* target, int fd, const grpc_channel_args* args);
|
300
303
|
extern grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_from_fd_import;
|
301
304
|
#define grpc_insecure_channel_create_from_fd grpc_insecure_channel_create_from_fd_import
|
@@ -521,6 +524,12 @@ extern grpc_xds_credentials_create_type grpc_xds_credentials_create_import;
|
|
521
524
|
typedef grpc_server_credentials*(*grpc_xds_server_credentials_create_type)(grpc_server_credentials* fallback_credentials);
|
522
525
|
extern grpc_xds_server_credentials_create_type grpc_xds_server_credentials_create_import;
|
523
526
|
#define grpc_xds_server_credentials_create grpc_xds_server_credentials_create_import
|
527
|
+
typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_static_data_create_type)(const char* authz_policy, grpc_status_code* code, const char** error_details);
|
528
|
+
extern grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import;
|
529
|
+
#define grpc_authorization_policy_provider_static_data_create grpc_authorization_policy_provider_static_data_create_import
|
530
|
+
typedef void(*grpc_authorization_policy_provider_release_type)(grpc_authorization_policy_provider* provider);
|
531
|
+
extern grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
|
532
|
+
#define grpc_authorization_policy_provider_release grpc_authorization_policy_provider_release_import
|
524
533
|
typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_create_type)(grpc_slice* slices, size_t nslices);
|
525
534
|
extern grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
|
526
535
|
#define grpc_raw_byte_buffer_create grpc_raw_byte_buffer_create_import
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -63,6 +63,8 @@ $shutdown = false
|
|
63
63
|
$rpc_config = RpcConfig.new
|
64
64
|
$rpc_config.init([:UNARY_CALL], {})
|
65
65
|
# These stats are shared across threads
|
66
|
+
$thread_results = Array.new
|
67
|
+
$thread_results_mu = Mutex.new
|
66
68
|
$accumulated_stats_mu = Mutex.new
|
67
69
|
$num_rpcs_started_by_method = {}
|
68
70
|
$num_rpcs_succeeded_by_method = {}
|
@@ -188,54 +190,28 @@ class TestTarget < Grpc::Testing::LoadBalancerStatsService::Service
|
|
188
190
|
end
|
189
191
|
end
|
190
192
|
|
191
|
-
|
192
|
-
def execute_rpc(op, fail_on_failed_rpcs, rpc_stats_key)
|
193
|
-
remote_peer = ""
|
194
|
-
status_code = 0
|
195
|
-
begin
|
196
|
-
op.execute
|
197
|
-
if op.metadata.key?('hostname')
|
198
|
-
remote_peer = op.metadata['hostname']
|
199
|
-
end
|
200
|
-
rescue GRPC::BadStatus => e
|
201
|
-
if fail_on_failed_rpcs
|
202
|
-
raise e
|
203
|
-
end
|
204
|
-
status_code = e.code
|
205
|
-
end
|
206
|
-
$accumulated_stats_mu.synchronize do
|
207
|
-
$accumulated_method_stats[rpc_stats_key].add_result(status_code)
|
208
|
-
if remote_peer.empty?
|
209
|
-
$num_rpcs_failed_by_method[rpc_stats_key] += 1
|
210
|
-
else
|
211
|
-
$num_rpcs_succeeded_by_method[rpc_stats_key] += 1
|
212
|
-
end
|
213
|
-
end
|
214
|
-
remote_peer
|
215
|
-
end
|
216
|
-
|
217
|
-
def execute_rpc_in_thread(op, rpc_stats_key)
|
193
|
+
def execute_rpc_in_thread(op, rpc)
|
218
194
|
Thread.new {
|
195
|
+
rpc_stats_key = rpc.to_s
|
196
|
+
remote_peer = ""
|
219
197
|
begin
|
220
198
|
op.execute
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
# balancing policy. These RPCs should not complete successfully.
|
225
|
-
# Doing this for consistency
|
199
|
+
if op.metadata.key?('hostname')
|
200
|
+
remote_peer = op.metadata['hostname']
|
201
|
+
end
|
226
202
|
$accumulated_stats_mu.synchronize do
|
227
203
|
$num_rpcs_succeeded_by_method[rpc_stats_key] += 1
|
228
204
|
$accumulated_method_stats[rpc_stats_key].add_result(0)
|
229
205
|
end
|
230
206
|
rescue GRPC::BadStatus => e
|
231
|
-
# Normal execution arrives here,
|
232
|
-
# either because of deadline_exceeded or "call dropped by load
|
233
|
-
# balancing policy"
|
234
207
|
$accumulated_stats_mu.synchronize do
|
235
208
|
$num_rpcs_failed_by_method[rpc_stats_key] += 1
|
236
209
|
$accumulated_method_stats[rpc_stats_key].add_result(e.code)
|
237
210
|
end
|
238
211
|
end
|
212
|
+
$thread_results_mu.synchronize do
|
213
|
+
$thread_results << [rpc, remote_peer]
|
214
|
+
end
|
239
215
|
}
|
240
216
|
end
|
241
217
|
|
@@ -282,12 +258,15 @@ def run_test_loop(stub, target_seconds_between_rpcs, fail_on_failed_rpcs)
|
|
282
258
|
else
|
283
259
|
raise "Unsupported rpc #{rpc}"
|
284
260
|
end
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
261
|
+
keep_open_threads << execute_rpc_in_thread(op, rpc)
|
262
|
+
end
|
263
|
+
# collect results from threads
|
264
|
+
$thread_results_mu.synchronize do
|
265
|
+
$thread_results.each do |r|
|
266
|
+
rpc_name, remote_peer = r
|
267
|
+
results[rpc_name] = remote_peer
|
290
268
|
end
|
269
|
+
$thread_results = Array.new
|
291
270
|
end
|
292
271
|
$watchers_mutex.synchronize do
|
293
272
|
$watchers.each do |watcher|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.40.0
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -354,51 +354,51 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
354
|
- !ruby/object:Gem::Version
|
355
355
|
version: '0'
|
356
356
|
requirements: []
|
357
|
-
rubygems_version: 3.2.
|
357
|
+
rubygems_version: 3.2.27
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: GRPC system in Ruby
|
361
361
|
test_files:
|
362
|
-
- src/ruby/spec/
|
363
|
-
- src/ruby/spec/
|
364
|
-
- src/ruby/spec/testdata/ca.pem
|
365
|
-
- src/ruby/spec/testdata/README
|
366
|
-
- src/ruby/spec/testdata/client.pem
|
367
|
-
- src/ruby/spec/testdata/server1.key
|
368
|
-
- src/ruby/spec/compression_options_spec.rb
|
369
|
-
- src/ruby/spec/error_sanity_spec.rb
|
370
|
-
- src/ruby/spec/user_agent_spec.rb
|
371
|
-
- src/ruby/spec/call_spec.rb
|
372
|
-
- src/ruby/spec/pb/health/checker_spec.rb
|
373
|
-
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
362
|
+
- src/ruby/spec/google_rpc_status_utils_spec.rb
|
363
|
+
- src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
|
374
364
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
|
375
365
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
|
376
366
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
|
377
|
-
- src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
|
378
367
|
- src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
|
379
368
|
- src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
|
380
369
|
- src/ruby/spec/pb/codegen/package_option_spec.rb
|
381
|
-
- src/ruby/spec/
|
382
|
-
- src/ruby/spec/
|
383
|
-
- src/ruby/spec/
|
384
|
-
- src/ruby/spec/client_server_spec.rb
|
385
|
-
- src/ruby/spec/server_spec.rb
|
386
|
-
- src/ruby/spec/spec_helper.rb
|
370
|
+
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
371
|
+
- src/ruby/spec/pb/health/checker_spec.rb
|
372
|
+
- src/ruby/spec/errors_spec.rb
|
387
373
|
- src/ruby/spec/support/helpers.rb
|
388
374
|
- src/ruby/spec/support/services.rb
|
389
|
-
- src/ruby/spec/
|
390
|
-
- src/ruby/spec/
|
391
|
-
- src/ruby/spec/
|
375
|
+
- src/ruby/spec/client_server_spec.rb
|
376
|
+
- src/ruby/spec/testdata/client.key
|
377
|
+
- src/ruby/spec/testdata/README
|
378
|
+
- src/ruby/spec/testdata/client.pem
|
379
|
+
- src/ruby/spec/testdata/ca.pem
|
380
|
+
- src/ruby/spec/testdata/server1.pem
|
381
|
+
- src/ruby/spec/testdata/server1.key
|
382
|
+
- src/ruby/spec/server_spec.rb
|
392
383
|
- src/ruby/spec/client_auth_spec.rb
|
393
|
-
- src/ruby/spec/
|
394
|
-
- src/ruby/spec/
|
395
|
-
- src/ruby/spec/
|
396
|
-
- src/ruby/spec/generic/client_interceptors_spec.rb
|
397
|
-
- src/ruby/spec/generic/active_call_spec.rb
|
398
|
-
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
384
|
+
- src/ruby/spec/user_agent_spec.rb
|
385
|
+
- src/ruby/spec/channel_spec.rb
|
386
|
+
- src/ruby/spec/generic/service_spec.rb
|
399
387
|
- src/ruby/spec/generic/rpc_server_spec.rb
|
388
|
+
- src/ruby/spec/generic/server_interceptors_spec.rb
|
400
389
|
- src/ruby/spec/generic/interceptor_registry_spec.rb
|
401
|
-
- src/ruby/spec/generic/rpc_desc_spec.rb
|
402
390
|
- src/ruby/spec/generic/client_stub_spec.rb
|
403
|
-
- src/ruby/spec/generic/
|
404
|
-
- src/ruby/spec/generic/
|
391
|
+
- src/ruby/spec/generic/rpc_desc_spec.rb
|
392
|
+
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
393
|
+
- src/ruby/spec/generic/active_call_spec.rb
|
394
|
+
- src/ruby/spec/generic/client_interceptors_spec.rb
|
395
|
+
- src/ruby/spec/compression_options_spec.rb
|
396
|
+
- src/ruby/spec/spec_helper.rb
|
397
|
+
- src/ruby/spec/call_credentials_spec.rb
|
398
|
+
- src/ruby/spec/error_sanity_spec.rb
|
399
|
+
- src/ruby/spec/time_consts_spec.rb
|
400
|
+
- src/ruby/spec/call_spec.rb
|
401
|
+
- src/ruby/spec/channel_connection_spec.rb
|
402
|
+
- src/ruby/spec/channel_credentials_spec.rb
|
403
|
+
- src/ruby/spec/server_credentials_spec.rb
|
404
|
+
- src/ruby/spec/debug_message_spec.rb
|