René's URL Explorer Experiment


Title: gh-157157: Make test_taskgroup_cancel_keeps_outer_cancellation deterministic by iamsharduld · Pull Request #157158 · python/cpython · GitHub

Open Graph Title: gh-157157: Make test_taskgroup_cancel_keeps_outer_cancellation deterministic by iamsharduld · Pull Request #157158 · python/cpython

X Title: gh-157157: Make test_taskgroup_cancel_keeps_outer_cancellation deterministic by iamsharduld · Pull Request #157158 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Fixes the timing dependence described in the issue: the test cancelled the parent task from outside after await asyncio.sleep(0.01), and lost the cancellation message whenever the loop stalled for ...

X Description: Fixes the timing dependence described in the issue: the test cancelled the parent task from outside after await asyncio.sleep(0.01), and lost the cancellation message whenever the loop stalled for ...

Opengraph URL: https://github.com/python/cpython/pull/157158

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4944f6df-cca2-0868-0e35-b9a305e24812
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD548:187C1E:150F64D:1BD4099:6B01F969
html-safe-nonce83c2ad22a25a75713cd9c7f32d1b42ef2030bbe12647b0e5484a5e4fc883bbc4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTQ4OjE4N0MxRToxNTBGNjREOjFCRDQwOTk6NkIwMUY5NjkiLCJ2aXNpdG9yX2lkIjoiMjMxMzU1NzI0NDcxOTAwNDAwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8a9ff9ea751fcfbf37b70cec8909ddcc2cad1ad72370afe41dc13512303389c4
hovercard-subject-tagpull_request:4470188453
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/157158/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0682d1c27936e3a546c5f292b4bf343a09c3dceec21a8b45692956283bef7ee3/python/cpython/pull/157158
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0682d1c27936e3a546c5f292b4bf343a09c3dceec21a8b45692956283bef7ee3/python/cpython/pull/157158
og:image:altFixes the timing dependence described in the issue: the test cancelled the parent task from outside after await asyncio.sleep(0.01), and lost the cancellation message whenever the loop stalled for ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiamsharduld
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/157158#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157158
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157158
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/157158
Reloadhttps://github.com/python/cpython/pull/157158
Reloadhttps://github.com/python/cpython/pull/157158
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
iamsharduld:fix-taskgroup-cancel-testhttps://github.com/iamsharduld/cpython/tree/fix-taskgroup-cancel-test
Conversationhttps://github.com/python/cpython/pull/157158
Commits2 (2)https://github.com/python/cpython/pull/157158/commits
Checkshttps://github.com/python/cpython/pull/157158/checks
Files changedhttps://github.com/python/cpython/pull/157158/files
gh-157157: Make test_taskgroup_cancel_keeps_outer_cancellation deterministichttps://github.com/python/cpython/pull/157158#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
iamsharduld:fix-taskgroup-cancel-testhttps://github.com/iamsharduld/cpython/tree/fix-taskgroup-cancel-test
https://github.com/iamsharduld
iamsharduldhttps://github.com/iamsharduld
Sep 8, 2026https://github.com/python/cpython/pull/157158#issue-5381965465
Please reload this pagehttps://github.com/python/cpython/pull/157158
asyncio.TaskGroup swallows cancellations coming from outside of it #155433https://github.com/python/cpython/issues/155433
gh-155433https://github.com/python/cpython/issues/155433
test_taskgroup_cancel_keeps_outer_cancellation is timing-dependent and fails on slow (TSan) CI #157157https://github.com/python/cpython/issues/157157
Please reload this pagehttps://github.com/python/cpython/pull/157158
https://github.com/iamsharduld
pythongh-157157https://github.com/python/cpython/issues/157157
: Make test_taskgroup_cancel_keeps_outer_cancellation …https://github.com/python/cpython/pull/157158/commits/86ee3087bf9b9de6b183cccf75d9ae526e930795
86ee308https://github.com/python/cpython/pull/157158/commits/86ee3087bf9b9de6b183cccf75d9ae526e930795
https://github.com/iamsharduld
iamsharduldhttps://github.com/iamsharduld
1st1https://github.com/1st1
asvetlovhttps://github.com/asvetlov
kumaraditya303https://github.com/kumaraditya303
willingchttps://github.com/willingc
code ownershttps://github.com/python/cpython/blob/0b4c7da5c401154af7b7cb89a6467365cadc2653/.github/CODEOWNERS#L372
September 8, 2026 04:17https://github.com/python/cpython/pull/157158#event-30728314522
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 8, 2026 https://github.com/python/cpython/pull/157158#ref-issue-5381954627
test_taskgroup_cancel_keeps_outer_cancellation is timing-dependent and fails on slow (TSan) CI #157157 https://github.com/python/cpython/issues/157157
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 8, 2026https://github.com/python/cpython/pull/157158#event-30728317456
https://github.com/iamsharduld
iamsharduldhttps://github.com/iamsharduld
Sep 8, 2026 https://github.com/python/cpython/pull/157158#ref-pullrequest-5381742165
gh-131178: Add tests for ensurepip command-line interface #157154 https://github.com/python/cpython/pull/157154
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Sep 8, 2026 https://github.com/python/cpython/pull/157158#pullrequestreview-5139138138
View reviewed changes https://github.com/python/cpython/pull/157158/files/86ee3087bf9b9de6b183cccf75d9ae526e930795
Misc/NEWS.d/next/Tests/2026-09-08-02-40-00.gh-issue-157157.5X2ypw.rsthttps://github.com/python/cpython/pull/157158/files/86ee3087bf9b9de6b183cccf75d9ae526e930795#diff-a471fe23afb9580ad8488e82043d95ccd5ec87739db0717b412c57c10eeffc8a
Please reload this pagehttps://github.com/python/cpython/pull/157158
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Sep 8, 2026https://github.com/python/cpython/pull/157158#event-30739850591
https://github.com/iamsharduld
Remove the NEWS entryhttps://github.com/python/cpython/pull/157158/commits/c4778ee781b7515e705c8fee0becc8af3a5b1c4b
c4778eehttps://github.com/python/cpython/pull/157158/commits/c4778ee781b7515e705c8fee0becc8af3a5b1c4b
https://github.com/iamsharduld
iamsharduldhttps://github.com/iamsharduld
Sep 8, 2026https://github.com/python/cpython/pull/157158#issuecomment-5582295093
Please reload this pagehttps://github.com/python/cpython/pull/157158
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 8, 2026https://github.com/python/cpython/pull/157158#event-30742569990
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 8, 2026https://github.com/python/cpython/pull/157158#issuecomment-5582296550
Please reload this pagehttps://github.com/python/cpython/pull/157158
gh-157184: Scale the join() alarm in the multiprocessing kill tests #157185 https://github.com/python/cpython/pull/157185
gh-131178: Add tests for pstats command-line interface #157133 https://github.com/python/cpython/pull/157133
gh-157161: Fix test_rollover_based_on_st_birthtime_only on slow machines #157162 https://github.com/python/cpython/pull/157162
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Sep 11, 2026 https://github.com/python/cpython/pull/157158#pullrequestreview-5178729132
View reviewed changes https://github.com/python/cpython/pull/157158/files/c4778ee781b7515e705c8fee0becc8af3a5b1c4b
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
Sep 11, 2026https://github.com/python/cpython/pull/157158#event-30972071733
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
1c641ffhttps://github.com/python/cpython/commit/1c641ff2c3e57acaae27d36b6b30839e585ac090
Sep 11, 2026https://github.com/python/cpython/pull/157158#event-30972109005
Please reload this pagehttps://github.com/python/cpython/pull/157158
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Sep 11, 2026https://github.com/python/cpython/pull/157158#event-30972111807
clin1234https://github.com/clin1234
Sep 12, 2026 https://github.com/python/cpython/pull/157158#ref-commit-e8cdbd2
https://github.com/iamsharduld
https://github.com/clin1234
pythongh-157157https://github.com/python/cpython/issues/157157
: Make test_taskgroup_cancel_keeps_outer_cancellation …https://github.com/clin1234/cpython/commit/e8cdbd2bc24aad31e931543b44724b082f56fcc7
e8cdbd2https://github.com/clin1234/cpython/commit/e8cdbd2bc24aad31e931543b44724b082f56fcc7
python#157158https://github.com/python/cpython/pull/157158
johnslavikhttps://github.com/johnslavik
Sep 14, 2026 https://github.com/python/cpython/pull/157158#ref-commit-079e137
https://github.com/iamsharduld
https://github.com/johnslavik
pythongh-157157https://github.com/python/cpython/issues/157157
: Make test_taskgroup_cancel_keeps_outer_cancellation …https://github.com/johnslavik/cpython/commit/079e137e8f387f3b901a6295572fbe6f3e9b8d13
079e137https://github.com/johnslavik/cpython/commit/079e137e8f387f3b901a6295572fbe6f3e9b8d13
python#157158https://github.com/python/cpython/pull/157158
https://github.com/aisk
aiskhttps://github.com/aisk
Oct 14, 2026 https://github.com/python/cpython/pull/157158#ref-pullrequest-5829600526
gh-159293: Restore the recursion limit after the free-threading race test #159311 https://github.com/python/cpython/pull/159311
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157158
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/157158/files/c4778ee781b7515e705c8fee0becc8af3a5b1c4b
https://github.com/1st1
1st1 https://github.com/1st1
https://github.com/asvetlov
asvetlov https://github.com/asvetlov
https://github.com/willingc
willingc https://github.com/willingc
Please reload this pagehttps://github.com/python/cpython/pull/157158
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Please reload this pagehttps://github.com/python/cpython/pull/157158
https://github.com/iamsharduld
https://github.com/kumaraditya303
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.