GeezerVison is showing github.com — samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed · Issue #341 · googleapis/python-pubsub
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed #341Labels api: pubsubIssues related to the googleapis/python-pubsub API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionNote: #288 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.
commit: 0a662a6
buildURL: Build Status, Sponge
status: failed
Test output
args = (subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.8-67e8d2e8a0694...GMOEgRQE1B0XlsRDXptXFcnUwwRcnxmdm1dFgIGR1F6XHOSwM2p4pzYYhclSsjBp9hsM6SJgNJPZho9XxJLLD5-NTBFQV5AEkw-BURJUytDCypYEU4E"
,)
kwargs = {'metadata': [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-te...nc-3.8-67e8d2e8a0694699941f982bd11daedd'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.36.1 gax/1.26.1 gccl/2.4.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:73:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fbb3c7c50d0>
request = subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.8-67e8d2e8a06946...pcGMOEgRQE1B0XlsRDXptXFcnUwwRcnxmdm1dFgIGR1F6XHOSwM2p4pzYYhclSsjBp9hsM6SJgNJPZho9XxJLLD5-NTBFQV5AEkw-BURJUytDCypYEU4E"
timeout = None
metadata = [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-test-subscripti...ync-3.8-67e8d2e8a0694699941f982bd11daedd'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.36.1 gax/1.26.1 gccl/2.4.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-8/lib/python3.8/site-packages/grpc/_channel.py:923:
state = <grpc._channel._RPCState object at 0x7fbb3c7727c0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fbb3c775fc0>
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.UNKNOWN
E details = "Stream removed"
E debug_error_string = "{"created":"@1616414726.271814232","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
E >
.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:826: _InactiveRpcError
The above exception was the direct cause of the following exception:
publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7fbb3f0cb4c0>
topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-67e8d2e8a0694699941f982bd11daedd'
subscription_sync = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.8-67e8d2e8a0694699941f982bd11daedd'
capsys = <_pytest.capture.CaptureFixture object at 0x7fbb3f0d03a0>
def test_receive_synchronously_with_lease(
publisher_client, topic, subscription_sync, capsys
):
_publish_messages(publisher_client, topic)
subscriber.synchronous_pull_with_lease_management(PROJECT_ID, SUBSCRIPTION_SYNC)
subscriber_test.py:397:
subscriber.py:567: in synchronous_pull_with_lease_management
subscriber.modify_ack_deadline(
../../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:913: in modify_ack_deadline
rpc(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:281: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:75: 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.UNKNOWN
details = "Stream removed"
debug_error....195.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
???
E google.api_core.exceptions.Unknown: None Stream removed
:3: Unknown Activityadded flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually. 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 Mar 22, 2021anguillanneuf commented on Mar 22, 2021 This flaky error should go away with the next release: 2.4.1.
From the logs:
--- IMPORTANT IMPORTANT IMPORTANT ---
Now we rewind the repo back to the latest release...
Previous HEAD position was 0a662a6 chore(samples): fix typo
HEAD is now at a11ac13 chore: release v2.4.0 (#296)
The current head is:
a11ac1373cd1996089620d8b72b4b4d1b3f1812f
flaky-bot commented on Mar 23, 2021 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 (0a662a6), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge). meredithslota commented on Mar 30, 2021 flaky-bot commented on Apr 9, 2021 Oops! Looks like this issue is still flaky. It failed again. 😬
I reopened the issue, but a human will need to close it again.
commit: 5812018
buildURL: Build Status, Sponge
status: failed
Test output
args = (topic: "projects/python-docs-samples-tests/topics/subscription-test-topic-3.6-34c24062d8214ca587826bd6fcddde06"
,)
kwargs = {'metadata': [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/subscription-test-topic-3.6-34c24062d8214ca587826bd6fcddde06'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.37.0 gax/1.26.3 gccl/2.4.1')]}
@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:73:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fab4114d588>
request = topic: "projects/python-docs-samples-tests/topics/subscription-test-topic-3.6-34c24062d8214ca587826bd6fcddde06"
timeout = None
metadata = [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/subscription-test-topic-3.6-34c24062d8214ca587826bd6fcddde06'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.37.0 gax/1.26.3 gccl/2.4.1')]
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:946:
state = <grpc._channel._RPCState object at 0x7fab4124e518>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fab412b9408>
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.UNKNOWN
E details = "Stream removed"
E debug_error_string = "{"created":"@1617959408.555737112","description":"Error received from peer ipv4:74.125.20.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
E >
.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:849: _InactiveRpcError
The above exception was the direct cause of the following exception:
publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7fab4117c7f0>
@pytest.fixture(scope="module")
def topic(publisher_client):
topic_path = publisher_client.topic_path(PROJECT_ID, TOPIC)
try:
topic = publisher_client.get_topic(request={"topic": topic_path})
except: # noqa
topic = publisher_client.create_topic(request={"name": topic_path})
yield topic.name
publisher_client.delete_topic(request={"topic": topic.name})
subscriber_test.py:61:
../../google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
../../google/pubsub_v1/services/publisher/client.py:1011: in delete_topic
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/grpc_helpers.py:75: 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.UNKNOWN
details = "Stream removed"
debug_error...5.20.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
???
E google.api_core.exceptions.Unknown: None Stream removed
:3: Unknown meredithslota commented on Apr 9, 2021 anguillanneuf commented on Apr 9, 2021 @meredithslota Safe to close because it failed periodic-head (against head) but not periodic (against the released version).
If the test failed both, we should definitely investigate. cc: @tmatsuo
We retry UNKNOWN three times and that's not enough...🤨
|
@backoff.on_exception(backoff.expo, Unknown, max_time=300) |
flaky-bot commented on May 27, 2021 Oops! Looks like this issue is still flaky. It failed again. 😬
I reopened the issue, but a human will need to close it again.
commit: e907f6e
buildURL: Build Status, Sponge
status: failed
Test output
args = (topic: "projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-00b039c2284a407f84be429af9cb8316"
,)
kwargs = {'metadata': [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-00b039c2284a407f84be429af9cb8316'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.0 gax/1.28.0 gccl/2.5.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f7d69fda8b0>
request = topic: "projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-00b039c2284a407f84be429af9cb8316"
timeout = None
metadata = [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-00b039c2284a407f84be429af9cb8316'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.0 gax/1.28.0 gccl/2.5.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-8/lib/python3.8/site-packages/grpc/_channel.py:946:
state = <grpc._channel._RPCState object at 0x7f7d6a136c70>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f7d69fc02c0>
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.UNKNOWN
E details = "Stream removed"
E debug_error_string = "{"created":"@1622113664.165441020","description":"Error received from peer ipv4:74.125.197.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Stream removed","grpc_status":2}"
E >
.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError
The above exception was the direct cause of the following exception:
publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f7d68754850>
@pytest.fixture(scope="module")
def topic(publisher_client):
topic_path = publisher_client.topic_path(PROJECT_ID, TOPIC)
try:
topic = publisher_client.get_topic(request={"topic": topic_path})
except: # noqa
topic = publisher_client.create_topic(request={"name": topic_path})
yield topic.name
publisher_client.delete_topic(request={"topic": topic.name})
subscriber_test.py:61:
../../google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
../../google/pubsub_v1/services/publisher/client.py:1010: in delete_topic
rpc(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:285: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:188: in retry_target
return target()
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:69: 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.UNKNOWN
details = "Stream removed"
debug_error....197.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Stream removed","grpc_status":2}"
???
E google.api_core.exceptions.Unknown: None Stream removed
:3: Unknown flaky-bot commented on Jun 20, 2021 Oops! Looks like this issue is still flaky. It failed again. 😬
I reopened the issue, but a human will need to close it again.
commit: ef89f55
buildURL: Build Status, Sponge
status: failed
Test output
args = (topic: "projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-88a829f24d3d4b6088ada7979fd80356"
,)
kwargs = {'metadata': [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-88a829f24d3d4b6088ada7979fd80356'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.0 gax/1.30.0 gccl/2.5.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f330625db50>
request = topic: "projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-88a829f24d3d4b6088ada7979fd80356"
timeout = None
metadata = [('x-goog-request-params', 'topic=projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-88a829f24d3d4b6088ada7979fd80356'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.0 gax/1.30.0 gccl/2.5.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-8/lib/python3.8/site-packages/grpc/_channel.py:946:
state = <grpc._channel._RPCState object at 0x7f330632e4f0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f33063067c0>
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.UNKNOWN
E details = "Stream removed"
E debug_error_string = "{"created":"@1624190796.380777146","description":"Error received from peer ipv4:108.177.98.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Stream removed","grpc_status":2}"
E >
.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError
The above exception was the direct cause of the following exception:
publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f33041efc70>
@pytest.fixture(scope="module")
def topic(publisher_client):
topic_path = publisher_client.topic_path(PROJECT_ID, TOPIC)
try:
topic = publisher_client.get_topic(request={"topic": topic_path})
except: # noqa
topic = publisher_client.create_topic(request={"name": topic_path})
yield topic.name
publisher_client.delete_topic(request={"topic": topic.name})
subscriber_test.py:61:
../../google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
../../google/pubsub_v1/services/publisher/client.py:1010: in delete_topic
rpc(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:285: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:188: in retry_target
return target()
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:69: 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.UNKNOWN
details = "Stream removed"
debug_error...7.98.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Stream removed","grpc_status":2}"
???
E google.api_core.exceptions.Unknown: None Stream removed
:3: Unknown
MetadataMetadataapi: pubsubIssues related to the googleapis/python-pubsub API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|