-
Notifications
You must be signed in to change notification settings - Fork 214
Description
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: 29c09a4
buildURL: Build Status, Sponge
status: failed
Test output
args = (name: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-admin-3.7-59e7f2c6d43846629256...7f2c6d438466292569104edb7091b"
push_config {
push_endpoint: "https://python-docs-samples-tests.appspot.com/push"
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/python-docs-samples-tests/subscriptions/subscription-test-subsc...in-3.7-59e7f2c6d438466292569104edb7091b'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.40.0 gax/2.0.1 gccl/2.8.0')]}
@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:66:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f7cb2621650>
request = name: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-admin-3.7-59e7f2c6d438466292569...9e7f2c6d438466292569104edb7091b"
push_config {
push_endpoint: "https://python-docs-samples-tests.appspot.com/push"
}
timeout = None
metadata = [('x-goog-request-params', 'name=projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-admin-3.7-59e7f2c6d438466292569104edb7091b'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.40.0 gax/2.0.1 gccl/2.8.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-7/lib/python3.7/site-packages/grpc/_channel.py:946:
state = <grpc._channel._RPCState object at 0x7f7cb2752410>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f7cb2623870>
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.ALREADY_EXISTS
E details = "Resource already exists in the project (resource=subscription-test-subscription-admin-3.7-59e7f2c6d438466292569104edb7091b)."
E debug_error_string = "{"created":"@1632132761.950878837","description":"Error received from peer ipv4:74.125.135.95:443","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"Resource already exists in the project (resource=subscription-test-subscription-admin-3.7-59e7f2c6d438466292569104edb7091b).","grpc_status":6}"
E >
.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:849: _InactiveRpcError
The above exception was the direct cause of the following exception:
subscriber_client = <google.cloud.pubsub_v1.SubscriberClient object at 0x7f7cb2743ad0>
subscription_admin = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-admin-3.7-59e7f2c6d438466292569104edb7091b'
capsys = <_pytest.capture.CaptureFixture object at 0x7f7cb275f050>
def test_create_push(
subscriber_client: pubsub_v1.SubscriberClient,
subscription_admin: str,
capsys: CaptureFixture,
) -> None:
# The scope of `subscription_path` is limited to this function.
subscription_path = subscriber_client.subscription_path(
PROJECT_ID, SUBSCRIPTION_ADMIN
)
try:
subscriber_client.delete_subscription(
request={"subscription": subscription_path}
)
except NotFound:
pass
subscriber.create_push_subscription(PROJECT_ID, TOPIC, SUBSCRIPTION_ADMIN, ENDPOINT)
subscriber_test.py:376:
subscriber.py:176: in create_push_subscription
"push_config": push_config,
../../google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
../../google/pubsub_v1/services/subscriber/client.py:560: in create_subscription
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:142: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:288: in retry_wrapped_func
on_error=on_error,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:190: in retry_target
return target()
args = (name: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-admin-3.7-59e7f2c6d43846629256...7f2c6d438466292569104edb7091b"
push_config {
push_endpoint: "https://python-docs-samples-tests.appspot.com/push"
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/python-docs-samples-tests/subscriptions/subscription-test-subsc...in-3.7-59e7f2c6d438466292569104edb7091b'), ('x-goog-api-client', 'gl-python/3.7.10 grpc/1.40.0 gax/2.0.1 gccl/2.8.0')]}
@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
except grpc.RpcError as exc:
raise exceptions.from_grpc_error(exc) from exc
E google.api_core.exceptions.AlreadyExists: 409 Resource already exists in the project (resource=subscription-test-subscription-admin-3.7-59e7f2c6d438466292569104edb7091b).
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:68: AlreadyExists