Title: subscriber_test.test_receive_messages_with_exactly_once_delivery_enabled unit flaky · Issue #636 · googleapis/python-pubsub · GitHub
Open Graph Title: subscriber_test.test_receive_messages_with_exactly_once_delivery_enabled unit flaky · Issue #636 · googleapis/python-pubsub
X Title: subscriber_test.test_receive_messages_with_exactly_once_delivery_enabled unit flaky · Issue #636 · googleapis/python-pubsub
Description: Samples unit test fails since PR #629 regional_publisher_client =
Open Graph Description: Samples unit test fails since PR #629 regional_publisher_client =
X Description: Samples unit test fails since PR #629 regional_publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7fcdbe671ca0> exactly_once_delivery_topic = 'projects/python-docs-sam...
Opengraph URL: https://github.com/googleapis/python-pubsub/issues/636
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"subscriber_test.test_receive_messages_with_exactly_once_delivery_enabled unit flaky","articleBody":"Samples unit test fails since PR #629 \r\n```\r\nregional_publisher_client = \u003cgoogle.cloud.pubsub_v1.PublisherClient object at 0x7fcdbe671ca0\u003e\r\nexactly_once_delivery_topic = 'projects/python-docs-samples-tests/topics/subscription-test-eod-topic-3.9-9bea132264a14256be2578f16fc56344'\r\nsubscription_eod = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-eod-3.9-9bea132264a14256be2578f16fc56344'\r\ncapsys = \u003c_pytest.capture.CaptureFixture object at 0x7fcdbe55ab20\u003e\r\n\r\n def test_receive_messages_with_exactly_once_delivery_enabled(\r\n regional_publisher_client: pubsub_v1.PublisherClient,\r\n exactly_once_delivery_topic: str,\r\n subscription_eod: str,\r\n capsys: CaptureFixture[str],\r\n ) -\u003e None:\r\n\r\n message_ids = _publish_messages(regional_publisher_client, exactly_once_delivery_topic)\r\n\r\n\u003e subscriber.receive_messages_with_exactly_once_delivery_enabled(\r\n PROJECT_ID, SUBSCRIPTION_EOD, 10\r\n )\r\n\r\nsubscriber_test.py:715:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\nsubscriber.py:662: in receive_messages_with_exactly_once_delivery_enabled\r\n streaming_pull_future.result(timeout=timeout)\r\n/usr/local/lib/python3.9/concurrent/futures/_base.py:445: in result\r\n return self.__get_result()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = None\r\n\r\n def __get_result(self):\r\n if self._exception:\r\n try:\r\n\u003e raise self._exception\r\nE google.api_core.exceptions.NotFound: 404 Resource not found (resource=projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-eod-3.9-9bea132264a14256be2578f16fc56344).\r\n\r\n/usr/local/lib/python3.9/concurrent/futures/_base.py:390: NotFound\r\n```\r\n\r\nI suspect this may be due to a change in the test in: PR #628\r\nor exactly once behavior in PR #626.\r\n","author":{"url":"https://github.com/acocuzzo","@type":"Person","name":"acocuzzo"},"datePublished":"2022-04-05T16:54:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/636/python-pubsub/issues/636"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ebbecf0-f994-ca5e-61d8-b17e692aa143 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A678:2E51E:917039:CDFE4A:6A4E7B0B |
| html-safe-nonce | 229dbd3f2a00b0184c33fca72608d9939ea69043e09a2a65a5e5e8e08f73a19f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjc4OjJFNTFFOjkxNzAzOTpDREZFNEE6NkE0RTdCMEIiLCJ2aXNpdG9yX2lkIjoiODc1OTMxMTYyNDE0ODI1MzQ1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b182055a75ce6e5b5a155ed84d57c7001b62446539fcbea73d4b667498dc68d3 |
| hovercard-subject-tag | issue:1193462837 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-pubsub/636/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a6076cfd39c5f9b36898cb2698cba1229877b0fbe47d894ccc34c843f880e11/googleapis/python-pubsub/issues/636 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a6076cfd39c5f9b36898cb2698cba1229877b0fbe47d894ccc34c843f880e11/googleapis/python-pubsub/issues/636 |
| og:image:alt | Samples unit test fails since PR #629 regional_publisher_client = |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | acocuzzo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-pubsub git https://github.com/googleapis/python-pubsub.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992581 |
| octolytics-dimension-repository_nwo | googleapis/python-pubsub |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992581 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-pubsub |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width