Title: translate_v3_batch_translate_text_with_glossary_test: test_batch_translate_text_with_glossary failed · Issue #4239 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: translate_v3_batch_translate_text_with_glossary_test: test_batch_translate_text_with_glossary failed · Issue #4239 · GoogleCloudPlatform/python-docs-samples
X Title: translate_v3_batch_translate_text_with_glossary_test: test_batch_translate_text_with_glossary failed · Issue #4239 · GoogleCloudPlatform/python-docs-samples
Description: This test failed! To configure my behavior, see the Build Cop Bot documentation. If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting. commit: 51a66f9 buildURL: Build Status, Sponge status: ...
Open Graph Description: This test failed! To configure my behavior, see the Build Cop Bot documentation. If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting. commit: 51a66f9...
X Description: This test failed! To configure my behavior, see the Build Cop Bot documentation. If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting. commit: 51a...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"translate_v3_batch_translate_text_with_glossary_test: test_batch_translate_text_with_glossary failed","articleBody":"This test failed!\n\nTo configure my behavior, see [the Build Cop Bot documentation](https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop).\n\nIf I'm commenting on this issue too often, add the `buildcop: quiet` label and\nI will stop commenting.\n\n---\n\ncommit: 51a66f94512b1416dcf0a02de5b787a808419f4d\nbuildURL: [Build Status](https://source.cloud.google.com/results/invocations/af88574d-f7bc-4b4e-812a-abb561592a34), [Sponge](http://sponge2/af88574d-f7bc-4b4e-812a-abb561592a34)\nstatus: failed\n\u003cdetails\u003e\u003csummary\u003eTest output\u003c/summary\u003e\u003cbr\u003e\u003cpre\u003etarget = functools.partial(\u003cbound method PollingFuture._done_or_raise of \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\u003e)\npredicate = \u003cfunction if_exception_type.\u003clocals\u003e.if_exception_type_predicate at 0x7f0d25184400\u003e\nsleep_generator = \u003cgenerator object exponential_sleep_generator at 0x7f0d220c6e08\u003e\ndeadline = 180, on_error = None\n\n def retry_target(target, predicate, sleep_generator, deadline, on_error=None):\n \"\"\"Call a function and retry if it fails.\n \n This is the lowest-level retry helper. Generally, you'll use the\n higher-level retry helper :class:`Retry`.\n \n Args:\n target(Callable): The function to call and retry. This must be a\n nullary function - apply arguments with `functools.partial`.\n predicate (Callable[Exception]): A callable used to determine if an\n exception raised by the target should be considered retryable.\n It should return True to retry or False otherwise.\n sleep_generator (Iterable[float]): An infinite iterator that determines\n how long to sleep between retries.\n deadline (float): How long to keep retrying the target. The last sleep\n period is shortened as necessary, so that the last retry runs at\n ``deadline`` (and not considerably beyond it).\n on_error (Callable[Exception]): A function to call while processing a\n retryable exception. Any error raised by this function will *not*\n be caught.\n \n Returns:\n Any: the return value of the target function.\n \n Raises:\n google.api_core.RetryError: If the deadline is exceeded while retrying.\n ValueError: If the sleep generator stops yielding values.\n Exception: If the target raises a method that isn't retryable.\n \"\"\"\n if deadline is not None:\n deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(\n seconds=deadline\n )\n else:\n deadline_datetime = None\n \n last_exc = None\n \n for sleep in sleep_generator:\n try:\n\u003e return target()\n\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:184: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\n\n def _done_or_raise(self):\n \"\"\"Check if the future is done and raise if it's not.\"\"\"\n if not self.done():\n\u003e raise _OperationNotComplete()\nE google.api_core.future.polling._OperationNotComplete\n\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/future/polling.py:84: _OperationNotComplete\n\nThe above exception was the direct cause of the following exception:\n\nself = \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\ntimeout = 180\n\n def _blocking_poll(self, timeout=None):\n \"\"\"Poll and wait for the Future to be resolved.\n \n Args:\n timeout (int):\n How long (in seconds) to wait for the operation to complete.\n If None, wait indefinitely.\n \"\"\"\n if self._result_set:\n return\n \n retry_ = self._retry.with_deadline(timeout)\n \n try:\n\u003e retry_(self._done_or_raise)()\n\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/future/polling.py:104: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = (), kwargs = {}\ntarget = functools.partial(\u003cbound method PollingFuture._done_or_raise of \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\u003e)\nsleep_generator = \u003cgenerator object exponential_sleep_generator at 0x7f0d220c6e08\u003e\n\n @general_helpers.wraps(func)\n def retry_wrapped_func(*args, **kwargs):\n \"\"\"A wrapper that calls target function with retry.\"\"\"\n target = functools.partial(func, *args, **kwargs)\n sleep_generator = exponential_sleep_generator(\n self._initial, self._maximum, multiplier=self._multiplier\n )\n return retry_target(\n target,\n self._predicate,\n sleep_generator,\n self._deadline,\n\u003e on_error=on_error,\n )\n\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:286: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ntarget = functools.partial(\u003cbound method PollingFuture._done_or_raise of \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\u003e)\npredicate = \u003cfunction if_exception_type.\u003clocals\u003e.if_exception_type_predicate at 0x7f0d25184400\u003e\nsleep_generator = \u003cgenerator object exponential_sleep_generator at 0x7f0d220c6e08\u003e\ndeadline = 180, on_error = None\n\n def retry_target(target, predicate, sleep_generator, deadline, on_error=None):\n \"\"\"Call a function and retry if it fails.\n \n This is the lowest-level retry helper. Generally, you'll use the\n higher-level retry helper :class:`Retry`.\n \n Args:\n target(Callable): The function to call and retry. This must be a\n nullary function - apply arguments with `functools.partial`.\n predicate (Callable[Exception]): A callable used to determine if an\n exception raised by the target should be considered retryable.\n It should return True to retry or False otherwise.\n sleep_generator (Iterable[float]): An infinite iterator that determines\n how long to sleep between retries.\n deadline (float): How long to keep retrying the target. The last sleep\n period is shortened as necessary, so that the last retry runs at\n ``deadline`` (and not considerably beyond it).\n on_error (Callable[Exception]): A function to call while processing a\n retryable exception. Any error raised by this function will *not*\n be caught.\n \n Returns:\n Any: the return value of the target function.\n \n Raises:\n google.api_core.RetryError: If the deadline is exceeded while retrying.\n ValueError: If the sleep generator stops yielding values.\n Exception: If the target raises a method that isn't retryable.\n \"\"\"\n if deadline is not None:\n deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(\n seconds=deadline\n )\n else:\n deadline_datetime = None\n \n last_exc = None\n \n for sleep in sleep_generator:\n try:\n return target()\n \n # pylint: disable=broad-except\n # This function explicitly must deal with broad exceptions.\n except Exception as exc:\n if not predicate(exc):\n raise\n last_exc = exc\n if on_error is not None:\n on_error(exc)\n \n now = datetime_helpers.utcnow()\n \n if deadline_datetime is not None:\n if deadline_datetime \u003c= now:\n six.raise_from(\n exceptions.RetryError(\n \"Deadline of {:.1f}s exceeded while calling {}\".format(\n deadline, target\n ),\n last_exc,\n ),\n\u003e last_exc,\n )\n\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:206: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nvalue = None, from_value = _OperationNotComplete()\n\n\u003e ???\nE google.api_core.exceptions.RetryError: Deadline of 180.0s exceeded while calling functools.partial(\u003cbound method PollingFuture._done_or_raise of \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\u003e), last exception:\n\n\u003cstring\u003e:3: RetryError\n\nDuring handling of the above exception, another exception occurred:\n\ncapsys = \u003c_pytest.capture.CaptureFixture object at 0x7f0d2204d6a0\u003e\nbucket = \u003cBucket: tmp-345cb7a7dfce4c27a5116d4e7c04fd3e\u003e\nglossary = 'test-8763692c-e018-4ef7-b87e-b4a4df543853'\n\n @pytest.mark.flaky(max_runs=3, min_passes=1)\n def test_batch_translate_text_with_glossary(capsys, bucket, glossary):\n translate_v3_batch_translate_text_with_glossary.batch_translate_text_with_glossary(\n \"gs://cloud-samples-data/translation/text_with_glossary.txt\",\n \"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/\".format(bucket.name),\n PROJECT_ID,\n\u003e glossary,\n )\n\ntranslate_v3_batch_translate_text_with_glossary_test.py:75: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntranslate_v3_batch_translate_text_with_glossary.py:68: in batch_translate_text_with_glossary\n response = operation.result(180)\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/future/polling.py:125: in result\n self._blocking_poll(timeout=timeout)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \u003cgoogle.api_core.operation.Operation object at 0x7f0d220e70f0\u003e\ntimeout = 180\n\n def _blocking_poll(self, timeout=None):\n \"\"\"Poll and wait for the Future to be resolved.\n \n Args:\n timeout (int):\n How long (in seconds) to wait for the operation to complete.\n If None, wait indefinitely.\n \"\"\"\n if self._result_set:\n return\n \n retry_ = self._retry.with_deadline(timeout)\n \n try:\n retry_(self._done_or_raise)()\n except exceptions.RetryError:\n raise concurrent.futures.TimeoutError(\n\u003e \"Operation did not complete within the designated \" \"timeout.\"\n )\nE concurrent.futures._base.TimeoutError: Operation did not complete within the designated timeout.\n\n.nox/py-3-6/lib/python3.6/site-packages/google/api_core/future/polling.py:107: TimeoutError\u003c/pre\u003e\u003c/details\u003e","author":{"url":"https://github.com/flaky-bot[bot]","@type":"Person","name":"flaky-bot[bot]"},"datePublished":"2020-07-04T09:57:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/4239/python-docs-samples/issues/4239"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05c099d5-75de-146c-c699-65b2353e94d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E686:268F8:12755F:1921FF:6A4D2FCA |
| html-safe-nonce | 19399721263aeac2c779c22e507f973528e2acfa0f10d8a7184c8de5db1ea9ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjg2OjI2OEY4OjEyNzU1RjoxOTIxRkY6NkE0RDJGQ0EiLCJ2aXNpdG9yX2lkIjoiMTY3NDU5NTc0MTc2NTI4Mzc4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5f3b218a2cbcebaeacad11005c7b7f2765d6754da5a2bdfa70864f3ce41a0299 |
| hovercard-subject-tag | issue:650863590 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GoogleCloudPlatform/python-docs-samples/4239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3085360d39f745765380f9e8b3ca5e84a8f83d3ec6a48cf0ee94f40a1c149529/GoogleCloudPlatform/python-docs-samples/issues/4239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3085360d39f745765380f9e8b3ca5e84a8f83d3ec6a48cf0ee94f40a1c149529/GoogleCloudPlatform/python-docs-samples/issues/4239 |
| og:image:alt | This test failed! To configure my behavior, see the Build Cop Bot documentation. If I'm commenting on this issue too often, add the buildcop: quiet label and I will stop commenting. commit: 51a66f9... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flaky-bot[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width