-
Notifications
You must be signed in to change notification settings - Fork 44
translate_v3_batch_translate_text_with_model_test: test_batch_translate_text_with_model failed #171
Description
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: a5c1ced
buildURL: Build Status, Sponge
status: failed
Test output
args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: ... output_uri_prefix: "gs://tmp-4037818c71a341fa98a5475c5043103a/translation/BATCH_TRANSLATION_MODEL_OUTPUT/"
}
}
,)
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.0 gax/1.30.0 gapic/3.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 0x7f43ba1d39b0>
request = parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: "...{
output_uri_prefix: "gs://tmp-4037818c71a341fa98a5475c5043103a/translation/BATCH_TRANSLATION_MODEL_OUTPUT/"
}
}
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.0 gax/1.30.0 gapic/3.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 0x7f43ba1d3a90>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f43b997ee08>
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.FAILED_PRECONDITION
E details = "The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'."
E debug_error_string = "{"created":"@1623748376.051126180","description":"Error received from peer ipv4:74.125.142.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"
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 0x7f43bc2edb38>
bucket = <Bucket: tmp-4037818c71a341fa98a5475c5043103a>
def test_batch_translate_text_with_model(capsys, bucket):
translate_v3_batch_translate_text_with_model.batch_translate_text_with_model(
"gs://cloud-samples-data/translation/custom_model_text.txt",
"gs://{}/translation/BATCH_TRANSLATION_MODEL_OUTPUT/".format(bucket.name),
PROJECT_ID,
MODEL_ID,
)
translate_v3_batch_translate_text_with_model_test.py:45:
translate_v3_batch_translate_text_with_model.py:57: in batch_translate_text_with_model
"models": models,
../../google/cloud/translate_v3/services/translation_service/client.py:823: in batch_translate_text
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.FAILED_PRECONDITION
details = "The model is depr...models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"
???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.
:3: FailedPrecondition