Skip to content

Remove one-off partial update_lib migration modes - #9394

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:split/python315-updater-cleanup
Oct 26, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:split/python315-updater-cleanup

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Summary

Remove the partial-file updater framework added during the Python 3.15 upgrade. Updating complete canonical files remains the normal workflow; the recently closed #9363 and #9388 should not be replaced by more single-method import machinery.

  • Remove copy-test and its tests.
  • Remove migrate --assignments, --functions, --exports, their input-hash options and their dedicated tests.
  • Retire the separate --canonical-removals / --dry-run command and its tests after its one-off historical-file migration use.
  • Preserve whole-file/directory migration, mapped package migration, marker and doctest handling, explicit customization blocks, dependency resolution, and Compare update_lib contents and benchmark CPython parsing consistently #9393's file-content comparison fixes.

Six updater files change, with 1,960 lines removed and no replacement framework. No Lib/, Rust, workflow or fixture files change. Existing canonical definitions already imported by these tools remain untouched.

Compatibility

The removed CLI modes are no longer accepted. Default directory migration still preserves destination-only files: this cleanup does not make it automatically delete obsolete files. Future obsolete-file cleanup requires explicit review, not substitution with a destructive directory-copy command.

This also does not remove --legacy-map: it supports whole-package migration while relocating existing marker ownership, unlike single-definition copying.

Validation

  • All 103 retained migration, patch-spec and copy-library synthetic tooling tests passed in an isolated, bounded host-Python harness, with no skips.
  • The complete source manifest remained unchanged during the run; temporary files and process group were cleaned.
  • Independent source review confirmed retained migration functions and marker/package test classes were unchanged.
  • Normal commit hooks passed. The committed tree is the exact tested tree.

No actual migrated Lib source, RustPython runtime, GC or C API fixture was executed. Hosted CI for the new head is pending.

AI assistance: OpenAI Codex (model version unavailable).

Keep whole-file and package migration with existing marker, doctest and explicit customization preservation. Retire copy-test and selected assignment/function/export import machinery rather than maintaining extra partial-file update paths.

Remove the separate historical-file deletion command after its migration use. This does not delete any Lib files or make whole-directory migration prune destination-only files; future obsolete-file removal still needs explicit review.

Preserve dependency handling and contributor content-comparison fixes. All 103 retained synthetic migration, patch and copy-library tooling tests pass under an isolated bounded host Python harness. No RustPython runtime or migrated Lib source was executed.

Assisted-by: OpenAI Codex:model version unavailable
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@youknowone
youknowone marked this pull request as ready for review October 26, 2026 12:07
@youknowone
youknowone merged commit b811715 into RustPython:main Oct 26, 2026
7 of 8 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-26T12:08:35.378251Z
We couldn’t complete this review. Comment @codex review to try again.
3d9802b 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.

2 participants