Skip to content

build(deps): bump github.com/NVIDIA/go-nvml from 0.13.0-1.0.20260212130905-92cf8c963449 to 0.13.3-0 - #1993

Merged
hami-robot[bot] merged 2 commits into
masterfrom
dependabot/go_modules/github.com/NVIDIA/go-nvml-0.13.3-0
Jul 2, 2026
Merged

build(deps): bump github.com/NVIDIA/go-nvml from 0.13.0-1.0.20260212130905-92cf8c963449 to 0.13.3-0#1993
hami-robot[bot] merged 2 commits into
masterfrom
dependabot/go_modules/github.com/NVIDIA/go-nvml-0.13.3-0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 30, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/NVIDIA/go-nvml from 0.13.0-1.0.20260212130905-92cf8c963449 to 0.13.3-0.

Release notes

Sourced from github.com/NVIDIA/go-nvml's releases.

v0.13.3-0

What's Changed

Full Changelog: NVIDIA/go-nvml@v0.13.2-0...v0.13.3-0

v0.13.2-0

What's Changed

Full Changelog: NVIDIA/go-nvml@v0.13.1-0...v0.13.2-0

v0.13.1-0

What's Changed

Full Changelog: NVIDIA/go-nvml@v0.13.0-1...v0.13.1-0

v12.6.0-0

Full Changelog: NVIDIA/go-nvml@v0.12.5-0...v0.12.6-0

Commits

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 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 CodeRabbit

  • Bug Fixes
    • Improved NUMA node determination by correctly interpreting and normalizing PCI bus IDs when they are provided in signed-byte form.
  • Tests
    • Updated unit tests to validate the revised bus ID string conversion logic, including a nil/empty input case.
  • Chores
    • Updated the bundled NVML-related library dependency to a newer version.

