Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix zoneinfo name parsing #398

Merged
merged 1 commit into from
Jul 21, 2021
Merged

Conversation

binjip978
Copy link
Contributor

Add aditional test coverage for Normal, Movable and Devize zones

Signed-off-by: binjip978 binjip978@gmail.com

Add aditional test coverage for Normal, Movable and Devize zones

Signed-off-by: binjip978 <binjip978@gmail.com>
@binjip978
Copy link
Contributor Author

fixes #386

@discordianfish
Copy link
Member

Thanks! Not sure what the rational was for resetting the zone field, so not sure that isn't breaking anything else..?
Maybe @TheMeier can provide some context

@binjip978
Copy link
Contributor Author

Me either, but empty zone name in current version of the test does not look right.

@TheMeier
Copy link
Contributor

Thanks! Not sure what the rational was for resetting the zone field, so not sure that isn't breaking anything else..?
Maybe @TheMeier can provide some context

I can't even remember writing that :) It's just a novice mistake i guess.

Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

LGTM

@SuperQ SuperQ merged commit f8ee60a into prometheus:master Jul 21, 2021
data, err := fs.Zoneinfo()
if err != nil {
t.Fatalf("failed to parse zoneinfo: %v", err)
}
if len(data) != 5 {
t.Fatal("failed to get all all node info")
Copy link

Choose a reason for hiding this comment

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

"all all"

Otherwise: LGTM.

(I've tested node-exporter 1.2.1 from the master branch on the system where I initially noticed the bug.)

remijouannet pushed a commit to remijouannet/procfs that referenced this pull request Oct 20, 2022
Add aditional test coverage for Normal, Movable and Devize zones

Signed-off-by: binjip978 <binjip978@gmail.com>
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.

None yet

5 participants