René's URL Explorer Experiment


Title: Update Lib stream concurrency tests and pyrepl decorators to Python 3.15 by youknowdot · Pull Request #9434 · RustPython/RustPython · GitHub

Open Graph Title: Update Lib stream concurrency tests and pyrepl decorators to Python 3.15 by youknowdot · Pull Request #9434 · RustPython/RustPython

X Title: Update Lib stream concurrency tests and pyrepl decorators to Python 3.15 by youknowdot · Pull Request #9434 · RustPython/RustPython

Description: Summary Sync three previously missing canonical Python 3.15 free-threading suites: bz2, lzma, and pickle (six test methods). Restore canonical class-decorator lambdas in pyrepl's Unix console tests, removing obsolete RustPython symbol-table workarounds. Preserve the existing Android expected-failure marker. All four migrations use scripts/update_lib migrate from CPython d220409a13b77de7a6c30abe16ea90db01528edc. The three new files are byte-identical; no new skips, assertion changes, or duplicated package initializer. Scope and validation Updater unit tests: 228 passed. Applicable configured hooks and diff checks passed. The three free-threading suites were source-reviewed, not run locally. RustPython passes the package GIL-disabled gate; ordinary threading/provider gates still apply, and hosted CI must establish their runtime result. Stream methods serialize native state; pickle copies owned references under container guards before recursive encoding. This does not establish general CPython concurrency or compression equivalence. Compression tests use up to 10 workers. Pickle uses 11 workers per test and 20,000 total dumps of containers up to roughly 1,000 integers. Existing CI's 600-second test timeout is outer containment, not proof of deadlock freedom. Importing test_bz2.BaseTest reads/compresses a finite list of test source files (432 files / 16.5 MB source upper bound at the base). Its decoder helper may invoke bunzip2, otherwise using bz2.decompress; no internal subprocess timeout is added. Five isolated canonical compile/decorator checks passed on a provenance-verified earlier RustPython binary with unchanged compiler/symbol-table sources. These did not import or execute the full pyrepl test module or exercise a terminal/PTY, and are not a full current-main suite result. The remaining free-threading zlib suite is intentionally not included: #8909 addresses a relevant pending-output drain path. The intern and JSON prerequisites in #9430 and #9431 are now merged. Native LZMA prerequisite found by CI The original head failed the canonical LZMA decompressor test on Linux, macOS and Windows. The same zero-length first result reproduces with ten serial calls, so this failure is not evidence of a locking race. LZMA_GET_CHECK consumes the header without output; the old current-liblzma loop then mistook allocated output capacity for produced bytes and returned prematurely. The focused native follow-up changes only crates/common/src/compression/lzma.rs: use a bounded output slice and actual consumed/produced counts, continue after header notification, drain pending output with empty input, and maintain needs_input from output-quota exhaustion. No backend or locking replacement, and all four posted Lib files remain unchanged. Validation of the follow-up: Scoped cargo check, strict Clippy, configured hooks and a bounded executable build passed. Eight complete existing canonical LZMA methods passed without skips: chunked/empty-input/max-size decoding, input-buffer cases 1–3, unused data and calls after EOF. The exact ten-call serial equivalent now returns ten 128-byte chunks, the full expected payload, EOF true, needs_input false and 828 bytes of unused data. Small zero-quota and empty-input sequences were also checked. These are serial checks, not local execution of the free-threading suites. The pinned CPython 3.15 host lacks _lzma; compatibility evidence is its canonical tests and C implementation, not a successful CPython runtime differential run. Broader native-error recovery state behavior remains outside this fix. This current-liblzma correction intentionally overlaps the progress/capped-output algorithm in pending #8639, whose xz-core port would supersede this loop. The full backend port is not imported here; this is a focused prerequisite for the already-posted canonical tests. Assisted by OpenAI Codex; model version unavailable. Summary by CodeRabbit Bug Fixes Improved LZMA decompression when output is limited, buffered data remains, or input is exhausted, reducing the chance of incorrect stream status or buffer-space errors. Follow-up: retire obsolete LZMA markers The native buffered-output fix also makes the complete canonical CompressorDecompressorTestCase.test_decompressor_chunks_maxsize and FileTestCase.test_issue21872 pass. Their old expected-failure decorators caused unexpected-success failures in the next hosted run; scripts/update_lib migrate now retires exactly those two decorators, preserving all other markers and canonical assertions. Both full methods passed against pinned canonical source (2 tests) and regenerated repository source (2 tests), without skips or expected failures, using the unchanged protected native binary. These are bounded in-memory decompression tests; no broader LZMA or local concurrency suite was run for this follow-up.

