Skip to content

fix: inverted set difference in MBNvidiaSmi attribute validation#29

Merged
alubbock merged 2 commits intomainfrom
fix/nvidia-attr-validation
Mar 13, 2026
Merged

fix: inverted set difference in MBNvidiaSmi attribute validation#29
alubbock merged 2 commits intomainfrom
fix/nvidia-attr-validation

Conversation

@alubbock
Copy link
Copy Markdown
Owner

Summary

  • The validation check set(_available).difference(user_attrs) was backwards: it flagged default attributes not present in the user's list as "unknown", rather than flagging user-specified attributes that don't exist
  • Fixed to set(user_attrs).difference(_available) so the error message "Unknown nvidia_attributes" is semantically correct
  • Adds tests covering the error case, the valid-subset case, and a regression test for the original bug (omitting a default attribute must not raise)

@alubbock alubbock force-pushed the fix/nvidia-attr-validation branch from cc2e6cf to 4f8269f Compare March 12, 2026 23:47
@alubbock alubbock merged commit e563d1e into main Mar 13, 2026
20 checks passed
@alubbock alubbock deleted the fix/nvidia-attr-validation branch March 13, 2026 00:15
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.

1 participant