Skip to content
This repository was archived by the owner on Dec 10, 2023. It is now read-only.
This repository was archived by the owner on Dec 10, 2023. It is now read-only.

samples.snippets.inspect_content_test: test_inspect_bigquery failed #64

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

Test output
args = (mode: NON_TRANSACTIONAL
mutations {
  delete {
    partition_id {
      project_id: "python-docs-samples-tests"
    }...     kind: "DLP test kind"
      name: "DLP test object52d1869d"
    }
  }
}
project_id: "python-docs-samples-tests"
,)
kwargs = {'metadata': [('x-goog-request-params', 'project_id=python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.7.7 grpc/1.32.0 gax/1.22.4 gapic/1.13.2 gccl/1.13.2')], 'timeout': 60.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:57:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fe500173610>
request = mode: NON_TRANSACTIONAL
mutations {
delete {
partition_id {
project_id: "python-docs-samples-tests"
}
...
kind: "DLP test kind"
name: "DLP test object52d1869d"
}
}
}
project_id: "python-docs-samples-tests"

timeout = 60.0
metadata = [('x-goog-request-params', 'project_id=python-docs-samples-tests'), ('x-goog-api-client', 'gl-python/3.7.7 grpc/1.32.0 gax/1.22.4 gapic/1.13.2 gccl/1.13.2')]
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:826:


state = <grpc._channel._RPCState object at 0x7fe5000e0310>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fe500085b90>
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.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "{"created":"@1602152531.066478588","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Socket closed","grpc_status":14}"
E >

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

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

@pytest.fixture(scope="module")
def datastore_project():
    # Adds test Datastore data, yields the project ID and then tears down.
    datastore_client = google.cloud.datastore.Client()

    kind = DATASTORE_KIND
    name = DATASTORE_NAME
    key = datastore_client.key(kind, name)
    item = google.cloud.datastore.Entity(key=key)
    item["payload"] = "My name is Gary Smith and my email is gary@example.com"

    datastore_client.put(item)

    yield GCLOUD_PROJECT
  datastore_client.delete(key)

inspect_content_test.py:125:


.nox/py-3-7/lib/python3.7/site-packages/google/cloud/datastore/client.py:504: in delete
self.delete_multi(keys=[key])
.nox/py-3-7/lib/python3.7/site-packages/google/cloud/datastore/client.py:527: in delete_multi
current.commit()
.nox/py-3-7/lib/python3.7/site-packages/google/cloud/datastore/batch.py:274: in commit
self._commit()
.nox/py-3-7/lib/python3.7/site-packages/google/cloud/datastore/batch.py:250: in _commit
self.project, mode, self._mutations, transaction=self._id
.nox/py-3-7/lib/python3.7/site-packages/google/cloud/datastore_v1/gapic/datastore_client.py:647: in commit
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:286: in retry_wrapped_func
on_error=on_error,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/timeout.py:214: in func_with_timeout
return func(*args, **kwargs)
.nox/py-3-7/lib/python3.7/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.UNAVAILABLE
details = "Socket closed"
debug_err....195.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Socket closed","grpc_status":14}"

???
E google.api_core.exceptions.ServiceUnavailable: 503 Socket closed

:3: ServiceUnavailable

Metadata

Metadata

Assignees

Labels

api: dlpIssues related to the googleapis/python-dlp API.priority: p2Moderately-important priority. Fix may not be included in 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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions