Skip to content

tests.system: test_listing_topic_subscriptions[rest-grpc] failed #995

@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: bf935ed
buildURL: Build Status, Sponge
status: failed

Test output
args = (name: "projects/precise-truck-742/subscriptions/sub-3.1694636928418"
topic: "projects/precise-truck-742/topics/topic-1.1694636923459"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/precise-truck-742/subscriptions/sub-3.1694636928418'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.58.0 gax/2.11.1 gccl/2.18.4')], '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 0x7f18b0134df0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f18b0122540>
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-13T20:29:52.703219251+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 0x7f18b011a110>
subscriber = <google.cloud.pubsub_v1.SubscriberClient object at 0x7f18b01190f0>
project = 'precise-truck-742'
cleanup = [(<bound method PublisherClient.delete_topic of <google.cloud.pubsub_v1.PublisherClient object at 0x7f18b011a110>>, ()...ient object at 0x7f18b01190f0>>, (), {'subscription': 'projects/precise-truck-742/subscriptions/sub-3.1694636928418'})]

def test_listing_topic_subscriptions(publisher, subscriber, project, cleanup):
    # create topics
    topic_paths = [
        publisher.topic_path(project, "topic-1" + unique_resource_id(".")),
        publisher.topic_path(project, "topic-2" + unique_resource_id(".")),
    ]
    for topic in topic_paths:
        cleanup.append((publisher.delete_topic, (), {"topic": topic}))
        publisher.create_topic(name=topic)

    # create subscriptions
    subscription_paths = [
        subscriber.subscription_path(
            project, "sub-{}".format(i) + unique_resource_id(".")
        )
        for i in range(1, 4)
    ]
    for i, subscription in enumerate(subscription_paths):
        topic = topic_paths[i % 2]
        cleanup.append(
            (subscriber.delete_subscription, (), {"subscription": subscription})
        )
      subscriber.create_subscription(name=subscription, topic=topic)

tests/system.py:366:


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/sub-3.1694636928418"
topic: "projects/precise-truck-742/topics/topic-1.1694636923459"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/precise-truck-742/subscriptions/sub-3.1694636928418'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.58.0 gax/2.11.1 gccl/2.18.4')], '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