GoogleCloudPlatform / python-docs-samples

Code samples used on cloud.google.com
Apache License 2.0
7.15k stars 6.37k forks source link

automl.snippets.translate_predict_test: test_translate_predict failed #9275

Closed flaky-bot[bot] closed 1 year ago

flaky-bot[bot] commented 1 year ago

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

Test output
Traceback (most recent call last):
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.DEADLINE_EXCEEDED
    details = "Deadline Exceeded"
    debug_error_string = "UNKNOWN:Deadline Exceeded {grpc_status:4, created_time:"2023-03-14T12:53:33.750719291+00:00"}"
>

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

Traceback (most recent call last):
  File "/workspace/automl/snippets/translate_predict_test.py", line 40, in test_translate_predict
    translate_predict.predict(PROJECT_ID, MODEL_ID, "resources/input.txt")
  File "/workspace/automl/snippets/translate_predict.py", line 39, in predict
    response = prediction_client.predict(name=model_full_id, payload=payload)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/cloud/automl_v1/services/prediction_service/client.py", line 633, in predict
    response = rpc(
               ^^^^
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py", line 113, in __call__
    return wrapped_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/timeout.py", line 120, in func_with_timeout
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/automl/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded
flaky-bot[bot] commented 1 year ago

Test passed for commit 0f307befe239c828a391eb8d8ef7e7b8e38c9b06 (Build Status, Sponge)! Closing this issue.

flaky-bot[bot] commented 1 year ago

Looks like this issue is flaky. :worried:

I'm going to leave this open and stop commenting.

A human should fix and close this.


commit: 5970e991091034cd0c71654476230b035d32f19d buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.DEADLINE_EXCEEDED
    details = "Deadline Exceeded"
    debug_error_string = "UNKNOWN:Deadline Exceeded {created_time:"2023-03-23T11:15:01.234652849+00:00", grpc_status:4}"
>

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

Traceback (most recent call last):
  File "/workspace/automl/snippets/translate_predict_test.py", line 40, in test_translate_predict
    translate_predict.predict(PROJECT_ID, MODEL_ID, "resources/input.txt")
  File "/workspace/automl/snippets/translate_predict.py", line 39, in predict
    response = prediction_client.predict(name=model_full_id, payload=payload)
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/automl_v1/services/prediction_service/client.py", line 633, in predict
    response = rpc(
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 113, in __call__
    return wrapped_func(*args, **kwargs)
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/timeout.py", line 120, in func_with_timeout
    return func(*args, **kwargs)
  File "/workspace/automl/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded
nicain commented 1 year ago

Lots of changes on the infrastructure side may have resolved this. Closing to see if this will reoccur.