Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

samples.snippets.quickstart_searchalliampolicies_test: test_search_all_iam_policies failed #270

Closed
flaky-bot bot opened this issue Aug 21, 2021 · 2 comments
Labels
api: cloudasset Issues related to the googleapis/python-asset API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Aug 21, 2021

Note: #242 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


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

Test output
args = (scope: "projects/python-docs-samples-tests-py37"
query: "policy:roles/owner"
,)
kwargs = {'metadata': [('x-goog-request-params', 'scope=projects/python-docs-samples-tests-py37'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.39.0 gax/1.31.2 gapic/3.3.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f39a0921910>
request = scope: "projects/python-docs-samples-tests-py37"
query: "policy:roles/owner"

timeout = None
metadata = [('x-goog-request-params', 'scope=projects/python-docs-samples-tests-py37'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.39.0 gax/1.31.2 gapic/3.3.0')]
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-7/lib/python3.7/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7f39a08bd190>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f39a08bad70>
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.RESOURCE_EXHAUSTED
E details = "Resource has been exhausted (e.g. check quota)."
E debug_error_string = "{"created":"@1629540525.046946965","description":"Error received from peer ipv4:74.125.199.95:443","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"Resource has been exhausted (e.g. check quota).","grpc_status":8}"
E >

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

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

capsys = <_pytest.capture.CaptureFixture object at 0x7f39a0936ed0>

def test_search_all_iam_policies(capsys):
    scope = "projects/{}".format(PROJECT)
    query = "policy:roles/owner"
  quickstart_searchalliampolicies.search_all_iam_policies(scope, query=query)

quickstart_searchalliampolicies_test.py:27:


quickstart_searchalliampolicies.py:31: in search_all_iam_policies
request={"scope": scope, "query": query, "page_size": page_size}
.nox/py-3-7/lib/python3.7/site-packages/google/cloud/asset_v1/services/asset_service/client.py:1300: in search_all_iam_policies
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:291: in retry_wrapped_func
on_error=on_error,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:189: in retry_target
return target()
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:69: 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.RESOURCE_EXHAUSTED
details = "Resource has been .../surface/call.cc","file_line":1069,"grpc_message":"Resource has been exhausted (e.g. check quota).","grpc_status":8}"

???
E google.api_core.exceptions.ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).

:3: ResourceExhausted

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 21, 2021
@product-auto-label product-auto-label bot added api: cloudasset Issues related to the googleapis/python-asset API. samples Issues that are directly related to samples. labels Aug 21, 2021
@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Aug 21, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Aug 21, 2021

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (da6e852), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@parthea
Copy link
Contributor

parthea commented Aug 26, 2021

Closing as this is a quota issue.

@parthea parthea closed this as completed Aug 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudasset Issues related to the googleapis/python-asset API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant