Skip to content

Extract independent Python 3.15 library updates from #8954 - #9826

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:upgrade/lib-mega-extract-20261113
Nov 13, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:upgrade/lib-mega-extract-20261113

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Summary

Extract the independently testable, non-C-API library updates from #8954 onto current main (e68658a), without stacking on #9825 or other open PRs.

All four files were regenerated with scripts/update_lib migrate from the official CPython v3.15.0 source and are byte-identical to that source:

  • Restore the low-level _interpreters and _interpchannels test modules. Their runtime modules are already implemented and registered on main.
  • Add asyncio coverage for eager tasks enumerated from another thread.
  • Import the iOS Objective-C loader fallback when find_library() cannot query the shared cache, preserving the canonical ImportError on load failure.

No runtime implementation, C API changes, test assertions, or new RustPython skip/expected-failure markers are introduced. The syntax/f-string updates and C-API frame marker remain outside this extraction.

Validation

  • -m test test__interpreters test__interpchannels test_asyncio.test_free_threading: 166 tests, 8 skips, success.
  • -m test test_platform -m '*test_ios_ver': 1 test, success.
  • Temporary loader-only smoke check: discovered path and fallback path, each with successful and failed LoadLibrary, all 4 paths pass.
  • All commit hooks and git diff --check pass. Independent read-only review found no extraction blocker.

These focused tests used the existing RustPython dba7a05-based binary (Ruff 0.17.5 recovery build) with this checkout's Lib, not a newly built exact-head interpreter. Shared disk pressure prevents another build and required workspace/C-API/Clippy aggregate checks locally; hosted CI is pending, so this remains draft. Actual iOS execution is not verified by Linux mocks. A full test_platform run did not complete within its 60-second local limit; the affected getter was checked separately.

AI assistance

Implementation, source comparison, tests, and review were performed with OpenAI Codex assistance.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 4

  • Lib/_ios_support.py is excluded by !Lib/**
  • Lib/test/test__interpchannels.py is excluded by !Lib/**
  • Lib/test/test__interpreters.py is excluded by !Lib/**
  • Lib/test/test_asyncio/test_free_threading.py is excluded by !Lib/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

📦 Library Dependencies

The following Lib/ modules were modified. Here are their dependencies:

[x] lib: cpython/Lib/asyncio
[ ] test: cpython/Lib/test/test_asyncio (TODO: 2)

dependencies:

  • asyncio

dependent tests: (9 tests)

  • asyncio: test_asyncio test_concurrent_futures test_external_inspection test_inspect test_logging test_os test_pdb test_unittest
    • pdb: test_remote_pdb

[x] lib: cpython/Lib/concurrent
[x] test: cpython/Lib/test/test_concurrent_futures (TODO: 1)
[x] test: cpython/Lib/test/test_interpreters
[x] test: cpython/Lib/test/test__interpreters.py
[x] test: cpython/Lib/test/test__interpchannels.py
[x] test: cpython/Lib/test/test_crossinterp.py

dependencies:

  • concurrent

dependent tests: (22 tests)

  • concurrent: test__interpchannels test_asyncio test_atexit test_compileall test_concurrent_futures test_context test_external_inspection test_free_threading test_genericalias test_inspect test_interpreters test_struct test_sys test_threading test_types test_wmi
    • asyncio: test_asyncio test_logging test_os test_pdb test_unittest
      • pdb: test_remote_pdb

[x] lib: cpython/Lib/_ios_support.py

dependencies:

  • _ios_support

dependent tests: (33 tests)
- [ ] platform: test__locale test__osx_support test_android test_asyncio test_baseexception test_builtin test_calendar test_cmath test_ctypes test_fcntl test_math test_mimetypes test_os test_platform test_regrtest test_shutil test_socket test_ssl test_startfile test_strptime test_sysconfig test_time test_tkinter test_winreg test_wsgiref
- [x] idlelib: test_idle
- [x] profiling.sampling.gecko_collector: test_profiling
- [x] profiling.sampling.heatmap_collector: test_profiling
- [ ] pydoc: test_enum test_pydoc
- [x] uuid: test_free_threading test_os
- [x] webbrowser: test_webbrowser

Legend:

  • [+] path exists in CPython
  • [x] up-to-date, [ ] outdated

@youknowone
youknowone marked this pull request as ready for review November 13, 2026 06:40
@youknowone
youknowone enabled auto-merge (squash) November 13, 2026 06:40
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T06:40:12.712619Z
We couldn’t complete this review. Comment @codex review to try again.
866c0f3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sync four files via scripts/update_lib migrate from CPython v3.15.0. Restore low-level interpreter/channel tests, asyncio eager-task coverage, and the iOS Objective-C loader fallback.

Assisted-by: Codex:version-unavailable
auto-merge was automatically disabled November 13, 2026 06:59

Head branch was pushed to by a user without write access

@youknowdot
youknowdot force-pushed the upgrade/lib-mega-extract-20261113 branch from 866c0f3 to 33bac43 Compare November 13, 2026 06:59
@codspeed

codspeed Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 62 untouched benchmarks
⏩ 4 skipped benchmarks1


Comparing youknowdot:upgrade/lib-mega-extract-20261113 (33bac43) with main (cc6fb57)

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@youknowone
youknowone merged commit 354f673 into RustPython:main Nov 13, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants