Skip to content

Use CPython 3.15.2 for future library upgrades - #9851

Merged
youknowone merged 3 commits into
RustPython:mainfrom
youknowdot:chore/lib-baseline-3152
Nov 15, 2026
Merged

youknowone merged 3 commits into
RustPython:mainfrom
youknowdot:chore/lib-baseline-3152

Conversation

@youknowdot

@youknowdot youknowdot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Use CPython v3.15.2 as the library source baseline for automated upgrades, library dependency checks, generated library status, and developer source setup. Keep .python-version at 3.15.0: it selects the existing runtime comparison interpreter, not the Lib synchronization source. Opcode metadata also keeps its separate existing pin.

Route library upgrades and generated status to #9852 (Python 3.15), retaining #6839 as the previous 3.14 reference. Changes to the status workflow regenerate its issue body, including Copilot guidance.

No bulk Lib/ replacement, interpreter version change, C-API update or documentation regeneration is included. The explicit source pins in the two library workflows, agentic workflow and setup script are checked together as 3.15.2.

The generated workflow delta uses gh-aw v0.43.22 and preserves independently upgraded action pins.

Validation

  • Official CPython v3.15.2 peeled commit: 5e58eaad7c58df58dfa8ea549c87996e01dd1077.
  • gh-aw old/new compilation: no errors/warnings; generated delta limited to changed environment and frontmatter hash.
  • update_lib unit tests: 235 passed.
  • scripts/update_lib todo against official 3.15.2 source: completed.
  • Setup script syntax and source guard: matching source accepted, mismatched tag rejected.
  • zizmor: no new findings. Existing findings remain: lib-deps-check pull_request_target (high, also present before change), status workflow date template expansion (informational). Generated upgrade workflow has none.
  • Normal commit hooks and git diff --check passed.

The previous revision unintentionally changed the runtime comparison interpreter and exposed four CPython snippet differences (sys patchlevel assertions, IO deletion error text, socket MSG_TRUNC, warning-loader lookup order). Runtime-reference migration is separate from this Lib-source update; .python-version is restored, not the new Lib baseline.

No Rust/C-API build or runtime benchmark was run locally for this configuration-only change. CI completion remains pending.

AI-assisted with OpenAI Codex.

Regenerate the workflow frontmatter hash while preserving independently updated action pins.

Assisted-by: OpenAI Codex:GPT-6.1
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

Refresh the generated library status when its source version changes.

Assisted-by: OpenAI Codex:GPT-6.1
…5 updates

Keep the existing runtime reference while synchronizing Lib from 3.15.2. Route generated status and upgrade PRs to issue RustPython#9852.

Assisted-by: OpenAI Codex:GPT-6.1
@youknowone
youknowone marked this pull request as ready for review November 15, 2026 09:51
@youknowone
youknowone merged commit 9d209ae into RustPython:main Nov 15, 2026
19 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T09:55:02.903313Z 3ad9018 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.

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.

3 participants