Skip to content

tests.system.TestBasicRBAC: test_editor_role_can_create_resources[grpc-grpc] failed #922

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

Test output
args = (snapshot: "projects/precise-truck-742/snapshots/snap-1684788279469"
,)
kwargs = {'metadata': [('x-goog-request-params', 'snapshot=projects/precise-truck-742/snapshots/snap-1684788279469'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.55.0rc1 gax/2.11.0 gccl/2.17.0')], '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:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fa9a270f730>
request = snapshot: "projects/precise-truck-742/snapshots/snap-1684788279469"

timeout = 60.0
metadata = [('x-goog-request-params', 'snapshot=projects/precise-truck-742/snapshots/snap-1684788279469'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.55.0rc1 gax/2.11.0 gccl/2.17.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request: Any,
             timeout: Optional[float] = None,
             metadata: Optional[MetadataType] = None,
             credentials: Optional[grpc.CallCredentials] = None,
             wait_for_ready: Optional[bool] = None,
             compression: Optional[grpc.Compression] = None) -> Any:
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

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


state = <grpc._channel._RPCState object at 0x7fa9a02539a0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fa9a00f56c0>
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.NOT_FOUND
E details = "Resource not found (resource=snap-1684788279469)."
E debug_error_string = "UNKNOWN:Error received from peer ipv4:74.125.197.95:443 {grpc_message:"Resource not found (resource=snap-1684788279469).", grpc_status:5, created_time:"2023-05-22T20:45:43.342055373+00:00"}"
E >

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

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

@pytest.fixture
def cleanup():
    registry = []
    yield registry

    # Perform all clean up.
    for to_call, args, kwargs in registry:
      to_call(*args, **kwargs)

tests/system.py:87:


google/pubsub_v1/services/subscriber/client.py:2300: in delete_snapshot
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 = (snapshot: "projects/precise-truck-742/snapshots/snap-1684788279469"
,)
kwargs = {'metadata': [('x-goog-request-params', 'snapshot=projects/precise-truck-742/snapshots/snap-1684788279469'), ('x-goog-api-client', 'gl-python/3.10.5 grpc/1.55.0rc1 gax/2.11.0 gccl/2.17.0')], '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 Resource not found (resource=snap-1684788279469).

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

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