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

bug: when getting Linux temps, don't bail ASAP if they fail #1186

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented Jun 7, 2023

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes:

This meant that if hwmon failed, it would never try and get temperatures from thermal or GPU. The same is true for thermal failing leading to GPU never running.

I'm guessing this could happen if, for example, hwmon doesn't exist --> returns an Err, which then meant the entire pipeline ends with an Err.

Issue

If applicable, what issue does this address?

See: #1185

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

This meant that if hwmon failed, it would never try and get temperatures
from thermal or GPU. The same is true for thermal failing leading to GPU
never running.
@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (6dd4ea9) 30.99% compared to head (b410422) 30.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1186      +/-   ##
==========================================
- Coverage   30.99%   30.98%   -0.01%     
==========================================
  Files          96       96              
  Lines       16543    16545       +2     
==========================================
  Hits         5127     5127              
- Misses      11416    11418       +2     
Flag Coverage Δ
macos-12 32.97% <ø> (ø)
ubuntu-latest 32.52% <0.00%> (-0.01%) ⬇️
windows-2019 33.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/app/data_harvester/temperature/linux.rs 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ClementTsang ClementTsang marked this pull request as ready for review June 7, 2023 13:28
@ClementTsang ClementTsang merged commit 358bddf into master Jun 8, 2023
@ClementTsang ClementTsang deleted the linux_do_not_immediately_fail_temps branch June 8, 2023 01:47
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