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 #242

Closed
flaky-bot bot opened this issue Jul 23, 2021 · 6 comments · Fixed by #253
Closed
Assignees
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. 🚨 This issue needs some love. 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 Jul 23, 2021

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

Test output
args = (scope: "projects/python-docs-samples-tests"
query: "policy:roles/owner"
,)
kwargs = {'metadata': [('x-goog-request-params', 'scope=projects/python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.39.0 gax/1.31.0 gapic/3.2.1')]}
@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 0x7f79845636d0>
request = scope: "projects/python-docs-samples-tests"
query: "policy:roles/owner"

timeout = None
metadata = [('x-goog-request-params', 'scope=projects/python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.39.0 gax/1.31.0 gapic/3.2.1')]
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 0x7f7984563390>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f798456d140>
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":"@1627034891.490723834","description":"Error received from peer ipv4:74.125.195.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 0x7f7985e6f090>

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}
../../google/cloud/asset_v1/services/asset_service/client.py:1253: 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:290: in retry_wrapped_func
on_error=on_error,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:188: 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 Jul 23, 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 Jul 23, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Jul 23, 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 (3111e5a), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Jul 23, 2021
@parthea parthea self-assigned this Jul 28, 2021
@parthea
Copy link
Contributor

parthea commented Jul 30, 2021

We may be able to resolve the RESOURCE_EXHAUSTED error by using separate projects for python 3.x samples builds. See #253

@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Jul 30, 2021
gcf-merge-on-green bot pushed a commit that referenced this issue Jul 30, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Aug 6, 2021

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


commit: 9670ed0
buildURL: Build Status, Sponge
status: failed

Test output
args = (scope: "projects/python-docs-samples-tests"
query: "policy:roles/owner"
,)
kwargs = {'metadata': [('x-goog-request-params', 'scope=projects/python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.39.0 gax/1.31.1 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 0x7f7323fca710>
request = scope: "projects/python-docs-samples-tests"
query: "policy:roles/owner"

timeout = None
metadata = [('x-goog-request-params', 'scope=projects/python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.39.0 gax/1.31.1 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 0x7f7323fc83d0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f7323fc70f0>
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":"@1628244665.286145076","description":"Error received from peer ipv4:142.250.99.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 0x7f7323ec73d0>

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}
../../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 reopened this Aug 6, 2021
@busunkim96
Copy link
Contributor

This failed on one of the nightlies because the library hasn't been released since #253 has been merged.

@flaky-bot flaky-bot bot reopened this Aug 7, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Aug 7, 2021

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


commit: 9670ed0
buildURL: Build Status, Sponge
status: failed

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

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


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

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


state = <grpc._channel._RPCState object at 0x7f9226ce3a00>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f9224c5a980>
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":"@1628334571.928210550","description":"Error received from peer ipv4:108.177.98.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-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

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

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:30: in search_all_iam_policies
response = client.search_all_iam_policies(
../../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-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:189: in retry_target
return target()
.nox/py-3-8/lib/python3.8/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

@parthea
Copy link
Contributor

parthea commented Aug 7, 2021

I'm going to close this issue as it has already been addressed.

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. 🚨 This issue needs some love. 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

Successfully merging a pull request may close this issue.

3 participants