Open Graph Description: Summary Sync three previously missing canonical Python 3.15 free-threading suites: bz2, lzma, and pickle (six test methods). Restore canonical class-decorator lambdas in pyrepl's Unix console ...

X Description: Summary Sync three previously missing canonical Python 3.15 free-threading suites: bz2, lzma, and pickle (six test methods). Restore canonical class-decorator lambdas in pyrepl's Unix cons...

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

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:7f3e2731-488c-5752-8706-c3ea57b61dfa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB5E:E9D16:30A9E6B:3DC3BB6:6B01FE56
html-safe-nonce484f39581abcf6daad6365003fc8b9aa0fca79d7f1f163a85db84922b17aea29
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjVFOkU5RDE2OjMwQTlFNkI6M0RDM0JCNjo2QjAxRkU1NiIsInZpc2l0b3JfaWQiOiI0Mzg4MzEzMDM0Njc0Nzk4MTY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac81bafec71dd34fb9e0ef8a1199e63ca35b4e904c9220b1eb4dca61c1d875e94e
hovercard-subject-tagpull_request:5051673549
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/9434/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 Sync three previously missing canonical Python 3.15 free-threading suites: bz2, lzma, and pickle (six test methods). Restore canonical class-decorator lambdas in pyrepl's Unix console ...
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 full-width
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/9434/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9434%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%2F9434%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/9434/files
Reloadhttps://github.com/RustPython/RustPython/pull/9434/files
Reloadhttps://github.com/RustPython/RustPython/pull/9434/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:youknowdot/free-threading-streams-315-20261028https://github.com/youknowdot/RustPython/tree/youknowdot/free-threading-streams-315-20261028
Conversation 6 https://github.com/RustPython/RustPython/pull/9434
Commits 3 https://github.com/RustPython/RustPython/pull/9434/commits
Checks 21 https://github.com/RustPython/RustPython/pull/9434/checks
Files changed https://github.com/RustPython/RustPython/pull/9434/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9434/files
Update Lib stream concurrency tests and pyrepl decorators to Python 3.15 https://github.com/RustPython/RustPython/pull/9434/files#top
Show all changes 3 commits https://github.com/RustPython/RustPython/pull/9434/files
a605d1e Update Lib stream concurrency tests and pyrepl decorators to Python 3.15 codex Oct 28, 2026 https://github.com/RustPython/RustPython/pull/9434/commits/a605d1e250edb40060c8a0dd7df946e44be3b77f
f491ca8 Fix LZMA bounded-output stream progress codex Oct 28, 2026 https://github.com/RustPython/RustPython/pull/9434/commits/f491ca81d714a0307be4f7fa2bb2c1ff014645d2
78b1486 Retire passing bounded LZMA decoding markers codex Oct 28, 2026 https://github.com/RustPython/RustPython/pull/9434/commits/78b1486dce3e495ef99fda527c11e1e43faf020d
Clear filters https://github.com/RustPython/RustPython/pull/9434/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9434/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9434/files
test_bz2.py https://github.com/RustPython/RustPython/pull/9434/files#diff-ccf2682fbe21d456206455a2ca106d6c3c2a178f0364bbcfb3fa3b8bb2e2ea61
test_lzma.py https://github.com/RustPython/RustPython/pull/9434/files#diff-41b13d07e828b1535c61d3e6008f7766bb8e588e3fe335ba78627cbf1256e8ef
test_pickle.py https://github.com/RustPython/RustPython/pull/9434/files#diff-0ba3c585f5d7cb238340d9412562fff74cfd9d43910adb2d9ce74e0e333ddba5
test_lzma.py https://github.com/RustPython/RustPython/pull/9434/files#diff-c0d354f43bb17a1ab769897c04ad70a9d5364b876cde66a0fa6ebf50f7db1fb6
test_unix_console.py https://github.com/RustPython/RustPython/pull/9434/files#diff-bd56b95d174a8939e71984be3453d3a41315d3fdab37649a87f5c79703f9d304
lzma.rs https://github.com/RustPython/RustPython/pull/9434/files#diff-83341d9b777a346e4c3fb79c3c2cb0165ca319852150f8bc3842aa4469b1f102
Lib/test/test_free_threading/test_bz2.pyhttps://github.com/RustPython/RustPython/pull/9434/files#diff-ccf2682fbe21d456206455a2ca106d6c3c2a178f0364bbcfb3fa3b8bb2e2ea61
View file https://github.com/youknowdot/RustPython/blob/78b1486dce3e495ef99fda527c11e1e43faf020d/Lib/test/test_free_threading/test_bz2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9434/{{ revealButtonHref }}
Lib/test/test_free_threading/test_lzma.pyhttps://github.com/RustPython/RustPython/pull/9434/files#diff-41b13d07e828b1535c61d3e6008f7766bb8e588e3fe335ba78627cbf1256e8ef
View file https://github.com/youknowdot/RustPython/blob/78b1486dce3e495ef99fda527c11e1e43faf020d/Lib/test/test_free_threading/test_lzma.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9434/{{ revealButtonHref }}
Lib/test/test_free_threading/test_pickle.pyhttps://github.com/RustPython/RustPython/pull/9434/files#diff-0ba3c585f5d7cb238340d9412562fff74cfd9d43910adb2d9ce74e0e333ddba5
View file https://github.com/youknowdot/RustPython/blob/78b1486dce3e495ef99fda527c11e1e43faf020d/Lib/test/test_free_threading/test_pickle.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9434/{{ revealButtonHref }}
Lib/test/test_lzma.pyhttps://github.com/RustPython/RustPython/pull/9434/files#diff-c0d354f43bb17a1ab769897c04ad70a9d5364b876cde66a0fa6ebf50f7db1fb6
View file https://github.com/youknowdot/RustPython/blob/78b1486dce3e495ef99fda527c11e1e43faf020d/Lib/test/test_lzma.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9434/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9434/files#diff-c0d354f43bb17a1ab769897c04ad70a9d5364b876cde66a0fa6ebf50f7db1fb6
https://github.com/RustPython/RustPython/pull/9434/files#diff-c0d354f43bb17a1ab769897c04ad70a9d5364b876cde66a0fa6ebf50f7db1fb6
https://github.com/RustPython/RustPython/pull/9434/files#diff-c0d354f43bb17a1ab769897c04ad70a9d5364b876cde66a0fa6ebf50f7db1fb6
https://github.com/RustPython/RustPython/pull/9434/files#diff-c0d354f43bb17a1ab769897c04ad70a9d5364b876cde66a0fa6ebf50f7db1fb6
Lib/test/test_pyrepl/test_unix_console.pyhttps://github.com/RustPython/RustPython/pull/9434/files#diff-bd56b95d174a8939e71984be3453d3a41315d3fdab37649a87f5c79703f9d304
View file https://github.com/youknowdot/RustPython/blob/78b1486dce3e495ef99fda527c11e1e43faf020d/Lib/test/test_pyrepl/test_unix_console.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9434/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9434/files#diff-bd56b95d174a8939e71984be3453d3a41315d3fdab37649a87f5c79703f9d304
https://github.com/RustPython/RustPython/pull/9434/files#diff-bd56b95d174a8939e71984be3453d3a41315d3fdab37649a87f5c79703f9d304
https://github.com/RustPython/RustPython/pull/9434/files#diff-bd56b95d174a8939e71984be3453d3a41315d3fdab37649a87f5c79703f9d304
https://github.com/RustPython/RustPython/pull/9434/files#diff-bd56b95d174a8939e71984be3453d3a41315d3fdab37649a87f5c79703f9d304
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9434/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9434/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.