Repository navigation
Update asyncio task lifecycle and frame handling to Python 3.15.2 - #9910
youknowone merged 2 commits into
Conversation
…n 3.15.2 Use update_lib while preserving the existing gather and shield adaptations and native thread-state test scope. Assisted-by: OpenAI Codex:GPT-6.1
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [x] lib: cpython/Lib/asyncio dependencies:
dependent tests: (9 tests)
Legend:
|
Preserve existing native thread-state scope while migrating the related task lifecycle tests. Both production modules now match CPython 3.15.2 exactly. Assisted-by: OpenAI Codex:GPT-6.1
Merging this PR will not alter performance
Comparing Footnotes
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Complete the adjacent Python-only asyncio task lifecycle and frame-formatting updates from CPython 3.15.2 in one batch:
as_completediteration accounting when a pending wait is cancelled.Both production modules (
tasks.py,tools.py) are byte-identical to canonical CPython 3.15.2. Tests were migrated withscripts/update_lib; no bespoke tests or Rust changes. The earlier local gather/shield mechanisms are superseded by the canonical implementations after their related canonical regressions passed.Verification
GenericTaskTests.test_asyncio_module_compiled.0175f1a) executed the updated on-disk Lib; this is not a fresh main native build.['a']on base Lib; updated Lib and canonical CPython return['a', 'b'].Explicitly deferred / not verified
test_task_created_during_thread_state_clearwas tried separately and failed: its finalizer had not run by thread join (task is None). It is not imported in this Python-only batch; an explicit migration preservation block retains the existing native test scope. No new skip/xfail hides it. The initial full-canonical trial ran 1,183 tests with this sole failure; the final selected scope above passes.AI-assisted by OpenAI Codex (GPT-6.1).