Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

translate_v3_translate_text_with_model_test: test_translate_text_with_model failed #172

Closed
flaky-bot bot opened this issue Jun 15, 2021 · 5 comments
Closed
Assignees
Labels
api: translate Issues related to the googleapis/python-translate API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. type: process A process-related concern. May include testing, release, or the like.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Jun 15, 2021

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 = (contents: "That\' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pr...ations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"
,)
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 0x7f43b9934c50>
request = contents: "That' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pro...ocations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"

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 0x7f43b986ccc0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f43b99aecc8>
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."
E debug_error_string = "{"created":"@1623748395.929765536","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.","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 0x7f43ba1e9cf8>

def test_translate_text_with_model(capsys):
    translate_v3_translate_text_with_model.translate_text_with_model(
      "That' il do it.", PROJECT_ID, MODEL_ID
    )

translate_v3_translate_text_with_model_test.py:27:


translate_v3_translate_text_with_model.py:41: in translate_text_with_model
"mime_type": "text/plain", # mime types: text/plain, text/html
../../google/cloud/translate_v3/services/translation_service/client.py:519: in 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...66,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.

:3: FailedPrecondition

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 15, 2021
@product-auto-label product-auto-label bot added the api: translate Issues related to the googleapis/python-translate API. label Jun 15, 2021
@munkhuushmgl munkhuushmgl added the type: process A process-related concern. May include testing, release, or the like. label Jun 16, 2021
@munkhuushmgl munkhuushmgl self-assigned this Jun 16, 2021
@munkhuushmgl munkhuushmgl added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 16, 2021
@munkhuushmgl
Copy link
Contributor

This will be fixed on next release.

@flaky-bot
Copy link
Author

flaky-bot bot commented Jun 17, 2021

commit: 273983a
buildURL: Build Status, Sponge
status: failed

Test output
args = (contents: "That\' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pr...ations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.8.8 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-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f8566df12b0>
request = contents: "That' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pro...ocations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.8.8 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-8/lib/python3.8/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7f8566fbb8b0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f8566c97740>
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."
E debug_error_string = "{"created":"@1623929300.991458921","description":"Error received from peer ipv4:74.125.135.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.","grpc_status":9}"
E >

.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

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

def test_translate_text_with_model(capsys):
  translate_v3_translate_text_with_model.translate_text_with_model(
        "That' il do it.", PROJECT_ID, MODEL_ID
    )

translate_v3_translate_text_with_model_test.py:26:


translate_v3_translate_text_with_model.py:34: in translate_text_with_model
response = client.translate_text(
../../google/cloud/translate_v3/services/translation_service/client.py:519: in translate_text
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/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...66,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.

:3: FailedPrecondition

@flaky-bot
Copy link
Author

flaky-bot bot commented Jun 19, 2021

commit: 7ef5f04
buildURL: Build Status, Sponge
status: failed

Test output
args = (contents: "That\' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pr...ations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"
,)
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 0x7fad9efd37f0>
request = contents: "That' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pro...ocations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"

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 0x7fad9effd390>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fad9eff33c8>
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."
E debug_error_string = "{"created":"@1624093869.830051574","description":"Error received from peer ipv4:173.194.203.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.","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 0x7fad9eff6be0>

def test_translate_text_with_model(capsys):
    translate_v3_translate_text_with_model.translate_text_with_model(
      "That' il do it.", PROJECT_ID, MODEL_ID
    )

translate_v3_translate_text_with_model_test.py:27:


translate_v3_translate_text_with_model.py:41: in translate_text_with_model
"mime_type": "text/plain", # mime types: text/plain, text/html
../../google/cloud/translate_v3/services/translation_service/client.py:519: in 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...66,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.

:3: FailedPrecondition

@flaky-bot
Copy link
Author

flaky-bot bot commented Jun 20, 2021

commit: 4916991
buildURL: Build Status, Sponge
status: failed

Test output
args = (contents: "That\' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pr...ations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"
,)
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 0x7f1ea04636d8>
request = contents: "That' il do it."
mime_type: "text/plain"
source_language_code: "en"
target_language_code: "ja"
model: "pro...ocations/us-central1/models/TRL3128559826197068699"
parent: "projects/python-docs-samples-tests/locations/us-central1"

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 0x7f1ea05061d0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f1ea0571c08>
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."
E debug_error_string = "{"created":"@1624180737.045899579","description":"Error received from peer ipv4:74.125.195.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.","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 0x7f1ea5284400>

def test_translate_text_with_model(capsys):
    translate_v3_translate_text_with_model.translate_text_with_model(
      "That' il do it.", PROJECT_ID, MODEL_ID
    )

translate_v3_translate_text_with_model_test.py:27:


translate_v3_translate_text_with_model.py:41: in translate_text_with_model
"mime_type": "text/plain", # mime types: text/plain, text/html
../../google/cloud/translate_v3/services/translation_service/client.py:519: in 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...66,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.

:3: FailedPrecondition

@munkhuushmgl
Copy link
Contributor

Fixed by #178

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: translate Issues related to the googleapis/python-translate API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

1 participant