Skip to content

fix(dcgm): correct DCGM_ST_UNINITIALIZED status code#120

Merged
rvatkar merged 1 commit into
mainfrom
rvatkar/fix/actionable-dcgm-error-handling
May 12, 2026
Merged

fix(dcgm): correct DCGM_ST_UNINITIALIZED status code#120
rvatkar merged 1 commit into
mainfrom
rvatkar/fix/actionable-dcgm-error-handling

Conversation

@rvatkar

@rvatkar rvatkar commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix DCGM_ST_UNINITIALIZED to match the DCGM C header.

Changes

  • Correct DCGM_ST_UNINITIALIZED from -59 to -10.
  • Add selected status-code parity test coverage against pkg/dcgm/dcgm_structs.h.

Validation

  • go test ./pkg/dcgm -run TestSelectedStatusCodeConstantsMatchCHeader -count=1 -v
  • go test ./pkg/dcgm -count=1

Notes

-59 is DCGM_ST_MNDIAG_CONNECTION_NOT_AVAILABLE in the DCGM header, so consumers comparing against the old go-dcgm DCGM_ST_UNINITIALIZED value could misclassify that status.

@rvatkar rvatkar requested a review from nccurry May 12, 2026 17:22

@nccurry nccurry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@rvatkar rvatkar merged commit 6efadd4 into main May 12, 2026
1 check 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.

2 participants