René's URL Explorer Experiment


Title: tests.system.TestStreamingPull: test_streaming_pull_blocking_shutdown[grpc-grpc] failed · Issue #879 · googleapis/python-pubsub · GitHub

Open Graph Title: tests.system.TestStreamingPull: test_streaming_pull_blocking_shutdown[grpc-grpc] failed · Issue #879 · googleapis/python-pubsub

X Title: tests.system.TestStreamingPull: test_streaming_pull_blocking_shutdown[grpc-grpc] failed · Issue #879 · googleapis/python-pubsub

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: 1dcff30 buildURL: Build Status, Sponge status: fail...

Open Graph 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: 1dcff30 bui...

X 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: 1dcff30...

Opengraph URL: https://github.com/googleapis/python-pubsub/issues/879

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tests.system.TestStreamingPull: test_streaming_pull_blocking_shutdown[grpc-grpc] failed","articleBody":"This test failed!\n\nTo configure my behavior, see [the Flaky Bot documentation](https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot).\n\nIf I'm commenting on this issue too often, add the `flakybot: quiet` label and\nI will stop commenting.\n\n---\n\ncommit: 1dcff30f6254cb6429565fe74b9c8cdc3e0338bb\nbuildURL: [Build Status](https://source.cloud.google.com/results/invocations/69291d8b-3212-412a-bd6f-d953dea8c4a1), [Sponge](http://sponge2/69291d8b-3212-412a-bd6f-d953dea8c4a1)\nstatus: failed\n\u003cdetails\u003e\u003csummary\u003eTest output\u003c/summary\u003e\u003cbr\u003e\u003cpre\u003eself = \u003ctests.system.TestStreamingPull object at 0x7fd8dca2b520\u003e\npublisher = \u003cgoogle.cloud.pubsub_v1.PublisherClient object at 0x7fd8b0700c70\u003e\ntopic_path = 'projects/precise-truck-742/topics/t-1678138055460'\nsubscriber = \u003cgoogle.cloud.pubsub_v1.SubscriberClient object at 0x7fd8dcaf3850\u003e\nsubscription_path = 'projects/precise-truck-742/subscriptions/s-1678138055462'\ncleanup = [(\u003cbound method PublisherClient.delete_topic of \u003cgoogle.cloud.pubsub_v1.PublisherClient object at 0x7fd8b0700c70\u003e\u003e, ()...erClient object at 0x7fd8dcaf3850\u003e\u003e, (), {'subscription': 'projects/precise-truck-742/subscriptions/s-1678138055462'})]\n\n    def test_streaming_pull_blocking_shutdown(\n        self, publisher, topic_path, subscriber, subscription_path, cleanup\n    ):\n        # Make sure the topic and subscription get deleted.\n        cleanup.append((publisher.delete_topic, (), {\"topic\": topic_path}))\n        cleanup.append(\n            (subscriber.delete_subscription, (), {\"subscription\": subscription_path})\n        )\n    \n        # The ACK-s are only persisted if *all* messages published in the same batch\n        # are ACK-ed. We thus publish each message in its own batch so that the backend\n        # treats all messages' ACKs independently of each other.\n        publisher.create_topic(name=topic_path)\n        subscriber.create_subscription(name=subscription_path, topic=topic_path)\n        _publish_messages(publisher, topic_path, batch_sizes=[1] * 10)\n    \n        # Artificially delay message processing, gracefully shutdown the streaming pull\n        # in the meantime, then verify that those messages were nevertheless processed.\n        processed_messages = []\n    \n        def callback(message):\n            time.sleep(15)\n            processed_messages.append(message.data)\n            message.ack()\n    \n        # Flow control limits should exceed the number of worker threads, so that some\n        # of the messages will be blocked on waiting for free scheduler threads.\n        flow_control = pubsub_v1.types.FlowControl(max_messages=5)\n        executor = concurrent.futures.ThreadPoolExecutor(max_workers=3)\n        scheduler = pubsub_v1.subscriber.scheduler.ThreadScheduler(executor=executor)\n        subscription_future = subscriber.subscribe(\n            subscription_path,\n            callback=callback,\n            flow_control=flow_control,\n            scheduler=scheduler,\n            await_callbacks_on_shutdown=True,\n        )\n    \n        try:\n            subscription_future.result(timeout=10)  # less than the sleep in callback\n        except exceptions.TimeoutError:\n            subscription_future.cancel()\n            subscription_future.result()  # block until shutdown completes\n    \n        # Blocking om shutdown should have waited for the already executing\n        # callbacks to finish.\n        assert len(processed_messages) == 3\n    \n        # The messages that were not processed should have been NACK-ed and we should\n        # receive them again quite soon.\n        all_done = threading.Barrier(7 + 1, timeout=5)  # +1 because of the main thread\n        remaining = []\n    \n        def callback2(message):\n            remaining.append(message.data)\n            message.ack()\n            all_done.wait()\n    \n        subscription_future = subscriber.subscribe(\n            subscription_path, callback=callback2, await_callbacks_on_shutdown=False\n        )\n    \n        try:\n\u003e           all_done.wait()\n\ntests/system.py:685: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \u003cthreading.Barrier object at 0x7fd8d898bf10\u003e, timeout = 5\n\n    def wait(self, timeout=None):\n        \"\"\"Wait for the barrier.\n    \n        When the specified number of threads have started waiting, they are all\n        simultaneously awoken. If an 'action' was provided for the barrier, one\n        of the threads will have executed that callback prior to returning.\n        Returns an individual index number from 0 to 'parties-1'.\n    \n        \"\"\"\n        if timeout is None:\n            timeout = self._timeout\n        with self._cond:\n            self._enter() # Block while the barrier drains.\n            index = self._count\n            self._count += 1\n            try:\n                if index + 1 == self._parties:\n                    # We release the barrier\n                    self._release()\n                else:\n                    # We wait until someone releases us\n\u003e                   self._wait(timeout)\n\n/usr/local/lib/python3.10/threading.py:668: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \u003cthreading.Barrier object at 0x7fd8d898bf10\u003e, timeout = 5\n\n    def _wait(self, timeout):\n        if not self._cond.wait_for(lambda : self._state != 0, timeout):\n            #timed out.  Break the barrier\n            self._break()\n\u003e           raise BrokenBarrierError\nE           threading.BrokenBarrierError\n\n/usr/local/lib/python3.10/threading.py:706: BrokenBarrierError\n\nDuring handling of the above exception, another exception occurred:\n\nself = \u003ctests.system.TestStreamingPull object at 0x7fd8dca2b520\u003e\npublisher = \u003cgoogle.cloud.pubsub_v1.PublisherClient object at 0x7fd8b0700c70\u003e\ntopic_path = 'projects/precise-truck-742/topics/t-1678138055460'\nsubscriber = \u003cgoogle.cloud.pubsub_v1.SubscriberClient object at 0x7fd8dcaf3850\u003e\nsubscription_path = 'projects/precise-truck-742/subscriptions/s-1678138055462'\ncleanup = [(\u003cbound method PublisherClient.delete_topic of \u003cgoogle.cloud.pubsub_v1.PublisherClient object at 0x7fd8b0700c70\u003e\u003e, ()...erClient object at 0x7fd8dcaf3850\u003e\u003e, (), {'subscription': 'projects/precise-truck-742/subscriptions/s-1678138055462'})]\n\n    def test_streaming_pull_blocking_shutdown(\n        self, publisher, topic_path, subscriber, subscription_path, cleanup\n    ):\n        # Make sure the topic and subscription get deleted.\n        cleanup.append((publisher.delete_topic, (), {\"topic\": topic_path}))\n        cleanup.append(\n            (subscriber.delete_subscription, (), {\"subscription\": subscription_path})\n        )\n    \n        # The ACK-s are only persisted if *all* messages published in the same batch\n        # are ACK-ed. We thus publish each message in its own batch so that the backend\n        # treats all messages' ACKs independently of each other.\n        publisher.create_topic(name=topic_path)\n        subscriber.create_subscription(name=subscription_path, topic=topic_path)\n        _publish_messages(publisher, topic_path, batch_sizes=[1] * 10)\n    \n        # Artificially delay message processing, gracefully shutdown the streaming pull\n        # in the meantime, then verify that those messages were nevertheless processed.\n        processed_messages = []\n    \n        def callback(message):\n            time.sleep(15)\n            processed_messages.append(message.data)\n            message.ack()\n    \n        # Flow control limits should exceed the number of worker threads, so that some\n        # of the messages will be blocked on waiting for free scheduler threads.\n        flow_control = pubsub_v1.types.FlowControl(max_messages=5)\n        executor = concurrent.futures.ThreadPoolExecutor(max_workers=3)\n        scheduler = pubsub_v1.subscriber.scheduler.ThreadScheduler(executor=executor)\n        subscription_future = subscriber.subscribe(\n            subscription_path,\n            callback=callback,\n            flow_control=flow_control,\n            scheduler=scheduler,\n            await_callbacks_on_shutdown=True,\n        )\n    \n        try:\n            subscription_future.result(timeout=10)  # less than the sleep in callback\n        except exceptions.TimeoutError:\n            subscription_future.cancel()\n            subscription_future.result()  # block until shutdown completes\n    \n        # Blocking om shutdown should have waited for the already executing\n        # callbacks to finish.\n        assert len(processed_messages) == 3\n    \n        # The messages that were not processed should have been NACK-ed and we should\n        # receive them again quite soon.\n        all_done = threading.Barrier(7 + 1, timeout=5)  # +1 because of the main thread\n        remaining = []\n    \n        def callback2(message):\n            remaining.append(message.data)\n            message.ack()\n            all_done.wait()\n    \n        subscription_future = subscriber.subscribe(\n            subscription_path, callback=callback2, await_callbacks_on_shutdown=False\n        )\n    \n        try:\n            all_done.wait()\n        except threading.BrokenBarrierError:  # PRAGMA: no cover\n\u003e           pytest.fail(\"The remaining messages have not been re-delivered in time.\")\nE           Failed: The remaining messages have not been re-delivered in time.\n\ntests/system.py:687: Failed\u003c/pre\u003e\u003c/details\u003e","author":{"url":"https://github.com/flaky-bot[bot]","@type":"Person","name":"flaky-bot[bot]"},"datePublished":"2023-03-06T21:29:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/879/python-pubsub/issues/879"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8020ff08-bd3e-4cd4-d0ec-2b5c3473d52a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB1B8:17FA4:130F0AD:1A67951:6A4DE438
html-safe-nonce48e50eb9fd6278fc97a26bfaec495698e956ad20df46f0f3b251c112783b1718
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUI4OjE3RkE0OjEzMEYwQUQ6MUE2Nzk1MTo2QTRERTQzOCIsInZpc2l0b3JfaWQiOiIzNDU2OTEyNzIyMTQ2MDI4MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9e29ddc5e3e93132ebb71e4263e8ffdb5caae7713257d796f0ee89db7f7bfa16
hovercard-subject-tagissue:1612234476
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-pubsub/879/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8a4cf8de13eb561299a1848bdf8018a225c326ac171ef0061a9ae93925fab7e3/googleapis/python-pubsub/issues/879
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a4cf8de13eb561299a1848bdf8018a225c326ac171ef0061a9ae93925fab7e3/googleapis/python-pubsub/issues/879
og:image:altThis 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: 1dcff30 bui...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameflaky-bot[bot]
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-pubsub git https://github.com/googleapis/python-pubsub.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992581
octolytics-dimension-repository_nwogoogleapis/python-pubsub
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992581
octolytics-dimension-repository_network_root_nwogoogleapis/python-pubsub
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-pubsub/issues/879#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F879
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F879
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-pubsub
Reloadhttps://github.com/googleapis/python-pubsub/issues/879
Reloadhttps://github.com/googleapis/python-pubsub/issues/879
Reloadhttps://github.com/googleapis/python-pubsub/issues/879
Please reload this pagehttps://github.com/googleapis/python-pubsub/issues/879
googleapis https://github.com/googleapis
python-pubsubhttps://github.com/googleapis/python-pubsub
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Fork 214 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Star 430 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Code https://github.com/googleapis/python-pubsub
Issues 0 https://github.com/googleapis/python-pubsub/issues
Pull requests 0 https://github.com/googleapis/python-pubsub/pulls
Actions https://github.com/googleapis/python-pubsub/actions
Projects https://github.com/googleapis/python-pubsub/projects
Security and quality 0 https://github.com/googleapis/python-pubsub/security
Insights https://github.com/googleapis/python-pubsub/pulse
Code https://github.com/googleapis/python-pubsub
Issues https://github.com/googleapis/python-pubsub/issues
Pull requests https://github.com/googleapis/python-pubsub/pulls
Actions https://github.com/googleapis/python-pubsub/actions
Projects https://github.com/googleapis/python-pubsub/projects
Security and quality https://github.com/googleapis/python-pubsub/security
Insights https://github.com/googleapis/python-pubsub/pulse
tests.system.TestStreamingPull: test_streaming_pull_blocking_shutdown[grpc-grpc] failedhttps://github.com/googleapis/python-pubsub/issues/879#top
https://github.com/acocuzzo
api: pubsubIssues related to the googleapis/python-pubsub API.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22api%3A%20pubsub%22
flakybot: flakyTells the Flaky Bot not to close or comment on this issue.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22flakybot%3A%20flaky%22
flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22flakybot%3A%20issue%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/apps/flaky-bot
flaky-bothttps://github.com/apps/flaky-bot
on Mar 6, 2023https://github.com/googleapis/python-pubsub/issues/879#issue-1612234476
the Flaky Bot documentationhttps://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot
1dcff30https://github.com/googleapis/python-pubsub/commit/1dcff30f6254cb6429565fe74b9c8cdc3e0338bb
Build Statushttps://source.cloud.google.com/results/invocations/69291d8b-3212-412a-bd6f-d953dea8c4a1
Spongehttp://sponge2/69291d8b-3212-412a-bd6f-d953dea8c4a1
acocuzzohttps://github.com/acocuzzo
api: pubsubIssues related to the googleapis/python-pubsub API.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22api%3A%20pubsub%22
flakybot: flakyTells the Flaky Bot not to close or comment on this issue.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22flakybot%3A%20flaky%22
flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22flakybot%3A%20issue%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.