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

samples.snippets.quickstart_batchgetassetshistory_test: test_batch_get_assets_history failed #105

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

Test output
args = (parent: "projects/python-docs-samples-tests"
asset_names: "//storage.googleapis.com/assets-2e67da2f1fed466d8d2352d28c811f2e"
content_type: RESOURCE
read_time_window {
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.8.3 grpc/1.33.2 gax/1.23.0 gapic/2.1.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:57:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f2e10ad7fd0>
request = parent: "projects/python-docs-samples-tests"
asset_names: "//storage.googleapis.com/assets-2e67da2f1fed466d8d2352d28c811f2e"
content_type: RESOURCE
read_time_window {
}

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.8.3 grpc/1.33.2 gax/1.23.0 gapic/2.1.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:923:


state = <grpc._channel._RPCState object at 0x7f2e10adf700>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f2e10ad0dc0>
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.INVALID_ARGUMENT
E details = "The following 1 resources don't exist in projects/1012616486416 : //storage.googleapis.com/assets-2e67da2f1fed466d8d2352d28c811f2e"
E debug_error_string = "{"created":"@1604055783.582880103","description":"Error received from peer ipv4:74.125.20.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"The following 1 resources don't exist in projects/1012616486416 : //storage.googleapis.com/assets-2e67da2f1fed466d8d2352d28c811f2e","grpc_status":3}"
E >

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

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

asset_bucket = 'assets-2e67da2f1fed466d8d2352d28c811f2e'
capsys = <_pytest.capture.CaptureFixture object at 0x7f2e11222af0>

def test_batch_get_assets_history(asset_bucket, capsys):
    bucket_asset_name = "//storage.googleapis.com/{}".format(BUCKET)
    asset_names = [
        bucket_asset_name,
    ]

    @backoff.on_exception(backoff.expo, (AssertionError, InvalidArgument), max_time=30)
    def eventually_consistent_test():
        quickstart_batchgetassetshistory.batch_get_assets_history(PROJECT, asset_names)
        out, _ = capsys.readouterr()

        assert bucket_asset_name in out
  eventually_consistent_test()

quickstart_batchgetassetshistory_test.py:62:


.nox/py-3-8/lib/python3.8/site-packages/backoff/_sync.py:94: in retry
ret = target(*args, **kwargs)
quickstart_batchgetassetshistory_test.py:57: in eventually_consistent_test
quickstart_batchgetassetshistory.batch_get_assets_history(PROJECT, asset_names)
quickstart_batchgetassetshistory.py:33: in batch_get_assets_history
response = client.batch_get_assets_history(
../../google/cloud/asset_v1/services/asset_service/client.py:391: in batch_get_assets_history
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:281: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-8/lib/python3.8/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.INVALID_ARGUMENT
details = "The following 1 reso...exist in projects/1012616486416 : //storage.googleapis.com/assets-2e67da2f1fed466d8d2352d28c811f2e","grpc_status":3}"

???
E google.api_core.exceptions.InvalidArgument: 400 The following 1 resources don't exist in projects/1012616486416 : //storage.googleapis.com/assets-2e67da2f1fed466d8d2352d28c811f2e

:3: InvalidArgument

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: cloudassetIssues related to the googleapis/python-asset 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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions