René's URL Explorer Experiment


Title: tests.system: test_subscriber_not_leaking_open_sockets[grpc-grpc-rest] failed · Issue #981 · googleapis/python-pubsub · GitHub

Open Graph Title: tests.system: test_subscriber_not_leaking_open_sockets[grpc-grpc-rest] failed · Issue #981 · googleapis/python-pubsub

X Title: tests.system: test_subscriber_not_leaking_open_sockets[grpc-grpc-rest] failed · Issue #981 · 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: 5a47963 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: 5a47963 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: 5a47963...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tests.system: test_subscriber_not_leaking_open_sockets[grpc-grpc-rest] 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: 5a47963d5e58b7133c6286a17589d1c32fcbfc24\nbuildURL: [Build Status](https://source.cloud.google.com/results/invocations/254cc789-de9d-42ff-b481-adf9f5a1113e), [Sponge](http://sponge2/254cc789-de9d-42ff-b481-adf9f5a1113e)\nstatus: failed\n\u003cdetails\u003e\u003csummary\u003eTest output\u003c/summary\u003e\u003cbr\u003e\u003cpre\u003epublisher = \u003cgoogle.cloud.pubsub_v1.PublisherClient object at 0x7fb8601c0250\u003e\ntopic_path_base = 'projects/precise-truck-742/topics/t-1692375611236'\nsubscription_path_base = 'projects/precise-truck-742/subscriptions/s-1692375611238'\ncleanup = [(\u003cbound method SubscriberClient.delete_subscription of \u003cgoogle.cloud.pubsub_v1.SubscriberClient object at 0x7fb8622de...ject at 0x7fb8601c0250\u003e\u003e, (), {'topic': 'projects/precise-truck-742/topics/t-1692375611236-not-leaking-open-sockets'})]\ntransport = 'rest'\n\n    @pytest.mark.parametrize(\"transport\", [\"grpc\", \"rest\"])\n    def test_subscriber_not_leaking_open_sockets(\n        publisher, topic_path_base, subscription_path_base, cleanup, transport\n    ):\n        # Make sure the topic and the supscription get deleted.\n        # NOTE: Since subscriber client will be closed in the test, we should not\n        # use the shared `subscriber` fixture, but instead construct a new client\n        # in this test.\n        # Also, since the client will get closed, we need another subscriber client\n        # to clean up the subscription. We also need to make sure that auxiliary\n        # subscriber releases the sockets, too.\n        custom_str = \"-not-leaking-open-sockets\"\n        subscription_path = subscription_path_base + custom_str\n        topic_path = topic_path_base + custom_str\n        subscriber = pubsub_v1.SubscriberClient(transport=\"grpc\")\n        subscriber_2 = pubsub_v1.SubscriberClient(transport=\"grpc\")\n    \n        cleanup.append(\n            (subscriber_2.delete_subscription, (), {\"subscription\": subscription_path})\n        )\n        cleanup.append((subscriber_2.close, (), {}))\n        cleanup.append((publisher.delete_topic, (), {\"topic\": topic_path}))\n    \n        # Create topic before starting to track connection count (any sockets opened\n        # by the publisher client are not counted by this test).\n        publisher.create_topic(name=topic_path)\n    \n        current_process = psutil.Process()\n        conn_count_start = len(current_process.connections())\n    \n        # Publish a few messages, then synchronously pull them and check that\n        # no sockets are leaked.\n        with subscriber:\n            subscriber.create_subscription(name=subscription_path, topic=topic_path)\n    \n            # Publish a few messages, wait for the publish to succeed.\n            publish_futures = [\n                publisher.publish(topic_path, \"message {}\".format(i).encode())\n                for i in range(1, 4)\n            ]\n            for future in publish_futures:\n                future.result()\n    \n            # Synchronously pull messages.\n            response = subscriber.pull(subscription=subscription_path, max_messages=3)\n            assert len(response.received_messages) == 3\n    \n        conn_count_end = len(current_process.connections())\n    \n        # To avoid flakiness, use \u003c= in the assertion, since on rare occasions additional\n        # sockets are closed, causing the == assertion to fail.\n        # https://github.com/googleapis/python-pubsub/issues/483#issuecomment-910122086\n\u003e       assert conn_count_end \u003c= conn_count_start\nE       assert 2 \u003c= 1\n\ntests/system.py:495: AssertionError\u003c/pre\u003e\u003c/details\u003e","author":{"url":"https://github.com/flaky-bot[bot]","@type":"Person","name":"flaky-bot[bot]"},"datePublished":"2023-08-18T16:35:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/981/python-pubsub/issues/981"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ea229ecf-c6f6-363a-d8f2-a0dd4a65ad39
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A1A:643ED:32C5:40DD:6A4D8A97
html-safe-noncefc5aab63a67eb0938e6a9e862fdc4a32f37dd2b72ddcefed01f89cc105f0367a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTFBOjY0M0VEOjMyQzU6NDBERDo2QTREOEE5NyIsInZpc2l0b3JfaWQiOiIyODc5MDg4NzkxMzAwOTY3MDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac613c21ea64fc29ba922dbc32178a315a64302cb1ff5125ba92fe0f336b9815f2
hovercard-subject-tagissue:1856994456
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/981/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4b12a2c2b3552eaa8bc0e2f64b2fb7c30bd9bf439b51e5fa37822ec2f2c99b5d/googleapis/python-pubsub/issues/981
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4b12a2c2b3552eaa8bc0e2f64b2fb7c30bd9bf439b51e5fa37822ec2f2c99b5d/googleapis/python-pubsub/issues/981
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: 5a47963 bui...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameflaky-bot[bot]
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
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
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-pubsub/issues/981#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F981
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%2F981
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/981
Reloadhttps://github.com/googleapis/python-pubsub/issues/981
Reloadhttps://github.com/googleapis/python-pubsub/issues/981
Please reload this pagehttps://github.com/googleapis/python-pubsub/issues/981
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: test_subscriber_not_leaking_open_sockets[grpc-grpc-rest] failedhttps://github.com/googleapis/python-pubsub/issues/981#top
https://github.com/pradn
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 Aug 18, 2023https://github.com/googleapis/python-pubsub/issues/981#issue-1856994456
the Flaky Bot documentationhttps://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot
5a47963https://github.com/googleapis/python-pubsub/commit/5a47963d5e58b7133c6286a17589d1c32fcbfc24
Build Statushttps://source.cloud.google.com/results/invocations/254cc789-de9d-42ff-b481-adf9f5a1113e
Spongehttp://sponge2/254cc789-de9d-42ff-b481-adf9f5a1113e
pradnhttps://github.com/pradn
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.