New issue
Advanced search Search tips

Issue 897567 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

video_PowerConsumption.webrtc: KeyError: 'result_system_pwr' since R71-11174.0.0

Project Member Reported by johnylin@chromium.org, Oct 22

Issue description

Device: all boards
Regression: R71-11174.0.0

https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/testDetails?milestone=72&daysBack=30&testName=video_PowerConsumption.webrtc

Traceback (most recent call last):
  File "/usr/local/autotest/common_lib/test.py", line 600, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/usr/local/autotest/common_lib/test.py", line 806, in _call_test_function
    raise error.UnhandledTestFail(e)
UnhandledTestFail: Unhandled KeyError: 'result_system_pwr'
Traceback (most recent call last):
  File "/usr/local/autotest/common_lib/test.py", line 800, in _call_test_function
    return func(*args, **dargs)
  File "/usr/local/autotest/common_lib/test.py", line 464, in execute
    postprocess_profiled_run, args, dargs)
  File "/usr/local/autotest/common_lib/test.py", line 371, in _call_run_once
    self.run_once(*args, **dargs)
  File "/usr/local/autotest/cros/video/helper_logger.py", line 82, in call
    return func(*args, **kwargs)
  File "/usr/local/autotest/tests/video_WebRtcPerf/video_WebRtcPerf.py", line 177, in run_once
    keyvals = self.test_power(local_path)
  File "/usr/local/autotest/tests/video_WebRtcPerf/video_WebRtcPerf.py", line 323, in test_power
    return self.test_webrtc(local_path, get_power)
  File "/usr/local/autotest/tests/video_WebRtcPerf/video_WebRtcPerf.py", line 206, in test_webrtc
    result = gather_result(cr)
  File "/usr/local/autotest/tests/video_WebRtcPerf/video_WebRtcPerf.py", line 321, in get_power
    return keyval['result_' + measurements[0].domain + '_pwr']
KeyError: 'result_system_pwr'


This is probably caused by this change:
https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1280483
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 23

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/b835fe8f87d6b4b07f972abf92493397b14d6e51

commit b835fe8f87d6b4b07f972abf92493397b14d6e51
Author: Pin-chih Lin <johnylin@google.com>
Date: Tue Oct 23 20:01:36 2018

video_PlaybackPerf,video_WebRtcPerf: align to PowerLogger change

PowerLogger is modified to hide raw data "*_pwr" from keyval (ref: crrev.com/c/1280483). The only method to get raw data is calling
save_results() first and then parse raw data from *_raw.txt.

BUG= chromium:897567 
TEST=run video_PlaybackPerf.power_h264 and video_WebRtcPerf.power on Grunt

Change-Id: I2cefa39d252c4721984e332850eec373d67da603
Reviewed-on: https://chromium-review.googlesource.com/1293391
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Pin-chih Lin <johnylin@chromium.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>

[modify] https://crrev.com/b835fe8f87d6b4b07f972abf92493397b14d6e51/client/site_tests/video_WebRtcPerf/video_WebRtcPerf.py
[modify] https://crrev.com/b835fe8f87d6b4b07f972abf92493397b14d6e51/client/site_tests/video_PlaybackPerf/video_PlaybackPerf.py

Status: Fixed (was: Untriaged)

Sign in to add a comment