GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #4180

New issue
Copy link
New issue
Copy link
Closed
#4202
Closed
monitoring.api.v3.alerts-client.snippets_test: test_backup_and_restore failed#4180
#4202
Copy link
Assignees
tmatsuobusunkim96
Labels
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.

Description

@flaky-bot
flaky-bot
bot
opened on Jun 26, 2020
Issue body actions

Note: #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

Activity

  1. flaky-bot
    added
    buildcop: issue
    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, 2020
  2. blunderbuss-gcf
    assigned
    busunkim96
    on Jun 26, 2020
  3. flaky-bot
    added
    buildcop: flaky
    on Jun 26, 2020
  4. flaky-bot commented on Jun 26, 2020

    @flaky-bot
    flaky-botBot
    on Jun 26, 2020
    Author
    More actions

    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).

  5. tmatsuo commented on Jun 26, 2020

    @tmatsuo
    tmatsuo
    on Jun 26, 2020
    Contributor
    More actions

    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.
  6. busunkim96 commented on Jun 26, 2020

    @busunkim96
    busunkim96
    on Jun 26, 2020
    Contributor
    More actions

    @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.

  7. busunkim96 commented on Jun 26, 2020

    @busunkim96
    busunkim96
    on Jun 26, 2020
    Contributor
    More actions

    Actually I see these tests are using the separated projects, which look pretty clean. 🤔

  8. tmatsuo commented on Jun 29, 2020

    @tmatsuo
    tmatsuo
    on Jun 29, 2020
    Contributor
    More actions

    @busunkim96 Thanks

    Do you think we should retry DeadlineExeeced?

  9. tmatsuo
    self-assigned this
    on Jun 29, 2020
  10. tmatsuo
    added a commit that references this issue on Jun 29, 2020

    fix(monitoring): also retry upon DeadlineExceeded

    This issue will close once commit 42b7bb2 is merged into the 'master' branch.
    42b7bb2
  11. tmatsuo
    closed this as completedin #4202on Jun 30, 2020
  12. tmatsuo
    added a commit that references this issue on Jun 30, 2020

    fix(monitoring): also retry upon DeadlineExceeded (#4202)

    This issue will close once commit 7a4a7e0 is merged into the 'main' branch.
    7a4a7e0
  13. arbrown
    added a commit that references this issue on Nov 7, 2022

    move monitoring samples from python-docs-samples (#51)

    This issue will close once commit d282153 is merged into the 'main' branch.
    d282153
  14. dandhlee
    added a commit that references this issue on Nov 9, 2022

    move monitoring samples from python-docs-samples (#51)

    This issue will close once commit f7bca56 is merged into the 'main' branch.
    f7bca56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @busunkim96
    busunkim96
  • @tmatsuo
    tmatsuo

Labels

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.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.