Bumps [github.com/NVIDIA/go-nvml](https://github.com/NVIDIA/go-nvml) from 0.13.0-1.0.20260212130905-92cf8c963449 to 0.13.3-0.
- [Release notes](https://github.com/NVIDIA/go-nvml/releases)
- [Commits](https://github.com/NVIDIA/go-nvml/commits/v0.13.3-0)

---
updated-dependencies:
- dependency-name: github.com/NVIDIA/go-nvml
  dependency-version: 0.13.3-0
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR updates go.mod to bump github.com/NVIDIA/go-nvml and remove several indirect dependencies. It also changes NVML bus ID string handling from unsigned to signed byte slices, with matching test updates.

Changes

NVML bus ID conversion

Layer / File(s) Summary
Signed-byte string helper
pkg/device-plugin/nvidiadevice/nvinternal/rm/helper.go, pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go, pkg/device-plugin/nvidiadevice/nvinternal/plugin/register_test.go
int8Slice replaces the previous unsigned-byte helper, and the string-conversion test now covers signed-byte inputs and nil slices.
NUMA node bus ID conversion
pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go, pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices.go, pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices_test.go
GetNumaNode now builds busID from int8Slice(info.BusId[:]), and the NUMA test fixture uses a [32]int8 BusId.

Dependency Update

Layer / File(s) Summary
go.mod dependency changes
go.mod
github.com/NVIDIA/go-nvml is bumped to v0.13.3-0, and indirect requirements are removed across several require sections.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

A bunny nibbled bytes all neat,
Swapped signed slices for a treat,
NVML paths now line up right,
Bus IDs sparkle, trimmed and bright,
And deps hop forward in one leap 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main dependency bump in this PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/go_modules/github.com/NVIDIA/go-nvml-0.13.3-0

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

github.com/NVIDIA/go-nvml v0.13.3-0 changed nvml.PciInfo.BusId
from [32]uint8 to [32]int8. Update uint8Slice helper/test to int8Slice
and adjust the conversion in GetNumaNode. Also run go mod tidy.

Signed-off-by: Shouren Yang <yangshouren@gmail.com>
@Shouren
Shouren force-pushed the dependabot/go_modules/github.com/NVIDIA/go-nvml-0.13.3-0 branch from f43c5e0 to 5bf3140 Compare July 2, 2026 08:13

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go (2)

68-87: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicate GetNumaNode implementation.

This package-level GetNumaNode is functionally identical to nvmlDevice.GetNumaNode() in pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices.go (same busID parsing, sysfs read, and NUMA node parsing logic). Worth consolidating to one implementation to reduce maintenance burden, especially since both now depend on the int8Slice conversion introduced by this dependency bump.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go` around lines 68
- 87, The package-level GetNumaNode implementation duplicates the same PCI bus
ID parsing, sysfs read, and NUMA node parsing logic already present in
nvmlDevice.GetNumaNode, so consolidate the behavior into one shared
implementation. Update GetNumaNode in register.go to delegate to the existing
method or extract the common logic into a single helper used by both call sites,
keeping the current error handling and return semantics unchanged.

52-64: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicate int8Slice/String() implementation.

This exact type and method are also defined in pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices.go and pkg/device-plugin/nvidiadevice/nvinternal/rm/helper.go. Consider consolidating into a single shared helper (e.g. in an internal utility package) to avoid triplicated logic drifting out of sync across the three files.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go` around lines 52
- 64, The int8Slice and String implementation is duplicated across register.go,
nvml_devices.go, and helper.go, so consolidate this logic into one shared helper
and update the existing callers to use it. Keep the unique symbols int8Slice and
String() as the entry points, but move the actual nil-terminated int8-to-string
conversion into a single internal utility to prevent the three copies from
drifting out of sync.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go`:
- Around line 68-87: The package-level GetNumaNode implementation duplicates the
same PCI bus ID parsing, sysfs read, and NUMA node parsing logic already present
in nvmlDevice.GetNumaNode, so consolidate the behavior into one shared
implementation. Update GetNumaNode in register.go to delegate to the existing
method or extract the common logic into a single helper used by both call sites,
keeping the current error handling and return semantics unchanged.
- Around line 52-64: The int8Slice and String implementation is duplicated
across register.go, nvml_devices.go, and helper.go, so consolidate this logic
into one shared helper and update the existing callers to use it. Keep the
unique symbols int8Slice and String() as the entry points, but move the actual
nil-terminated int8-to-string conversion into a single internal utility to
prevent the three copies from drifting out of sync.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b3d478e3-abb4-4f73-8db1-e556fa8a71c9

📥 Commits

Reviewing files that changed from the base of the PR and between f43c5e0 and 5bf3140.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (6)
  • go.mod
  • pkg/device-plugin/nvidiadevice/nvinternal/plugin/register.go
  • pkg/device-plugin/nvidiadevice/nvinternal/plugin/register_test.go
  • pkg/device-plugin/nvidiadevice/nvinternal/rm/helper.go
  • pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices.go
  • pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices_test.go
💤 Files with no reviewable changes (1)
  • go.mod
✅ Files skipped from review due to trivial changes (1)
  • pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices_test.go
🚧 Files skipped from review as they are similar to previous changes (3)
  • pkg/device-plugin/nvidiadevice/nvinternal/rm/helper.go
  • pkg/device-plugin/nvidiadevice/nvinternal/rm/nvml_devices.go
  • pkg/device-plugin/nvidiadevice/nvinternal/plugin/register_test.go

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...-plugin/nvidiadevice/nvinternal/plugin/register.go 66.66% 1 Missing ⚠️
Flag Coverage Δ
unittests 59.05% <83.33%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...device-plugin/nvidiadevice/nvinternal/rm/helper.go 100.00% <100.00%> (ø)
...-plugin/nvidiadevice/nvinternal/rm/nvml_devices.go 21.59% <100.00%> (ø)
...-plugin/nvidiadevice/nvinternal/plugin/register.go 14.37% <66.66%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Shouren Shouren left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@hami-robot hami-robot Bot added the lgtm label Jul 2, 2026
@hami-robot

hami-robot Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dependabot[bot], Shouren

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot hami-robot Bot added the approved label Jul 2, 2026
@hami-robot
hami-robot Bot merged commit 1d1b3eb into master Jul 2, 2026
15 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/NVIDIA/go-nvml-0.13.3-0 branch July 2, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dco-signoff: yes dependencies Pull requests that update a dependency file go Pull requests that update Go code lgtm size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant