Skip to content

Fixing an erroneous cephfs test#4020

Open
aruniiird wants to merge 1 commit into
red-hat-storage:mainfrom
aruniiird:fix-cephfs-TestCephFSSubvolumeCountCollectorCollect-test
Open

Fixing an erroneous cephfs test#4020
aruniiird wants to merge 1 commit into
red-hat-storage:mainfrom
aruniiird:fix-cephfs-TestCephFSSubvolumeCountCollectorCollect-test

Conversation

@aruniiird

Copy link
Copy Markdown
Contributor

The test 'populated cache emits metrics' under
TestCephFSSubvolumeCountCollectorCollect in 'cephfs_test.go' file was incorrectly checking metric values because it collected all gauge metrics with 'consumer_name' label without distinguishing between metric types. The 'pvMetadata' metrics (value=1) were overwriting the subvolumeCount values.

The test 'populated cache emits metrics' under
TestCephFSSubvolumeCountCollectorCollect in 'cephfs_test.go'
file was incorrectly checking metric values because it
collected all gauge metrics with 'consumer_name' label
without distinguishing between metric types.  The 'pvMetadata'
metrics (value=1) were overwriting the subvolumeCount values.

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
@openshift-ci

openshift-ci Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: aruniiird
Once this PR has been reviewed and has the lgtm label, please assign agarwal-mudit for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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