Skip to content

Refactor class thermal error handling - #794

Merged
SuperQ merged 1 commit into
masterfrom
superq/thermal_errors
Mar 15, 2026
Merged

Refactor class thermal error handling#794
SuperQ merged 1 commit into
masterfrom
superq/thermal_errors

Conversation

@SuperQ

@SuperQ SuperQ commented Mar 8, 2026

Copy link
Copy Markdown
Member

Include any read errors when parsing /sys/class/thermal/thermal_zone data. This avoids premature error returns if there are platform specific problems like temp being unreadable, even tho it's a required file.

Related to: prometheus/node_exporter#2980

Include any read errors when parsing /sys/class/thermal/thermal_zone
data. This avoids premature error returns if there are platform specific
problems like `temp` being unreadable, even tho it's a required file.

Related to: prometheus/node_exporter#2980

Signed-off-by: SuperQ <superq@gmail.com>

@sysadmind sysadmind left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't really know how this is used, but the code itself seems fine.

I would note that this seems like a heavily imported package, and I think this constitutes a breaking change, so this feels like it warrants a big scary changelog message.

https://pkg.go.dev/github.com/prometheus/procfs?tab=importedby

@SuperQ

SuperQ commented Mar 14, 2026

Copy link
Copy Markdown
Member Author

Yes, we make regular breaking changes to this library to fix behavior problems.

@SuperQ
SuperQ merged commit 465fd94 into master Mar 15, 2026
7 checks passed
@SuperQ
SuperQ deleted the superq/thermal_errors branch March 15, 2026 10:06
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.

2 participants