Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

samples.api-client.manager.manager_test: test_send_command failed #143

Closed
flaky-bot bot opened this issue Jul 13, 2021 · 0 comments
Closed

samples.api-client.manager.manager_test: test_send_command failed #143

flaky-bot bot opened this issue Jul 13, 2021 · 0 comments
Assignees
Labels
api: cloudiot Issues related to the googleapis/python-iot API. 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 Jul 13, 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: c420c21
buildURL: Build Status, Sponge
status: failed

Test output
args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
device_registry {
  id: "test-registry-d1e57d0645a...opic_name: "projects/python-docs-samples-tests/topics/test-device-events-36bb52f5-d562-45c9-8ca3-e5088f98284f"
  }
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.38.1 gax/1.31.0 gapic/2.2.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

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


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f7d64353898>
request = parent: "projects/python-docs-samples-tests/locations/us-central1"
device_registry {
id: "test-registry-d1e57d0645ac..._topic_name: "projects/python-docs-samples-tests/topics/test-device-events-36bb52f5-d562-45c9-8ca3-e5088f98284f"
}
}

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.38.1 gax/1.31.0 gapic/2.2.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-6/lib/python3.6/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7f7d645cf668>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f7d64497dc8>
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.ALREADY_EXISTS
E details = "A registry with the parent 'projects/python-docs-samples-tests/locations/us-central1' and ID 'test-registry-d1e57d0645ac42cebd4771a17c155ccc-1626167346' already exists."
E debug_error_string = "{"created":"@1626167362.352126831","description":"Error received from peer ipv4:74.125.197.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"A registry with the parent 'projects/python-docs-samples-tests/locations/us-central1' and ID 'test-registry-d1e57d0645ac42cebd4771a17c155ccc-1626167346' already exists.","grpc_status":6}"
E >

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

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

test_topic = name: "projects/python-docs-samples-tests/topics/test-device-events-36bb52f5-d562-45c9-8ca3-e5088f98284f"

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

@pytest.mark.flaky(max_runs=5, min_passes=1)
def test_send_command(test_topic, capsys):
    device_id = device_id_template.format("RSA256")
    manager.create_registry(
      service_account_json, project_id, cloud_region, pubsub_topic, registry_id
    )

manager_test.py:427:


manager.py:446: in create_registry
request={"parent": parent, "device_registry": body}
../../../google/cloud/iot_v1/services/device_manager/client.py:447: in create_device_registry
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/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.ALREADY_EXISTS
details = "A registry with the pa...ns/us-central1' and ID 'test-registry-d1e57d0645ac42cebd4771a17c155ccc-1626167346' already exists.","grpc_status":6}"

???
E google.api_core.exceptions.AlreadyExists: 409 A registry with the parent 'projects/python-docs-samples-tests/locations/us-central1' and ID 'test-registry-d1e57d0645ac42cebd4771a17c155ccc-1626167346' already exists.

:3: AlreadyExists

@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 13, 2021
@product-auto-label product-auto-label bot added api: cloudiot Issues related to the googleapis/python-iot API. samples Issues that are directly related to samples. labels Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudiot Issues related to the googleapis/python-iot API. 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

2 participants