|
|
DescriptionReport all system temperatures, not just CPU
Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM
devices and non-CPU sensors on Intel don't use a devices directory and also may
not contain labels. Use the name file for a label if label doesn't exist.
BUG=530499
TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps.
Committed: https://crrev.com/7d1b94768d646c9ae2318a85447f544044b38a4b
Cr-Commit-Position: refs/heads/master@{#420629}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix comment #Patch Set 3 : rebase #
Total comments: 3
Patch Set 4 : comment update to reflect new logic #Messages
Total messages: 57 (34 generated)
Description was changed from ========== Report all system temperatures, not just CPU Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM devices and non-CPU sensors on Intel don't use a devices directory and also may not contain labels. Use the name file for a label if label doesn't exist. BUG=530499 TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps. ========== to ========== Report all system temperatures, not just CPU Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM devices and non-CPU sensors on Intel don't use a devices directory and also may not contain labels. Use the name file for a label if label doesn't exist. BUG=530499 TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps. ==========
jayhlee@google.com changed reviewers: + bartfab@chromium.org, pbond@chromium.org
https://codereview.chromium.org/2115723003/diff/1/chrome/browser/chromeos/pol... File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2115723003/diff/1/chrome/browser/chromeos/pol... chrome/browser/chromeos/policy/device_status_collector.cc:170: hwmon_path = hwmon_enumerator.Next()) { s/devices/device https://codereview.chromium.org/2115723003/diff/1/chrome/browser/chromeos/pol... chrome/browser/chromeos/policy/device_status_collector.cc:204: // CPU temp in millidegree Celsius to Celsius Are added temperatures still in Millicelsius e.g.for link?
On 2016/07/01 15:22:26, Polina Bondarenko wrote: > s/devices/device fixed. > Are added temperatures still in Millicelsius e.g.for link? Seems like it for Veyron. The daisy I looked at had similar numbers: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-3....
The CQ bit was checked by jayhlee@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full committers or once the patch has received an L-G-T-M from a full committer. Even if an L-G-T-M may have been provided, it was from a non-committer, _not_ a full super star committer. See http://www.chromium.org/getting-involved/become-a-committer Note that this has nothing to do with OWNERS files.
The CQ bit was checked by jayhlee@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full committers or once the patch has received an L-G-T-M from a full committer. Even if an L-G-T-M may have been provided, it was from a non-committer, _not_ a full super star committer. See http://www.chromium.org/getting-involved/become-a-committer Note that this has nothing to do with OWNERS files.
On 2016/07/12 08:15:09, commit-bot: I haz the power wrote: > No L-G-T-M from a valid reviewer yet. > CQ run can only be started by full committers or once the patch has > received an L-G-T-M from a full committer. > Even if an L-G-T-M may have been provided, it was from a non-committer, > _not_ a full super star committer. > See http://www.chromium.org/getting-involved/become-a-committer > Note that this has nothing to do with OWNERS files. lgtm
The CQ bit was checked by jayhlee@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by jayhlee@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by jayhlee@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jayhlee@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from pbond@chromium.org Link to the patchset: https://codereview.chromium.org/2115723003/#ps40001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
On 2016/07/13 17:12:27, commit-bot: I haz the power wrote: > Try jobs failed on following builders: > chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) Looks like I need another lgtm even though latest patchset was just a rebase to account for another CL on the file. pbond@ can you take a look? Thanks!
On 2016/07/13 17:36:45, Jay Lee wrote: > On 2016/07/13 17:12:27, commit-bot: I haz the power wrote: > > Try jobs failed on following builders: > > chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, > > > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) > > Looks like I need another lgtm even though latest patchset was just a rebase to > account for another CL on the file. > > pbond@ can you take a look? Thanks! I'm not an owner of this file. bartfab@ could you take a look?
The CQ bit was checked by jayhlee@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
+ Others in OWNERS Is anyone available to review this? Much appreciated! Jay
https://codereview.chromium.org/2115723003/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2115723003/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/policy/device_status_collector.cc:195: base::ReadFileToString(base::FilePath(label_path), &label); I'm concerned that if ReadFileToString() returns an error, behavior is undefined (since |label| can be modified here). Is ReadFileToString() guaranteed to leave |label| empty if there's an error reading the file?
https://codereview.chromium.org/2115723003/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2115723003/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/policy/device_status_collector.cc:195: base::ReadFileToString(base::FilePath(label_path), &label); On 2016/09/06 18:10:45, Andrew T Wilson (Slow) wrote: > I'm concerned that if ReadFileToString() returns an error, behavior is > undefined (since |label| can be modified here). Is ReadFileToString() > guaranteed to leave |label| empty if there's an error reading the > file? As far as I can see at: https://chromium.googlesource.com/chromium/src/+/master/base/files/file_util.... ReadFileToString() and ReadFileToStringWithMaxSize() would only return empty, partial file content or full file content. I'm happy to rewrite this block if you think it's necessary but I'm uncertain what it would need to look like.
friendly bump. Yes, as far as I can see label would be left empty. > On 2016/09/06 18:10:45, Andrew T Wilson (Slow) wrote: > > I'm concerned that if ReadFileToString() returns an error, behavior is > > undefined (since |label| can be modified here). Is ReadFileToString() > > guaranteed to leave |label| empty if there's an error reading the > > file? > > As far as I can see at: > > https://chromium.googlesource.com/chromium/src/+/master/base/files/file_util.... > > ReadFileToString() and ReadFileToStringWithMaxSize() would only return empty, > partial file content or full file content. > > I'm happy to rewrite this block if you think it's necessary but I'm uncertain > what it would need to look like.
lgtm with one request for documentation fix. https://codereview.chromium.org/2115723003/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/policy/device_status_collector.cc (right): https://codereview.chromium.org/2115723003/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/policy/device_status_collector.cc:159: // Reads the CPU temperature info from Please update this comment to reflect the new logic.
The CQ bit was checked by jayhlee@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by jayhlee@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jayhlee@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from pbond@chromium.org, pastarmovj@chromium.org Link to the patchset: https://codereview.chromium.org/2115723003/#ps60001 (title: "comment update to reflect new logic")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Report all system temperatures, not just CPU Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM devices and non-CPU sensors on Intel don't use a devices directory and also may not contain labels. Use the name file for a label if label doesn't exist. BUG=530499 TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps. ========== to ========== Report all system temperatures, not just CPU Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM devices and non-CPU sensors on Intel don't use a devices directory and also may not contain labels. Use the name file for a label if label doesn't exist. BUG=530499 TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps. ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Report all system temperatures, not just CPU Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM devices and non-CPU sensors on Intel don't use a devices directory and also may not contain labels. Use the name file for a label if label doesn't exist. BUG=530499 TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps. ========== to ========== Report all system temperatures, not just CPU Intel devices put CPU temperatures in a devices/ sub directory of hwmon*. ARM devices and non-CPU sensors on Intel don't use a devices directory and also may not contain labels. Use the name file for a label if label doesn't exist. BUG=530499 TEST=configure managed device to auto-start kiosk. ARM devices should show temps. Intel devices should show non-CPU temps. Committed: https://crrev.com/7d1b94768d646c9ae2318a85447f544044b38a4b Cr-Commit-Position: refs/heads/master@{#420629} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/7d1b94768d646c9ae2318a85447f544044b38a4b Cr-Commit-Position: refs/heads/master@{#420629} |