Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

samples.snippets.snippets_notification_test: test_update_notification_config failed #59

Closed
flaky-bot bot opened this issue Sep 11, 2020 · 4 comments · Fixed by #63
Closed

samples.snippets.snippets_notification_test: test_update_notification_config failed #59

flaky-bot bot opened this issue Sep 11, 2020 · 4 comments · Fixed by #63
Assignees
Labels
api: securitycenter Issues related to the googleapis/python-securitycenter API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Sep 11, 2020

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: dbb9311
buildURL: Build Status, Sponge
status: failed

Test output
args = (notification_config {
  name: "organizations/1081635000895/notificationConfigs/new-notification-pytest0552866a-f40e-1..."INACTIVE\""
  }
}
update_mask {
  paths: "description"
  paths: "pubsub_topic"
  paths: "streaming_config.fitler"
}
,)
kwargs = {'metadata': [('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2 gapic/0.7.0')], 'timeout': 59.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:57:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fc6478e9048>
request = notification_config {
name: "organizations/1081635000895/notificationConfigs/new-notification-pytest0552866a-f40e-11... "INACTIVE""
}
}
update_mask {
paths: "description"
paths: "pubsub_topic"
paths: "streaming_config.fitler"
}

timeout = 59.0
metadata = [('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2 gapic/0.7.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:826:


state = <grpc._channel._RPCState object at 0x7fc6478ee358>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fc6478d6a48>
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.INVALID_ARGUMENT
E details = "Request contains an invalid argument."
E debug_error_string = "{"created":"@1599815200.848404573","description":"Error received from peer ipv4:74.125.142.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:729: _InactiveRpcError

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

new_notification_config_for_update = name: "organizations/1081635000895/notificationConfigs/new-notification-pytest0552866a-f40e-11ea-98cc-42010a8a007c"
de...pic"
service_account: "service-org-1081635000895@gcp-sa-scc-notification.iam.gserviceaccount.com"
streaming_config {
}

def test_update_notification_config(new_notification_config_for_update):
    updated_config = snippets_notification_configs.update_notification_config(
      ORG_ID, UPDATE_CONFIG_ID, PUBSUB_TOPIC
    )

snippets_notification_test.py:134:


snippets_notification_configs.py:137: in update_notification_config
update_mask=field_mask,
../../google/cloud/securitycenter_v1/gapic/security_center_client.py:2571: in update_notification_config
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/retry.py:286: in retry_wrapped_func
on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/timeout.py:214: in func_with_timeout
return func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:59: 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.INVALID_ARGUMENT
details = "Request contains an ...c/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"

???
E google.api_core.exceptions.InvalidArgument: 400 Request contains an invalid argument.

:3: InvalidArgument

@flaky-bot flaky-bot bot added buildcop: issue 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 Sep 11, 2020
@product-auto-label product-auto-label bot added api: securitycenter Issues related to the googleapis/python-securitycenter API. samples Issues that are directly related to samples. labels Sep 11, 2020
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. and removed 🚨 This issue needs some love. labels Sep 17, 2020
@tmatsuo
Copy link
Contributor

tmatsuo commented Sep 18, 2020

@busunkim96
Well I don't see any green periodic builds in our test dashboard.

tmatsuo pushed a commit to tmatsuo/python-securitycenter that referenced this issue Sep 18, 2020
tmatsuo pushed a commit that referenced this issue Sep 18, 2020
* fix(sample): fix a broken test

fixes #59
@flaky-bot
Copy link
Author

flaky-bot bot commented Sep 19, 2020

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


commit: 7062b1c
buildURL: Build Status, Sponge
status: failed

Test output
args = (notification_config {
  name: "organizations/1081635000895/notificationConfigs/new-notification-pytest286e6868-fa57-1..."INACTIVE\""
  }
}
update_mask {
  paths: "description"
  paths: "pubsub_topic"
  paths: "streaming_config.fitler"
}
,)
kwargs = {'metadata': [('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2 gapic/0.7.0')], 'timeout': 59.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:57:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f16de79e3c8>
request = notification_config {
name: "organizations/1081635000895/notificationConfigs/new-notification-pytest286e6868-fa57-11... "INACTIVE""
}
}
update_mask {
paths: "description"
paths: "pubsub_topic"
paths: "streaming_config.fitler"
}

timeout = 59.0
metadata = [('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2 gapic/0.7.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:826:


state = <grpc._channel._RPCState object at 0x7f16de7ab940>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f16de79f2c8>
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.INVALID_ARGUMENT
E details = "Request contains an invalid argument."
E debug_error_string = "{"created":"@1600506311.241884253","description":"Error received from peer ipv4:74.125.20.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:729: _InactiveRpcError

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

new_notification_config_for_update = name: "organizations/1081635000895/notificationConfigs/new-notification-pytest286e6868-fa57-11ea-984b-42010a8a0083"
de...pic"
service_account: "service-org-1081635000895@gcp-sa-scc-notification.iam.gserviceaccount.com"
streaming_config {
}

def test_update_notification_config(new_notification_config_for_update):
    updated_config = snippets_notification_configs.update_notification_config(
      ORG_ID, UPDATE_CONFIG_ID, PUBSUB_TOPIC
    )

snippets_notification_test.py:134:


snippets_notification_configs.py:137: in update_notification_config
update_mask=field_mask,
../../google/cloud/securitycenter_v1/gapic/security_center_client.py:2571: in update_notification_config
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/retry.py:286: in retry_wrapped_func
on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/timeout.py:214: in func_with_timeout
return func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:59: 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.INVALID_ARGUMENT
details = "Request contains an ...c/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"

???
E google.api_core.exceptions.InvalidArgument: 400 Request contains an invalid argument.

:3: InvalidArgument

@flaky-bot flaky-bot bot reopened this Sep 19, 2020
@tmatsuo
Copy link
Contributor

tmatsuo commented Sep 21, 2020

@hannah-tsai FYI

@tmatsuo
Copy link
Contributor

tmatsuo commented Sep 21, 2020

This will be fixed with the new library release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: securitycenter Issues related to the googleapis/python-securitycenter API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants