GeezerVison is showing github.com — monitoring.api.v3.alerts-client.snippets_test: test_backup_and_restore failed · Issue #4180 · GoogleCloudPlatform/python-docs-samples
monitoring.api.v3.alerts-client.snippets_test: test_backup_and_restore failed #4180Labels priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionNote: #2972 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.
commit: e90996a
buildURL: Build Status, Sponge
status: failed
Test output
Traceback (most recent call last):
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 57, in error_remapped_callable
return callable_(*args, **kwargs)
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py", line 826, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py", line 729, 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 = "{"created":"@1593167526.977093308","description":"Error received from peer ipv4:74.125.142.95:443","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"Deadline Exceeded","grpc_status":4}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/workspace/monitoring/api/v3/alerts-client/snippets_test.py", line 170, in test_backup_and_restore
snippets.restore(pochan.project_name, 'backup.json')
File "/workspace/monitoring/api/v3/alerts-client/snippets.py", line 173, in restore
channel_client.update_notification_channel(channel)
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py", line 832, in update_notification_channel
request, retry=retry, timeout=timeout, metadata=metadata
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py", line 143, in call
return wrapped_func(*args, **kwargs)
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py", line 286, in retry_wrapped_func
on_error=on_error,
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py", line 184, in retry_target
return target()
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/timeout.py", line 214, in func_with_timeout
return func(*args, **kwargs)
File "/workspace/monitoring/api/v3/alerts-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "", line 3, in raise_from
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded Activityadded priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. on Jun 26, 2020flaky-bot commented on Jun 26, 2020 Looks like this issue is flaky. 😟
I'm going to leave this open and stop commenting.
A human should fix and close this.
When run at the same commit (e90996a), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge). tmatsuo commented on Jun 26, 2020 update_notification_channel() throws DeadlineExceeded.
Few questions:
- Should we retry DeadlineExceeded? If yes, we can retry.
- Is the current timeout on
update_notification_channel() appropriate? Maybe we can talk with the product team and figure out whether we should bump the timeout on that RPC.
busunkim96 commented on Jun 26, 2020 @tmatsuo I looked in the project and there seems to be quite a few leftover policies from old tests. I suspect those will make the backup/restore take a longer time. I'm deleting most of the old ones. busunkim96 commented on Jun 26, 2020 Actually I see these tests are using the separated projects, which look pretty clean. 🤔 tmatsuo commented on Jun 29, 2020 @busunkim96 Thanks
Do you think we should retry DeadlineExeeced? added a commit that references this issue on Jun 29, 2020This issue will close once commit 42b7bb2 is merged into the 'master' branch.42b7bb2 added a commit that references this issue on Jun 30, 2020This issue will close once commit 7a4a7e0 is merged into the 'main' branch.7a4a7e0 added a commit that references this issue on Nov 7, 2022This issue will close once commit d282153 is merged into the 'main' branch.d282153 added a commit that references this issue on Nov 9, 2022This issue will close once commit f7bca56 is merged into the 'main' branch.f7bca56
MetadataMetadatapriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|