Skip to content

samples.snippets.publisher_test: test_resume_publish_with_error_handler failed #217

@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

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


commit: 7228f6c
buildURL: Build Status, Sponge
status: failed

Test output
args = (topic: "projects/python-docs-samples-tests/topics/publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c"
,)
kwargs = {'metadata': [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c'), ('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:57:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f115f744da0>
request = topic: "projects/python-docs-samples-tests/topics/publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c"

timeout = None
metadata = [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c'), ('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:826:


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

def _end_unary_response_blocking(state, call, with_call, deadline):
    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)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.NOT_FOUND
E details = "Resource not found (resource=publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c)."
E debug_error_string = "{"created":"@1601629662.820561737","description":"Error received from peer ipv4:173.194.202.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Resource not found (resource=publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c).","grpc_status":5}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:729: _InactiveRpcError

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

client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f115f761588>

@pytest.fixture
def topic_publish(client):
    topic_path = client.topic_path(PROJECT, TOPIC_PUBLISH)

    try:
        topic = client.get_topic(request={"topic": topic_path})
    except:  # noqa
        topic = client.create_topic(request={"name": topic_path})

    yield topic.name
  client.delete_topic(request={"topic": topic.name})

publisher_test.py:61:


../../google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
../../google/pubsub_v1/services/publisher/client.py:883: in delete_topic
request, retry=retry, timeout=timeout, metadata=metadata,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:59: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.NOT_FOUND
details = "Resource not found (resourc...age":"Resource not found (resource=publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c).","grpc_status":5}"

???
E google.api_core.exceptions.NotFound: 404 Resource not found (resource=publisher-test-topic-publish-19fde27fa8bd4912842ab66acabb8a9c).

:3: NotFound

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.samplesIssues that are directly related to samples.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