Skip to content

Bump psutil from 5.9.8 to 6.1.1 #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 23, 2024

Bumps psutil from 5.9.8 to 6.1.1.

Changelog

Sourced from psutil's changelog.

6.1.1

2024-12-19

Enhancements

  • 2471_: use Vulture CLI tool to detect dead code.

Bug fixes

  • 2418_, [Linux]: fix race condition in case /proc/PID/stat does not exist, but /proc/PID does, resulting in FileNotFoundError.
  • 2470_, [Linux]: users()_ may return "localhost" instead of the actual IP address of the user logged in.

6.1.0

2024-10-17

Enhancements

  • 2366_, [Windows]: drastically speedup process_iter(). We now determine process unique identity by using process "fast" create time method. This will considerably speedup those apps which use process_iter() only once, e.g. to look for a process with a certain name.
  • 2446_: use pytest instead of unittest.
  • 2448_: add make install-sysdeps target to install the necessary system dependencies (python-dev, gcc, etc.) on all supported UNIX flavors.
  • 2449_: add make install-pydeps-test and make install-pydeps-dev targets. They can be used to install dependencies meant for running tests and for local development. They can also be installed via pip install .[test] and pip install .[dev].
  • 2456_: allow to run tests via python3 -m psutil.tests even if pytest module is not installed. This is useful for production environments that don't have pytest installed, but still want to be able to test psutil installation.

Bug fixes

  • 2427_: psutil (segfault) on import in the free-threaded (no GIL) version of Python 3.13. (patch by Sam Gross)
  • 2455_, [Linux]: IndexError may occur when reading /proc/pid/stat and field 40 (blkio_ticks) is missing.
  • 2457_, [AIX]: significantly improve the speed of Process.open_files()_ for some edge cases.
  • 2460_, [OpenBSD]: Process.num_fds()_ and Process.open_files()_ may fail with NoSuchProcess_ for PID 0. Instead, we now return "null" values (0 and [] respectively).

... (truncated)

Commits
  • 58552f6 Merge branch 'master' of github.com:giampaolo/psutil
  • 4ba6ad0 ruff: enable PLR5501 (Use elif instead of else then if, to reduce inden...
  • 1a63407 use a set literal when testing for membership
  • 8162905 disable flafy test + pre-release
  • 1f3458b try to fix some flaky tests 2
  • c0e1eb1 try to fix some flaky tests 2
  • 45934bb try to fix some flaky tests
  • 560c524 chore: bump cibuildwheel to 2.22.0, move to macos-13 (#2479)
  • b5ea67e fix winmake.py test-parallel
  • 13a336b fix #2418 / Linux: fix race condition
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Chores:

  • Bump psutil from 5.9.8 to 6.1.1.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 23, 2024
Copy link

sourcery-ai bot commented Dec 23, 2024

Reviewer's Guide by Sourcery

This pull request bumps the psutil dependency from version 5.9.8 to 6.1.1. This includes several enhancements and bug fixes, notably a significant speed improvement in process iteration on Windows.

State diagram for Linux process status handling improvements

stateDiagram-v2
    [*] --> CheckProcPID: Check /proc/PID
    CheckProcPID --> CheckProcPIDStat: PID exists
    CheckProcPIDStat --> ProcessStats: Stat exists
    CheckProcPIDStat --> HandleRace: Stat missing
    HandleRace --> [*]: Return appropriate error
    ProcessStats --> [*]: Return process info

    note right of HandleRace
        New race condition fix
        in version 6.1.1
    end note
Loading

File-Level Changes

Change Details Files
Upgrade psutil to 6.1.1
  • Updated the psutil dependency version in pyproject.toml
  • Regenerated poetry.lock to reflect the updated dependency
pyproject.toml
poetry.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

@dependabot dependabot bot force-pushed the dependabot/pip/psutil-6.1.1 branch from a148709 to 9d12b5d Compare December 29, 2024 04:59
Bumps [psutil](https://github.com/giampaolo/psutil) from 5.9.8 to 6.1.1.
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](giampaolo/psutil@release-5.9.8...release-6.1.1)

---
updated-dependencies:
- dependency-name: psutil
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/psutil-6.1.1 branch from 9d12b5d to 599870c Compare December 29, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants