Skip to content

Pass complete info instead of truncating#101

Merged
glowkey merged 1 commit intomainfrom
issue-97v2
Oct 14, 2025
Merged

Pass complete info instead of truncating#101
glowkey merged 1 commit intomainfrom
issue-97v2

Conversation

@nvvfedorov
Copy link
Collaborator

No description provided.

Signed-off-by: Vadym Fedorov <vfedorov@nvidia.com>
@nvvfedorov nvvfedorov requested review from Copilot and glowkey October 14, 2025 14:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the DCGM diagnostic info message handling to return complete information instead of truncating to only the first matching message. The primary change is in the getInfoMsg function which now concatenates all matching info messages with a pipe separator instead of returning only the first one.

  • Updated getInfoMsg function to collect and concatenate all matching diagnostic info messages
  • Added comprehensive test coverage for the modified diagnostic message handling functionality
  • Added helper functions to support testing of DCGM diagnostic responses

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pkg/dcgm/diag.go Modified getInfoMsg to collect all matching messages and join them with " | " separator
pkg/dcgm/diag_test.go Added comprehensive test suite covering various scenarios for the updated message handling
pkg/dcgm/diag_test_helpers.go Added helper functions for creating test diagnostic responses and managing test data

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@glowkey glowkey left a comment

Choose a reason for hiding this comment

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

LGTM - Great tests!

@glowkey glowkey merged commit a9abbbf into main Oct 14, 2025
1 check passed
@glowkey glowkey deleted the issue-97v2 branch October 14, 2025 16:03
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.

3 participants