Skip to content

tests.system: test_subscribe_to_messages[rest-grpc] failed #990

@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: a31bbd3
buildURL: Build Status, Sponge
status: failed

Test output
args = (name: "projects/precise-truck-742/subscriptions/s-1694118224460-subscribe-to-messages"
topic: "projects/precise-truck-742/topics/t-1694118224457-subscribe-to-messages"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/precise-truck-742/subscriptions/s-1694118224460-subscribe-to-messages'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.58.0 gax/2.11.1 gccl/2.18.3')], 'timeout': 60.0}
@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/system-3-10/lib/python3.10/site-packages/google/api_core/grpc_helpers.py:72:


.nox/system-3-10/lib/python3.10/site-packages/grpc/_channel.py:1161: in call
return _end_unary_response_blocking(state, call, False, None)


state = <grpc._channel._RPCState object at 0x7f90b82c9cf0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f90ba3fa880>
with_call = False, deadline = None

def _end_unary_response_blocking(
    state: _RPCState,
    call: cygrpc.SegregatedCall,
    with_call: bool,
    deadline: Optional[float],
) -> Union[ResponseType, Tuple[ResponseType, grpc.Call]]:
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)  # pytype: disable=not-instantiable

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.DEADLINE_EXCEEDED
E details = "Deadline Exceeded"
E debug_error_string = "UNKNOWN:Deadline Exceeded {created_time:"2023-09-07T20:24:48.352407361+00:00", grpc_status:4}"
E >

.nox/system-3-10/lib/python3.10/site-packages/grpc/_channel.py:1004: _InactiveRpcError

The above exception was the direct cause of the following exception:

publisher = <google.cloud.pubsub_v1.PublisherClient object at 0x7f90b826de40>
topic_path_base = 'projects/precise-truck-742/topics/t-1694118224457'
subscription_path_base = 'projects/precise-truck-742/subscriptions/s-1694118224460'
cleanup = [(<bound method PublisherClient.delete_topic of <google.cloud.pubsub_v1.PublisherClient object at 0x7f90b826de40>>, ()...f90b82b17b0>>, (), {'subscription': 'projects/precise-truck-742/subscriptions/s-1694118224460-subscribe-to-messages'})]

def test_subscribe_to_messages(
    publisher, topic_path_base, subscription_path_base, cleanup
):
    subscriber = pubsub_v1.SubscriberClient(transport="grpc")
    # Customize topic path to test.
    topic_path = topic_path_base + "-subscribe-to-messages"
    subscription_path = subscription_path_base + "-subscribe-to-messages"
    # Make sure the topic and subscription get deleted.
    cleanup.append((publisher.delete_topic, (), {"topic": topic_path}))
    cleanup.append(
        (subscriber.delete_subscription, (), {"subscription": subscription_path})
    )

    # Create a topic.
    publisher.create_topic(name=topic_path)

    # Subscribe to the topic. This must happen before the messages
    # are published.
  subscriber.create_subscription(name=subscription_path, topic=topic_path)

tests/system.py:163:


google/pubsub_v1/services/subscriber/client.py:680: in create_subscription
response = rpc(
.nox/system-3-10/lib/python3.10/site-packages/google/api_core/gapic_v1/method.py:113: in call
return wrapped_func(*args, **kwargs)
.nox/system-3-10/lib/python3.10/site-packages/google/api_core/retry.py:349: in retry_wrapped_func
return retry_target(
.nox/system-3-10/lib/python3.10/site-packages/google/api_core/retry.py:191: in retry_target
return target()
.nox/system-3-10/lib/python3.10/site-packages/google/api_core/timeout.py:120: in func_with_timeout
return func(*args, **kwargs)


args = (name: "projects/precise-truck-742/subscriptions/s-1694118224460-subscribe-to-messages"
topic: "projects/precise-truck-742/topics/t-1694118224457-subscribe-to-messages"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/precise-truck-742/subscriptions/s-1694118224460-subscribe-to-messages'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.58.0 gax/2.11.1 gccl/2.18.3')], 'timeout': 60.0}

@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
        return callable_(*args, **kwargs)
    except grpc.RpcError as exc:
      raise exceptions.from_grpc_error(exc) from exc

E google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded

.nox/system-3-10/lib/python3.10/site-packages/google/api_core/grpc_helpers.py:74: DeadlineExceeded

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions