Skip to content

build(deps): bump prometheus/procfs to v0.21.1 - #3715

Merged
SuperQ merged 1 commit into
prometheus:masterfrom
sradco:bump-procfs
Jul 6, 2026
Merged

build(deps): bump prometheus/procfs to v0.21.1#3715
SuperQ merged 1 commit into
prometheus:masterfrom
sradco:bump-procfs

Conversation

@sradco

@sradco sradco commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Bump prometheus/procfs to v0.21.1, along with transitive
dependency bumps for golang.org/x/sys and golang.org/x/sync.

Breaking changes handled

  • NVMe namespace regex: The namespace directory pattern changed
    from nvme\d+c\d+n to nvme\d+n. Updated the test fixture
    (nvme0c0n0nvme0n1) and e2e expected output (nsid="0"
    nsid="1") to match.

  • Mdraid.Disks type change: Changed from uint64 to *uint64
    (nil when unavailable, e.g. container/imsm/ddf arrays). Added a
    nil guard in mdadm_linux.go to prevent a nil pointer panic.

Fixes: #3691

Test plan

  • TestMdadmStats passes
  • End-to-end tests pass (make test-e2e)

Made with Cursor

Update procfs to v0.21.1, along with transitive
dependency bumps for golang.org/x/sys and
golang.org/x/sync.

This version changes the NVMe namespace directory
regex from nvme\d+c\d+n to nvme\d+n. Rename the
test fixture from nvme0c0n0 to nvme0n1 and update
e2e expected output to match.

Mdraid.Disks changed from uint64 to *uint64 (nil
when unavailable, e.g. container/imsm/ddf arrays).
Guard the dereference in mdadm_linux.go to prevent
a nil pointer panic.

Fixes: prometheus#3691

Signed-off-by: Shirly Radco <sradco@redhat.com>
Co-authored-by: AI Assistant <noreply@cursor.com>
@sradco

sradco commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@SuperQ Hi, I splitted this to a separate PR

@SuperQ

SuperQ commented Jul 6, 2026

Copy link
Copy Markdown
Member

There's typically no need to split this kind of thing into a separate PR. But this case seems fine. Thanks!

@SuperQ
SuperQ merged commit 7c75345 into prometheus:master Jul 6, 2026
17 checks passed
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.

NVMe namespace parsing broken in procfs 0.20.1

3 participants