Skip to content

tests.system.test_notification: test_notification_create_w_user_project failed #936

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

Test output
args = (name: "projects/None/topics/notification-1669697704190"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/None/topics/notification-1669697704190'), ('x-goog-api-client', 'gl-python/3.8.13 grpc/1.51.0rc1 gax/2.10.2 gapic/1.7.2')], 'timeout': 60.0}
@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

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


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f8fd603cfd0>
request = name: "projects/None/topics/notification-1669697704190"

timeout = 60.0
metadata = [('x-goog-request-params', 'name=projects/None/topics/notification-1669697704190'), ('x-goog-api-client', 'gl-python/3.8.13 grpc/1.51.0rc1 gax/2.10.2 gapic/1.7.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/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7f8fd5bd5e20>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f8fd4055e00>
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 = "Requested project not found or user does not have access to it (project=None). Make sure to specify the unique project identifier and not the Google Cloud Console display name."
E debug_error_string = "UNKNOWN:Error received from peer ipv4:74.125.195.95:443 {created_time:"2022-11-29T04:55:06.407778752+00:00", grpc_status:5, grpc_message:"Requested project not found or user does not have access to it (project=None). Make sure to specify the unique project identifier and not the Google Cloud Console display name."}"
E >

.nox/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

storage_client = <google.cloud.storage.client.Client object at 0x7f8fd6442be0>
publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f8fd6686cd0>
topic_path = 'projects/None/topics/notification-1669697704190', no_mtls = None

@pytest.fixture(scope="session")
def notification_topic(storage_client, publisher_client, topic_path, no_mtls):
  _helpers.retry_429(publisher_client.create_topic)(topic_path)

tests/system/test_notification.py:62:


.nox/system-3-8/lib/python3.8/site-packages/test_utils/retry.py:100: in wrapped_function
return to_wrap(*args, **kwargs)
.nox/system-3-8/lib/python3.8/site-packages/google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
.nox/system-3-8/lib/python3.8/site-packages/google/cloud/pubsub_v1/gapic/publisher_client.py:347: in create_topic
return self._inner_api_calls["create_topic"](
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:154: in call
return wrapped_func(*args, **kwargs)
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:283: in retry_wrapped_func
return retry_target(
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:190: in retry_target
return target()
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/timeout.py:210: in func_with_timeout
return func(*args, **kwargs)


args = (name: "projects/None/topics/notification-1669697704190"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/None/topics/notification-1669697704190'), ('x-goog-api-client', 'gl-python/3.8.13 grpc/1.51.0rc1 gax/2.10.2 gapic/1.7.2')], '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.NotFound: 404 Requested project not found or user does not have access to it (project=None). Make sure to specify the unique project identifier and not the Google Cloud Console display name.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the googleapis/python-storage API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to 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