samples.snippets.language_sentiment_analysis_create_dataset_test: test_sentiment_analysis_create_dataset failed
flaky-bot opened this issue · 3 comments
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: 227c08b
buildURL: Build Status, Sponge
status: failed
Test output
args = (name: "projects/cdpe-automl-tests/locations/us-central1/datasets/TST9028191680494305280" ,) kwargs = {'metadata': [('x-goog-request-params', 'name=projects/cdpe-automl-tests/locations/us-central1/datasets/TST9028191680494305280'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.39.0 gax/2.0.0 gapic/2.4.2')]}@functools.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:66:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7ffa6ce265f8>
request = name: "projects/cdpe-automl-tests/locations/us-central1/datasets/TST9028191680494305280"timeout = None
metadata = [('x-goog-request-params', 'name=projects/cdpe-automl-tests/locations/us-central1/datasets/TST9028191680494305280'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.39.0 gax/2.0.0 gapic/2.4.2')]
credentials = None, wait_for_ready = None, compression = Nonedef __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 0x7ffa6ce640f0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7ffa6ce1be48>
with_call = False, deadline = Nonedef _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.INTERNAL
E details = "Internal error encountered."
E debug_error_string = "{"created":"@1629623018.856563788","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"Internal error encountered.","grpc_status":13}"
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:
capsys = <_pytest.capture.CaptureFixture object at 0x7ffa6ce646a0>
def test_sentiment_analysis_create_dataset(capsys): dataset_name = "test_" + datetime.datetime.now().strftime("%Y%m%d%H%M%S") language_sentiment_analysis_create_dataset.create_dataset(PROJECT_ID, dataset_name) out, _ = capsys.readouterr() assert "Dataset id: " in out # Delete the created dataset dataset_id = out.splitlines()[1].split()[2] client = automl.AutoMlClient() dataset_full_id = client.dataset_path(PROJECT_ID, "us-central1", dataset_id)
response = client.delete_dataset(name=dataset_full_id)
language_sentiment_analysis_create_dataset_test.py:36:
../../google/cloud/automl_v1/services/auto_ml/client.py:854: in delete_dataset
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:142: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:288: in retry_wrapped_func
on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:190: in retry_target
return target()
args = (name: "projects/cdpe-automl-tests/locations/us-central1/datasets/TST9028191680494305280"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/cdpe-automl-tests/locations/us-central1/datasets/TST9028191680494305280'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.39.0 gax/2.0.0 gapic/2.4.2')]}@functools.wraps(callable_) def error_remapped_callable(*args, **kwargs): try: return callable_(*args, **kwargs) except grpc.RpcError as exc:
raise exceptions.from_grpc_error(exc) from exc
E google.api_core.exceptions.InternalServerError: 500 Internal error encountered.
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:68: InternalServerError
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 (227c08b), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).
Eric, would you or someone in your squad be able to take an initial look at this AutoML Language issue? Thanks!