GoogleCloudPlatform / python-docs-samples

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

translate_v3beta1_translate_document_test: test_translate_document failed #10663

Closed flaky-bot[bot] closed 1 year ago

flaky-bot[bot] commented 1 year ago

Note: #8835 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 18154d7ac67573820124489b7a85e52425a69075 buildURL: Build Status, Sponge status: failed

Test output
args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
target_language_code: "fr-FR"
document_input_confi...8c8ab5a749762>\n ] >>\nstartxref\n88408\n%%EOF\n"
  mime_type: "application/pdf"
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.11.4 grpc/1.58.0 gax/2.12.0 gapic/3.11.1')], 'timeout': 600.0}

    @functools.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
>           return callable_(*args, **kwargs)

.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py:75: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
request = parent: "projects/python-docs-samples-tests/locations/us-central1"
target_language_code: "fr-FR"
document_input_config...a78c8ab5a749762>\n ] >>\nstartxref\n88408\n%%EOF\n"
  mime_type: "application/pdf"
}

timeout = 600.0
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.11.4 grpc/1.58.0 gax/2.12.0 gapic/3.11.1')]
credentials = None, wait_for_ready = None, compression = None

    def __call__(
        self,
        request: Any,
        timeout: Optional[float] = None,
        metadata: Optional[MetadataType] = None,
        credentials: Optional[grpc.CallCredentials] = None,
        wait_for_ready: Optional[bool] = None,
        compression: Optional[grpc.Compression] = None,
    ) -> Any:
        (
            state,
            call,
        ) = self._blocking(
            request, timeout, metadata, credentials, wait_for_ready, compression
        )
>       return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-11/lib/python3.11/site-packages/grpc/_channel.py:1161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

state = 
call = 
with_call = False, deadline = None

    def _end_unary_response_blocking(
        state: _RPCState,
        call: cygrpc.SegregatedCall,
        with_call: bool,
        deadline: Optional[float],
    ) -> Union[ResponseType, Tuple[ResponseType, grpc.Call]]:
        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)  # pytype: disable=not-instantiable
E           grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E               status = StatusCode.INTERNAL
E               details = "Failed to preprocess all pages in the file. INTERNAL: CalculatorGraph::Run() failed: 
E           Calculator::Process() for node "VmsClientCalculator_2" failed: A retryable error could not be retried due to too many retries per Extensible Stubs request (see go/xs-retries-per-request). (old status: generic::unavailable: CalculatorGraph::Run() failed: 
E           Calculator::Process() for node "VssClientCalculator" failed: Service temporarily unavailable. Error processing features.); RetryingStub: [attempts:3]; Graph name: document_parser"
E               debug_error_string = "UNKNOWN:Error received from peer ipv4:142.250.107.95:443 {grpc_message:"Failed to preprocess all pages in the file. INTERNAL: CalculatorGraph::Run() failed: \nCalculator::Process() for node \"VmsClientCalculator_2\" failed: A retryable error could not be retried due to too many retries per Extensible Stubs request (see go/xs-retries-per-request). (old status: generic::unavailable: CalculatorGraph::Run() failed: \nCalculator::Process() for node \"VssClientCalculator\" failed: Service temporarily unavailable. Error processing features.); RetryingStub: [attempts:3]; Graph name: document_parser", grpc_status:13, created_time:"2023-09-28T14:01:04.696716452+00:00"}"
E           >

.nox/py-3-11/lib/python3.11/site-packages/grpc/_channel.py:1004: _InactiveRpcError

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

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

    def test_translate_document(capsys: pytest.LogCaptureFixture) -> None:
>       response = translate_v3beta1_translate_document.translate_document(
            project_id=PROJECT_ID, file_path=FILE_PATH
        )

translate_v3beta1_translate_document_test.py:28: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
translate_v3beta1_translate_document.py:46: in translate_document
    response = client.translate_document(
.nox/py-3-11/lib/python3.11/site-packages/google/cloud/translate_v3beta1/services/translation_service/client.py:905: in translate_document
    response = rpc(
.nox/py-3-11/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py:131: in __call__
    return wrapped_func(*args, **kwargs)
.nox/py-3-11/lib/python3.11/site-packages/google/api_core/timeout.py:120: in func_with_timeout
    return func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
target_language_code: "fr-FR"
document_input_confi...8c8ab5a749762>\n ] >>\nstartxref\n88408\n%%EOF\n"
  mime_type: "application/pdf"
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.11.4 grpc/1.58.0 gax/2.12.0 gapic/3.11.1')], 'timeout': 600.0}

    @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 Failed to preprocess all pages in the file. INTERNAL: CalculatorGraph::Run() failed: 
E           Calculator::Process() for node "VmsClientCalculator_2" failed: A retryable error could not be retried due to too many retries per Extensible Stubs request (see go/xs-retries-per-request). (old status: generic::unavailable: CalculatorGraph::Run() failed: 
E           Calculator::Process() for node "VssClientCalculator" failed: Service temporarily unavailable. Error processing features.); RetryingStub: [attempts:3]; Graph name: document_parser

.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py:77: InternalServerError
flaky-bot[bot] commented 1 year ago

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