Skip to content

Conversation

@aaronsteers
Copy link
Contributor

@aaronsteers aaronsteers commented Nov 12, 2025

chore: Remove unused psutil dependency

Summary

Removed the psutil dependency (version 6.1.0) from the Python CDK as it was marked as unused and listed in the deptry ignore list for unused dependencies. After removal, confirmed that psutil does not remain in the lock file as a transitive dependency of any other package.

Changes:

  • Removed psutil = "6.1.0" from [tool.poetry.dependencies] in pyproject.toml
  • Removed "psutil" from the deptry DEP002 ignore list
  • Updated poetry.lock accordingly

Review & Testing Checklist for Human

This is a yellow risk change (dependency removal). Please verify:

  • Search the codebase for any psutil imports or usage - Run git grep -i psutil across the repository to ensure no code is importing or using psutil
  • Check if any connectors depend on psutil - Verify that no downstream connectors were relying on psutil as a transitive dependency from the CDK
  • Run the full test suite - I only ran pytest-fast which passed (3809 tests), but the full test suite should be run to catch any edge cases

Test Plan

  1. Run full test suite: poetry run poe pytest
  2. Search for psutil usage: git grep -i psutil (should return no results in source code)
  3. Monitor CI for any connector test failures after merge

Notes

  • The dependency was already marked with # TODO: Remove if unused in pyproject.toml
  • psutil was listed in the deptry DEP002 ignore list as potentially unused
  • All fast tests passed (3809 passed, 2 skipped)
  • psutil is completely removed from poetry.lock (not a transitive dependency)
  • Original context: User encountered an issue with TestZeus Hercules and psutil compatibility, decided to remove psutil entirely rather than bump the version

Requested by: AJ Steers (@aaronsteers)
Devin session: https://app.devin.ai/sessions/44e0277811b64f30b178f8edac6fb7d0

Summary by CodeRabbit

  • Chores
    • Removed unused package dependency to optimize build configuration.

Copilot AI review requested due to automatic review settings November 12, 2025 17:16
@devin-ai-integration
Copy link
Contributor

Original prompt from AJ Steers
Received message in Slack channel #ask-devin-ai:

@Devin - Are we behind on the psutils version in python cdk? Can you investigate and bump if so? Ran into an issue today trying to install allongside TestZues Hercules
Thread URL: https://airbytehq-team.slack.com/archives/C08BHPUMEPJ/p1762964907895669

@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions github-actions bot added the chore label Nov 12, 2025
@github-actions
Copy link

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

Testing This CDK Version

You can test this version of the CDK using the following:

# Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@devin/1762965638-remove-psutil#egg=airbyte-python-cdk[dev]' --help

# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch devin/1762965638-remove-psutil

Helpful Resources

PR Slash Commands

Airbyte Maintainers can execute the following slash commands on your PR:

  • /autofix - Fixes most formatting and linting issues
  • /poetry-lock - Updates poetry.lock file
  • /test - Runs connector tests with the updated CDK
  • /prerelease - Triggers a prerelease publish with default arguments
  • /poe build - Regenerate git-committed build artifacts, such as the pydantic models which are generated from the manifest JSON schema in YAML.
  • /poe <command> - Runs any poe command in the CDK environment

📝 Edit this welcome message.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the psutil dependency from the Python CDK as it was identified as unused and already marked for potential removal. The change cleans up the dependency list by removing both the dependency declaration and its corresponding ignore list entry.

Key changes:

  • Removed psutil version 6.1.0 from project dependencies
  • Cleaned up the deptry ignore list by removing the psutil entry
  • Confirmed psutil is not a transitive dependency in the updated lock file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 12, 2025

📝 Walkthrough

Walkthrough

The pull request removes the psutil dependency from the project's Python dependencies and its corresponding entry in the dependency-checking tool's ignore rules within pyproject.toml.

Changes

Cohort / File(s) Summary
Dependency Removal
pyproject.toml
Removed psutil from [tool.poetry.dependencies] and from the DEP002 unused-dependency ignore list in [tool.deptry.per_rule_ignores]

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Verify that psutil is not imported or used anywhere else in the codebase
  • Confirm the ignore rule removal aligns with the dependency removal

Suggested reviewers

  • bnchrch

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: Remove unused psutil dependency' accurately and concisely describes the main change in the pull request—removing the psutil dependency from pyproject.toml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch devin/1762965638-remove-psutil

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f0443aa and 99e5478.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml (0 hunks)
💤 Files with no reviewable changes (1)
  • pyproject.toml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
  • GitHub Check: Check: source-pokeapi
  • GitHub Check: Check: source-intercom
  • GitHub Check: Check: destination-motherduck
  • GitHub Check: Check: source-hardcoded-records
  • GitHub Check: Check: source-shopify
  • GitHub Check: Pytest (Fast)
  • GitHub Check: Pytest (All, Python 3.12, Ubuntu)
  • GitHub Check: Pytest (All, Python 3.11, Ubuntu)
  • GitHub Check: Pytest (All, Python 3.13, Ubuntu)
  • GitHub Check: Pytest (All, Python 3.10, Ubuntu)
  • GitHub Check: Manifest Server Docker Image Build
  • GitHub Check: SDM Docker Image Build

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

PyTest Results (Fast)

3 811 tests  ±0   3 799 ✅  - 1   6m 31s ⏱️ -41s
    1 suites ±0      12 💤 +1 
    1 files   ±0       0 ❌ ±0 

Results for commit 99e5478. ± Comparison against base commit f0443aa.

This pull request skips 1 test.
unit_tests.sources.declarative.test_concurrent_declarative_source ‑ test_read_with_concurrent_and_synchronous_streams

@github-actions
Copy link

PyTest Results (Full)

3 814 tests  ±0   3 802 ✅ ±0   11m 11s ⏱️ +7s
    1 suites ±0      12 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 99e5478. ± Comparison against base commit f0443aa.

@aaronsteers aaronsteers merged commit 18a0218 into main Nov 12, 2025
30 of 31 checks passed
@aaronsteers aaronsteers deleted the devin/1762965638-remove-psutil branch November 12, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants