Shopify / Shopify/semian

Random failed tests

Open
#401 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted Semian
Dominant language
Ruby
Stars
1.5k
Forks
88
Avg merge
3d 19h
Merged PRs (30d)
5

Description

$ bundle exec ruby -Itest test/resource_test.rb


 9) Failure:
TestGRPC#test_circuit_breaker_on_client_streamer_return_op [/workspace/test/adapters/grpc_test.rb:215]:
[GRPC::DeadlineExceeded] exception expected, not
Class: <GRPC::Unavailable>
Message: <"[0.0.0.1:0] 14:failed to connect to all addresses. debug_error_string:{\"created\":\"@1662745388.698313140\",\"description\":\"Failed to pick subchannel\",\"file\":\"src/core/ext/filters/client_channel/client_channel.cc\",\"file_line\":3217,\"referenced_errors\":[{\"created\":\"@1662745388.698293641\",\"description\":\"failed to connect to all addresses\",\"file\":\"src/core/lib/transport/error_utils.cc\",\"file_line\":165,\"grpc_status\":14}]}">
---Backtrace---
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/active_call.rb:29:in `check_status'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/active_call.rb:186:in `attach_status_results_and_complete_call'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/active_call.rb:175:in `receive_and_check_status'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/active_call.rb:404:in `rescue in client_streamer'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/active_call.rb:403:in `client_streamer'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/client_stub.rb:251:in `block (2 levels) in client_streamer'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/interceptors.rb:170:in `intercept!'
/usr/local/bundle/gems/grpc-1.46.3/src/ruby/lib/grpc/generic/client_stub.rb:250:in `block in client_streamer'
/workspace/lib/semian/grpc.rb:120:in `call'
/workspace/lib/semian/grpc.rb:120:in `block (2 levels) in handle_operation'
/workspace/lib/semian/adapter.rb:74:in `mark_resource_as_acquired'
/workspace/lib/semian/adapter.rb:38:in `block in acquire_semian_resource'
/workspace/lib/semian/protected_resource.rb:30:in `block (2 levels) in acquire'
/workspace/lib/semian/protected_resource.rb:59:in `block in acquire_bulkhead'
/workspace/lib/semian/protected_resource.rb:58:in `acquire'
/workspace/lib/semian/protected_resource.rb:58:in `acquire_bulkhead'
/workspace/lib/semian/protected_resource.rb:28:in `block in acquire'
/workspace/lib/semian/protected_resource.rb:46:in `block in acquire_circuit_breaker'
/workspace/lib/semian/circuit_breaker.rb:168:in `maybe_with_half_open_resource_timeout'
/workspace/lib/semian/circuit_breaker.rb:39:in `acquire'
/workspace/lib/semian/protected_resource.rb:45:in `acquire_circuit_breaker'
/workspace/lib/semian/protected_resource.rb:27:in `acquire'
/workspace/lib/semian/adapter.rb:37:in `acquire_semian_resource'
/workspace/lib/semian/grpc.rb:120:in `block in handle_operation'
/workspace/test/adapters/grpc_test.rb:216:in `block (2 levels) in open_circuit!'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running bundle exec ruby -Itest test/resource_test.rb, then inspect test/adapters/grpc_test.rb:215-216 and the Semian call path in lib/semian/grpc.rb. Reproduce the intermittent failure and determine why the test receives GRPC::Unavailable instead of GRPC::DeadlineExceeded; done means the test reliably passes with the intended exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, ruby
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.