Skip to content

Add gh-aw agentic workflow for upgrading Python libraries#7117

Merged
youknowone merged 2 commits intoRustPython:mainfrom
youknowone:github-wf
Feb 14, 2026
Merged

Add gh-aw agentic workflow for upgrading Python libraries#7117
youknowone merged 2 commits intoRustPython:mainfrom
youknowone:github-wf

Conversation

@youknowone
Copy link
Member

@youknowone youknowone commented Feb 14, 2026

Summary by CodeRabbit

  • Chores
    • Implemented enhanced workflow automation framework for improved Python library upgrade processes with better orchestration.
    • Added dependency lock management to ensure GitHub Actions version consistency and reproducibility across CI/CD pipelines.
    • Updated repository metadata configuration for improved workflow classification and merge behavior.
    • Applied minor code formatting improvements to enhance code maintainability.

- upgrade-pylib.md: Claude-based workflow triggered via workflow_dispatch
- Runs `scripts/update_lib quick <name>` to sync a library from CPython
- Creates a PR with the result, referencing issue RustPython#6839
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 14, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Introduces a new automated Python standard library upgrade workflow with multi-job orchestration (activation, agent, conclusion, detection, safe outputs), adds GitHub Actions lock configuration and updates .gitattributes for workflow file handling. Includes minor formatting adjustments in the time module.

Changes

Cohort / File(s) Summary
Repository Configuration
.gitattributes
Added linguist-generated attribute and merge strategy for .github/workflows/*.lock.yml files.
GitHub Actions Infrastructure
.github/aw/actions-lock.json
New lock file containing versioned dependencies for actions/github-script@v8 and github/gh-aw/actions/[email protected] with SHA references.
Upgrade Workflow Automation
.github/workflows/upgrade-pylib.lock.yml, .github/workflows/upgrade-pylib.md
New workflow pipeline for automating Python standard library upgrades with multi-stage orchestration (activation, agent execution, threat detection, safe outputs processing) and supporting documentation; includes Claude-based agent workflow, MCP server management, artifact handling, and PR creation with validation schemas.
Code Formatting
crates/vm/src/stdlib/time.rs
Minor formatting adjustment to tm_from_struct_time parameter layout and inline refactor of error return statement in pyobj_to_time_t; no behavioral changes.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related issues

Possibly related PRs

Suggested labels

skip:ci

Poem

🐰 A workflow takes shape, lock files in place,
While Python libs upgrade at a steady pace,
Claude and Safe Outputs dance through the night,
PR creation flows—automation done right! 🚀

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@github-actions
Copy link
Contributor

Code has been automatically formatted

The code in this PR has been formatted using:

  • cargo fmt --all
    Please pull the latest changes before pushing again:
git pull origin github-wf

@youknowone youknowone marked this pull request as ready for review February 14, 2026 02:25
@youknowone youknowone merged commit f960a0f into RustPython:main Feb 14, 2026
12 of 13 checks passed
@youknowone youknowone deleted the github-wf branch February 14, 2026 02:26
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.

1 participant