Skip to content

Ruby run_ruby.sh test timeout  #37234

@veblush

Description

@veblush

What version of gRPC and what language are you using?

gRPC Ruby on master

What operating system (Linux, Windows,...) and version?

Linux

What runtime / compiler are you using (e.g. python version or version of gcc)

Ruby 3.0.5

What did you do?

The following is a step to reproduce this issue locally using a docker image. Note that this is flaky so you need to run multiple times to see the issue. Once it's reproduced, it's stuck.

docker run -it --rm us-docker.pkg.dev/grpc-testing/testing-images-public/ruby_debian11_x64:6dfb957e5de39c71c1ca45338a975f7f98bd59d7@sha256:6e8b4696ba0661f11a31ed0992a94d2efcd889a018f57160f0e2fb62963f3593 /bin/bash -l "$0"
chown -R "$(id -u)" /usr/local/rvm
cd ~
git clone https://github.com/grpc/grpc
cd grpc
git submodule update --init
tools/run_tests/helper_scripts/pre_build_ruby.sh
tools/run_tests/helper_scripts/build_ruby.sh
rake

What did you expect to see?

Test passed

What did you see instead?

It's stuck while running hte test

Anything else we should know about your project / environment?

Kokoro test has been timed out quite often (more than 60%) recently. This is an example and the following is the last message just before it got stuck.

I0000 00:00:1721160926.455392   21772 server.cc:1797] Completion queue of type 1 is being registered as a server-completion-queue
I0000 00:00:1721160926.457406   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
      should not crash when call used after client streaming finished
I0000 00:00:1721160926.471217   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
I0000 00:00:1721160926.471370   21772 server.cc:1797] Completion queue of type 1 is being registered as a server-completion-queue
I0000 00:00:1721160926.473198   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
      should not crash when call used after server streaming finished
I0000 00:00:1721160926.485441   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
I0000 00:00:1721160926.485582   21772 server.cc:1797] Completion queue of type 1 is being registered as a server-completion-queue
I0000 00:00:1721160926.487254   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
      should not crash when call used after a bidi call is finished

GRPC::GenericService::Dsl
  can be included in new classes

GRPC::GenericService
  #underscore
    should convert CamelCase to underscore separated
  including it
    adds a class method, rpc
    adds rpc descs using the added class method, #rpc
    give subclasses access to #rpc_descs
    adds a default service name
    adds a default service name to subclasses
    adds the specified service name
    adds the specified service name to subclasses
  #include
    raises if #rpc is missing an arg
    is ok for services that expect the default {un,}marshal methods
    is ok for services that override the default {un,}marshal methods
    when #rpc args are incorrect
      raises if an arg does not have the marshal or unmarshal methods
      raises if a type arg only has the marshal method
      raises if a type arg only has the unmarshal method
  #rpc_stub_class
    generates a client class that defines any of the rpc methods
    the generated instances
I0000 00:00:1721160926.531493   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
      can be instanciated with just a hostname and credentials
I0000 00:00:1721160926.533793   21772 rb_grpc.c:331] GRPC_RUBY: grpc_ruby_init_threads g_bg_thread_init_done=1
      has the methods defined in the service

Finished in 0.98798 seconds (files took 0.51765 seconds to load)
150 examples, 0 failures

Coverage report generated for idiomatic, wrapper to /var/local/git/grpc/coverage. 1001 / 1110 LOC (90.18%) covered.

2024-07-16 20:24:49,926 TIMEOUT: tools/run_tests/helper_scripts/run_ruby.sh [pid=18817, time=605.8sec]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions