René's URL Explorer Experiment


Title: Fix busy interpreter test readiness race by youknowdot · Pull Request #9328 · RustPython/RustPython · GitHub

Open Graph Title: Fix busy interpreter test readiness race by youknowdot · Pull Request #9328 · RustPython/RustPython

X Title: Fix busy interpreter test readiness race by youknowdot · Pull Request #9328 · RustPython/RustPython

Description: Summary Fix a readiness race in busy_main_interpreter_does_not_block_subinterpreter: Publish readiness once, after the main interpreter successfully completes and counts its first arithmetic operation. Bound the subinterpreter's readiness wait to 30 seconds, outside its attached VM, so failure or timeout before main readiness cannot leave it spinning forever. Preserve every original arithmetic/progress assertion, the main worker's 30-second deadline, its safepoint, and both yields. No skips, sleeps, or interpreter-runtime changes. Cause and relation to #9317 The main worker previously published readiness before its first loop-condition check. The sub worker could observe readiness, finish its multiplication, and publish completion before main entered the loop. Main then returned zero operations and failed the progress assertion despite successful subinterpreter progress. This is a separate, inherited test bug rather than a PyTime fixture regression: The failing #9317 job reports main_operations > 0 as the only VM failure. The whole test suite completed in 2.38 seconds, excluding the main worker's 30-second timeout path for this failure. #9317 base 94f92e4ab84f3c164299cbaea7ac110881a10f5d and head 29404850a370aad85467a782b65d7b44349a5f62 have identical interpreter.rs blob e6c4c2852feb1263f081f0582185cf0460fa70ab. #9317 changes only _testinternalcapi.rs and its private pytime.rs helper. The same readiness-before-progress ordering was introduced by ancestor 11de045 (#8517), before #9317's base. The test uses interpreters without the standard library and integer addition/multiplication, not the changed PyTime fixtures. The repository's test-logic restriction was explicitly excepted by the requester for this actual bug only; the general rule remains unchanged. Validation Independent source review passed. Normal repository commit hooks passed. cargo test --offline --locked -p rustpython-vm --features threading --lib --no-run passed with default VM features plus threading. Exact test listing identified one test. That test ran once with --exact --test-threads=1: 1 passed, 0 failed, 0 ignored, 174 filtered out, in 0.18 seconds. The focused run used an external 60-second process-group deadline and resource limits. Source and binary hashes were unchanged before/after; cleanup found no remaining descendants. The first cold no-run build reached its 30-minute build limit without a compiler diagnostic; the authorized warm-cache continuation completed successfully. This is not a runtime-test timeout. Validation is Linux x86-64 only. Full workspace tests, C-API tests, Clippy, parallel-suite execution, and other platforms were not run locally for this narrow change. No stress-loop or baseline-pass claim is made; broader CI results remain pending. AI assistance: OpenAI Codex; exact model identifier unavailable. Used for diagnosis, implementation, independent source review, and scoped validation.

Open Graph Description: Summary Fix a readiness race in busy_main_interpreter_does_not_block_subinterpreter: Publish readiness once, after the main interpreter successfully completes and counts its first arithmetic opera...

X Description: Summary Fix a readiness race in busy_main_interpreter_does_not_block_subinterpreter: Publish readiness once, after the main interpreter successfully completes and counts its first arithmetic opera...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9328

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d27fdec9-5b90-61ac-467e-b2e03a5d865e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECFA:A71F9:3072AE9:3D565AE:6B01FE29
html-safe-noncef75b30de109058d05b4a9b6c9bceda6898003332b8068dbdd7a02aca8e938b84
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0ZBOkE3MUY5OjMwNzJBRTk6M0Q1NjVBRTo2QjAxRkUyOSIsInZpc2l0b3JfaWQiOiIxNzg1MDgwOTQ1MDgzMjg1MDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd5032916b006c348f8084c8bc97d607ed74f8d7767a6437450530e11c5c07a22
hovercard-subject-tagpull_request:4981855538
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9328/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Fix a readiness race in busy_main_interpreter_does_not_block_subinterpreter: Publish readiness once, after the main interpreter successfully completes and counts its first arithmetic opera...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9328/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9328%2Ffiles
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%2FRustPython%2FRustPython%2Fpull%2F9328%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9328/files
Reloadhttps://github.com/RustPython/RustPython/pull/9328/files
Reloadhttps://github.com/RustPython/RustPython/pull/9328/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix-busy-interpreter-readinesshttps://github.com/youknowdot/RustPython/tree/fix-busy-interpreter-readiness
Conversation 2 https://github.com/RustPython/RustPython/pull/9328
Commits 1 https://github.com/RustPython/RustPython/pull/9328/commits
Checks 20 https://github.com/RustPython/RustPython/pull/9328/checks
Files changed https://github.com/RustPython/RustPython/pull/9328/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9328/files
Fix busy interpreter test readiness race https://github.com/RustPython/RustPython/pull/9328/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9328/files
7604857 Fix busy interpreter test readiness race youknowdot Oct 23, 2026 https://github.com/RustPython/RustPython/pull/9328/commits/76048576d139e4d3410a688c9ae1de1c73297c12
Clear filters https://github.com/RustPython/RustPython/pull/9328/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9328/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9328/files
crates/vm/src/vm/interpreter.rshttps://github.com/RustPython/RustPython/pull/9328/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
View file https://github.com/youknowdot/RustPython/blob/76048576d139e4d3410a688c9ae1de1c73297c12/crates/vm/src/vm/interpreter.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9328/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9328/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
https://github.com/RustPython/RustPython/pull/9328/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
https://github.com/RustPython/RustPython/pull/9328/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
https://github.com/RustPython/RustPython/pull/9328/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9328/files
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.