Skip to content

Do not lower case for slurm node state (for consistency with jobs).#999

Merged
theyoprst merged 1 commit intodevfrom
fix-slurm-node-info-state-case
Jun 13, 2025
Merged

Do not lower case for slurm node state (for consistency with jobs).#999
theyoprst merged 1 commit intodevfrom
fix-slurm-node-info-state-case

Conversation

@theyoprst
Copy link
Collaborator

Copy link
Contributor

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 updates the slurm node state representation in the exported metrics to use upper-case values, ensuring consistency with job metrics.

  • Updated expected metrics in collector_test.go to reflect upper-case node states.
  • Removed the call to strings.ToLower in collector.go to retain the original case.

Reviewed Changes

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

File Description
internal/exporter/collector_test.go Updated expected metrics to use upper-case base_state values.
internal/exporter/collector.go Removed the lowercasing call on node.BaseState() for consistency.

@theyoprst theyoprst merged commit 17dd21b into dev Jun 13, 2025
9 of 12 checks passed
@asteny asteny deleted the fix-slurm-node-info-state-case branch June 23, 2025 13:47
@asteny asteny added the fix label Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants