[PR #6688] [MERGED] [client] Update gopsutil to v4 #29801

Closed
opened 2026-08-05 08:09:01 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/6688
Author: @mlsmaycon
Created: 7/7/2026
Status: Merged
Merged: 7/8/2026
Merged by: @lixmal

Base: 0.74.xHead: upgrade-process-version


📝 Commits (2)

  • f81cfa8 [client] Update gopsutil to v4
  • a6c8f75 [client] Bump gopsutil library to v4

📊 Changes

3 files changed (+3 additions, -3 deletions)

View changed files

📝 client/system/process.go (+1 -1)
📝 client/system/process_test.go (+1 -1)
📝 go.mod (+1 -1)

📄 Description

Describe your changes

gopsutil v3 can be much slower to retrieve processes on macOS.

--- scan A: gopsutil v3 ---
v3 run 1: 626 processes, 421 paths resolved, target running=true, took 5.673s 

--- scan B: gopsutil v4  ---
v4 run 1: 623 processes, 610 paths resolved, target running=true, took 6ms 

Stack

  • 0.74.x - ⚠️ No PR associated with branch

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • This change does not modify the public API, gRPC protocols, functionality behavior, CLI / service flags, or introduce a new feature — OR I have discussed it with the NetBird team beforehand (link the issue / Slack thread in the description). See CONTRIBUTING.md.

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Chores
    • Updated a system process library to a newer major version for better dependency consistency.
    • Aligned test and runtime references with the same updated library version.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/6688 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 7/7/2026 **Status:** ✅ Merged **Merged:** 7/8/2026 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `0.74.x` ← **Head:** `upgrade-process-version` --- ### 📝 Commits (2) - [`f81cfa8`](https://github.com/netbirdio/netbird/commit/f81cfa8a0076216ab1e507d5702fa4bdd2d050f4) [client] Update gopsutil to v4 - [`a6c8f75`](https://github.com/netbirdio/netbird/commit/a6c8f7501042d7cc46902a721c63bb49ac65fa63) [client] Bump gopsutil library to v4 ### 📊 Changes **3 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `client/system/process.go` (+1 -1) 📝 `client/system/process_test.go` (+1 -1) 📝 `go.mod` (+1 -1) </details> ### 📄 Description ## Describe your changes gopsutil v3 can be much slower to retrieve processes on macOS. ```shell --- scan A: gopsutil v3 --- v3 run 1: 626 processes, 421 paths resolved, target running=true, took 5.673s --- scan B: gopsutil v4 --- v4 run 1: 623 processes, 610 paths resolved, target running=true, took 6ms ``` ## Issue ticket number and link ## Stack - `0.74.x` - :warning: No PR associated with branch <!-- branch-stack --> - \#6688 :point\_left: ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] This change does **not** modify the public API, gRPC protocols, functionality behavior, CLI / service flags, or introduce a new feature — **OR** I have discussed it with the NetBird team beforehand (link the issue / Slack thread in the description). See [CONTRIBUTING.md](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTING.md#discuss-changes-with-the-netbird-team-first). > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from <https://github.com/netbirdio/docs> here: <https://github.com/netbirdio/docs/pull/>\_\_ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated a system process library to a newer major version for better dependency consistency. * Aligned test and runtime references with the same updated library version. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 08:09:01 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#29801